http://llvm.org/bugs/show_bug.cgi?id=7374
Summary: Clang ppc32 backend aligns 64-bit values incorrectly
in structs
Product: clang
Version: trunk
Platform: Macintosh
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P
Component: LLVM Codegen
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
On PPC32, long longs are correctly specified as requiring 64-bit alignment,
which clang honors for freestanding long longs. Long longs in structs, however,
do not get appropriate padding added, and can be misaligned (see attached test
case). Worse, they occur at different addresses than their counterparts
compiled with gcc, making crashes very likely when linking clang-built code to
gcc-built libraries.
Observed with clang/llvm r104832 on FreeBSD/powerpc.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs