Thread overview | |||||
---|---|---|---|---|---|
|
January 09, 2011 [Issue 5439] New: 64bit struct alignment inconsistent with C ABI | ||||
---|---|---|---|---|
| ||||
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@puremagic.com ReportedBy: ibuclaw@ubuntu.com --- Comment #0 from Iain Buclaw <ibuclaw@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: ------- |
January 09, 2011 [Issue 5439] 64bit struct alignment inconsistent with C ABI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Iain Buclaw | http://d.puremagic.com/issues/show_bug.cgi?id=5439 Iain Buclaw <ibuclaw@ubuntu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ibuclaw@ubuntu.com --- Comment #1 from Iain Buclaw <ibuclaw@ubuntu.com> 2011-01-09 11:05:08 PST --- To save you searching for it, lookup "TypeBasic::alignsize" -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 11, 2011 [Issue 5439] 64bit struct alignment inconsistent with C ABI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Iain Buclaw | http://d.puremagic.com/issues/show_bug.cgi?id=5439 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-01-11 00:05:55 PST --- http://www.dsource.org/projects/dmd/changeset/861 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation