------- Comment #10 from mikpe at it dot uu dot se 2010-07-28 09:45 ------- (In reply to comment #8) > I just realized that this is a packed structure and probably need to look up > the semantics of this in the AAPCS. IIRC the AAPCS states that it doesn't > support packed structures or bitfields at exported interfaces.
In the C test case the function returning a packed struct is `static' and called only by name from within the same translation unit. Surely that's not an "exported interface". -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45070