On Wed, Dec 17, 2014 at 2:10 PM, H.J. Lu <hjl.to...@gmail.com> wrote:
> Add -malign-data={abi|compat,cachineline} to control how GCC aligns > variables. "compat" uses increased alignment value compatible with > GCC 4.8 and earlier, "abi" uses alignment value as specified by the > psABI, and "cacheline" with increased alignment value to match the > cache line size. "compat" is the default. > > gcc/ > > PR target/61296 > * config/i386/i386-opts.h (ix86_align_data): New enum. > * config/i386/i386.c (ix86_data_alignment): Return the ABI > alignment value for -malign-data=abi, the cachine line size > for -malign-data=cachineline and the older GCC compatible > alignment value for for -malign-data=compat. > * config/i386/i386.opt (malign-data=): New. > * doc/invoke.texi: Document -malign-data=. Please also mention new user-visible options in GCC changes document. (Oh, just spotted a trivial typo in the ChangeLog entry: cachineline -> cacheline). Uros.