This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] xtensa: align data naturally when optimizing for size


On Sat, Feb 21, 2015 at 4:19 PM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> 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.

This is OK for xtensa.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]