GCC 4.9 data alignment change, i386 & x86-64

Jordan Justen jljusten@gmail.com
Sun Jul 20 00:58:00 GMT 2014


For i386/x86-64, I noticed this change from 4.8 to 4.9:

$ echo "int a[0x20] = { 0 };" | gcc-4.8 -S -x c -o - - | grep align
  .align 32

$ echo "int a[0x20] = { 0 };" | gcc-4.9 -S -x c -o - - | grep align
  .align 64

Is it possible to get GCC 4.9 to limit the data alignment to 32?

Thanks,

-Jordan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: signature
URL: <https://gcc.gnu.org/pipermail/gcc-help/attachments/20140720/3035dbb3/attachment.sig>


More information about the Gcc-help mailing list