xtensa: align data naturally when optimizing for size
commit2a63d225d44591af46e84a67b722c745d2365d50
authorjcmvbkbc <jcmvbkbc@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Feb 2015 23:35:31 +0000 (23 23:35 +0000)
committerjcmvbkbc <jcmvbkbc@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 23 Feb 2015 23:35:31 +0000 (23 23:35 +0000)
tree2e92c72cacbb04347e18f4c1d7263fb718ba9fea
parente6935d2fbaae49a0e3abb99f427f7226e8b6a877
xtensa: align data naturally when optimizing for size

gcc for xtensa always aligns data at least to a word boundary, even when
it has smaller natural alignment. This results in unexpectedly high data
section sizes and unreasonable amount of wasted space when linking
objects compiled with -fdata-sections flag.

Align data naturally when optimization for size is enabled.

2015-02-22  Max Filippov  <jcmvbkbc@gmail.com>

gcc/
* config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
use natural alignment when optimizing for size.

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