[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 01:58:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69560
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |ASSIGNED
Last reconfirmed| |2018-04-11
CC| |jason at gcc dot gnu.org
Resolution|INVALID |---
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #16 from Jason Merrill <jason at gcc dot gnu.org> ---
(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.
More information about the Gcc-bugs
mailing list