[LLVMbugs] [Bug 11867] New: __SIZEOF_LONG_DOUBLE__ and __SIZE_TYPE__ are incorrect on Linux/ppc
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jan 26 23:59:43 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11867
Bug #: 11867
Summary: __SIZEOF_LONG_DOUBLE__ and __SIZE_TYPE__ are incorrect
on Linux/ppc
Product: clang
Version: trunk
Platform: All
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Driver
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jeremyhu at apple.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
I mentioned this in #11028, but that ticket focused more on the __linux__
issue, so this is a separate followup.
$ echo "" | /opt/llvm/bin/clang -E -dM - | sort -u > /tmp/clang.pp
$ echo "" | /usr/bin/gcc -E -dM - | sort -u > /tmp/gcc.pp
$ diff -Naurp /tmp/{gcc,clang}.pp | grep SIZE
-#define __SIZE_MAX__ 4294967295U
#define __SIZEOF_DOUBLE__ 8
#define __SIZEOF_FLOAT__ 4
#define __SIZEOF_INT__ 4
#define __SIZEOF_LONG__ 4
-#define __SIZEOF_LONG_DOUBLE__ 16
+#define __SIZEOF_LONG_DOUBLE__ 8
#define __SIZEOF_LONG_LONG__ 8
#define __SIZEOF_POINTER__ 4
#define __SIZEOF_PTRDIFF_T__ 4
#define __SIZEOF_SIZE_T__ 4
#define __SIZEOF_WCHAR_T__ 4
#define __SIZEOF_WINT_T__ 4
-#define __SIZE_TYPE__ unsigned int
+#define __SIZE_TYPE__ long unsigned int
+#define __SIZE_WIDTH__ 32
$ /opt/llvm/bin/clang --version
clang version 3.1 (trunk 149121)
Target: powerpc-unknown-linux-gnu
Thread model: posix
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list