[Bug target/66337] __alignof__(s.d) incorrect for a double member with -malign-power
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 19 08:14:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66337
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I actually don't see any bug here, what makes you think the ABI can't enforce
bigger alignment on structs as whole over their first element?
If the struct will then contain some more aligned member, that is obviously
true, but the ABI might enforce extra alignment on structs say for performance
reasons etc.
In any case, changing the ABI just because you don't like __alignof__ output is
broken.
More information about the Gcc-bugs
mailing list