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]

[PING][PATCH][AARCH64]Add ACLE 2.0 predefined macros: __ARM_ALIGN_MAX_PWR and __ARM_ALIGN_MAX_STACK_PWR


Ping~

Regards,
Renlin Li

On 16/12/14 10:19, Renlin Li wrote:
Hi all,

This is a simple patch to add another two ACLE 2.0 predefined macros
into aarch64 backend.
They are __ARM_ALIGN_MAX_PWR and __ARM_ALIGN_MAX_STACK_PWR. Currently,
those two values are hard-wired to 16.

The following clauses from ACLE 2.0 documentation indicate the meaning
of those two macros:

The macro __ARM_ALIGN_MAX_STACK_PWR indicates (as the exponent of a
power of 2) the maximum available stack alignment.
The macro __ARM_ALIGN_MAX_PWR indicates (as the exponent of a power of
2) the maximum available alignment of static data.

aarch64-none-elf target is tested on on the model. No new regression.

Is it Okay for trunk?

Regards,
Renlin Li

gcc/ChangeLog

2014-12-16  Renlin Li  <renlin.li@arm.com>

          * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Define
__ARM_ALIGN_MAX_PWR
          and __ARM_ALIGN_MAX_STACK_PWR.


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