[Bug target/88437] Excessive struct alignment on x86_64

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Dec 11 07:22:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88437

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
This is due to:

'-malign-data=TYPE'
     Control how GCC aligns variables.  Supported values for TYPE are
     'compat' uses increased alignment value compatible uses GCC 4.8 and
     earlier, 'abi' uses alignment value as specified by the psABI, and
     'cacheline' uses increased alignment value to match the cache line
     size.  'compat' is the default.

You can use -malign-data=abi to get 8 byte alignment for your case.

Not a bug.


More information about the Gcc-bugs mailing list