[Bug c++/69560] x86_64: alignof(uint64_t) produces incorrect results with -m32
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Apr 11 12:37:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69560
--- Comment #19 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #18)
> (In reply to Jason Merrill from comment #16)
> > (In reply to Andreas Schwab from comment #15)
> > > Because the ABI says so.
> >
> > Which ABI? In https://www.uclibc.org/docs/psABI-i386.pdf I see
> >
> > long long: sizeof 8, alignment 4.
> >
> > That GCC chooses to give stronger alignment to long long variables isn't
> > part of the ABI, and shouldn't affect the value of alignof.
>
> FYI, x86 psABIs are at
>
> https://github.com/hjl-tools/x86-psABI/wiki/X86-psABI
And those also say that double and long long have alignment 4.
More information about the Gcc-bugs
mailing list