[Bug target/45070] Miscompiled c++ class with packed attribute on ARM with -Os optimizations (Qt 4.6.2)
rearnsha at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jul 28 09:35:00 GMT 2010
------- Comment #9 from rearnsha at gcc dot gnu dot org 2010-07-28 09:34 -------
(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.
That just means the ABI doesn't specify the behaviour here. Portable code
shouldn't use this feature, but that doesn't mean that a compiler can't support
it as an extension.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45070
More information about the Gcc-bugs
mailing list