]> git.ipfire.org Git - thirdparty/gcc.git/commit
[AArch64] Do not increase data alignment at -Os and with -fconserve-stack.
authorramana <ramana@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jun 2017 22:09:50 +0000 (22:09 +0000)
committerramana <ramana@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Jun 2017 22:09:50 +0000 (22:09 +0000)
commit6e56a2d7add2b02bbe5303ca819dc05ade807432
treec91935c2c3cdffd5f92f33b925a84e7a8e2bba5d
parent1fa67b63a33db9c9efa18efc94d0e6f1768b6f50
[AArch64] Do not increase data alignment at -Os and with -fconserve-stack.

We unnecessarily align data to 8 byte alignments even when -Os is
specified. This brings the logic in the AArch64 backend more in line
with the ARM backend and helps gain some image size in a few
places. Caught by an internal report on the size of rodata sections
being high with aarch64 gcc.

* config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
  (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
  (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.

Bootstrapped and regression tested on aarch64-none-linux-gnu with no
regressions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249764 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/aarch64/aarch64.h