Discussion:
GCC 4.9 data alignment change, i386 & x86-64
Jordan Justen
2014-07-20 00:57:53 UTC
Permalink
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

Loading...