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]

[patch, ARM] Avoid enlarged alignment when optimizing for size


Hi,
this patch adds guard conditions to the DATA/LOCAL_ALIGNMENT macros, to turn off the BITS_PER_WORD enlarging of data alignment when optimizing for size/conserving stack space.


This corresponds to Linaro bug #640544
https://bugs.launchpad.net/gcc-linaro/+bug/640544

Okay for trunk?

Thanks,
Chung-Lin

    * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
    DATA_ALIGNMENT and add COND parameter.
    (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
    (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with
    !flag_conserve_stack.

Attachment: arm-align.diff
Description: Text document


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