[Bug c/91922] #pragma pack(push,4) does not align element on 32 bit boundary properly

2020-01-31 Thread slightbody at ledroadwaylighting dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91922

--- Comment #2 from slightbody at ledroadwaylighting dot com ---
I'm not a regular gcc contributor, but I am a user of the compiler. Just
wondering if this issue will ever be addressed?

[Bug c/91922] #pragma pack(push,4) does not align element on 32 bit boundary properly

2019-09-27 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91922

Richard Biener  changed:

   What|Removed |Added

   Keywords||diagnostic

--- Comment #1 from Richard Biener  ---
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).