[Issue 5439] New: 64bit struct alignment inconsistent with C ABI
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Jan 9 11:05:06 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5439
Summary: 64bit struct alignment inconsistent with C ABI
Product: D
Version: D1 & D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: ibuclaw at ubuntu.com
--- Comment #0 from Iain Buclaw <ibuclaw at ubuntu.com> 2011-01-09 11:03:22 PST ---
This was caused by bug2821. On 64bit, doubles are 8-byte aligned, not 4, so
struct { long, short }
Should have a sizeof = 16, not 12.
Btw, would be nice if you offered a -malign-double type flag to say "Yes, I
want 8 byte aligned doubles on 32bit Linux" :)
Regards
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list