[Bug c/93476] int bit fields waste space
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 28 03:35:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93476
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This is the ABI that specifies the size/alignment of the structs. GCC is just
following that.
The alignment of the struct with an int field is 4 bytes on most if not all
targets where the sizeof(int) == 4.
More information about the Gcc-bugs
mailing list