[LLVMbugs] [Bug 22905] New: Bad sizeof(long double)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Mar 14 04:25:53 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=22905

            Bug ID: 22905
           Summary: Bad sizeof(long double)
           Product: clang
           Version: 3.6
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Headers
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sfence.software at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

GCC vs clang compatibility problem because of diffrent sizeof(long double)
value.

For powerpc64 Debian linux with 3.2.0-4 kernel, clang target
powerpc-unknown-linux-gnu clang nad gcc get diffrent sizeof(long double)

Qemu emulated system.

GCC version 4.6.3-14

Macro dump from gcc: gcc -dM -E -x -c /dev/null | grep "DOUBLE"
  #define __SIZEOF_LONG_DOUBLE__ 16
  #define __LONGDOUBLE128 1
  #define __LONG_DOUBLE_128__ 1
  #define __SIZEOF_DOUBLE__ 8

Macro dump from clang: clang -dM -E -x -c /dev/null | grep "DOUBLE"
  #define __LONG_DOUBLE_128__ 1
  #define __SIZEOF_DOUBLE__ 8
  #define __SIZEOF_LONG_DOUBLE__ 8

And I see sizeof(long dobule) diffrent from debugger.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150314/572708c8/attachment.html>


More information about the llvm-bugs mailing list