This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/35186] Ada doesn't follow i386 psABI
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Feb 2008 19:35:10 -0000
- Subject: [Bug ada/35186] Ada doesn't follow i386 psABI
- References: <bug-35186-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from hjl dot tools at gmail dot com 2008-02-13 19:35 -------
maybe_pad_type has
if (align == TYPE_ALIGN (type))
align = 0;
if (align == 0 && !size)
return type;
...
record = make_node (RECORD_TYPE);
That is Ada expects 8 byte alignment for DImode. But TYPE_ALIGN (type),
which conforms to psABI, is 4 byte for DImode.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35186