[Bug ada/35186] Ada doesn't follow i386 psABI

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 13 19:35:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list