[Bug c/10360] __alignof__(double) answer 8
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 11 02:19:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=10360
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |jason at gcc dot gnu.org
Resolution|INVALID |---
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> ---
The quoted passage in the documentation now reads
---
Some machines never actually require alignment; they allow reference to any
data type even at an odd address. For these machines, @code{__alignof__}
reports the smallest alignment that GCC gives the data type, usually as
mandated by the target ABI.
---
which seems clearer that the correct answer here is 4, as specified by the i386
psABI.
More information about the Gcc-bugs
mailing list