[Bug c/91922] #pragma pack(push,4) does not align element on 32 bit boundary properly
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Sep 27 06:25:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91922
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I don't think #pragma pack works on line granularity and we should probably
diagnose that somehow. You have to resort to __attribute__((aligned))
(or C1x alignas).
More information about the Gcc-bugs
mailing list