diff mbox

[AARCH64,03] Add ACLE 2.0 predefined macros: Define __ARM_SIZEOF_MINIMAL_ENUM macro

Message ID 543E7A27.3000804@arm.com
State New
Headers show

Commit Message

Renlin Li Oct. 15, 2014, 1:44 p.m. UTC
Hi all,

This patch is part of a series of patches that implement ACLE 2.0 
predefined macros support for AArch64.

aarch64-none-elf target has been tested on the model, no regression.

Is it Okay to commit?

Kind regards!
Renlin Li

gcc/ChangeLog:

2014-10-15  Renlin Li  <Renlin.Li@arm.com>

     * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define 
__ARM_SIZEOF_MINIMAL_ENUM.

Comments

Richard Earnshaw Oct. 15, 2014, 2:49 p.m. UTC | #1
On 15/10/14 14:44, Renlin Li wrote:
> Hi all,
> 
> This patch is part of a series of patches that implement ACLE 2.0 
> predefined macros support for AArch64.
> 
> aarch64-none-elf target has been tested on the model, no regression.
> 
> Is it Okay to commit?
> 
> Kind regards!
> Renlin Li
> 
> gcc/ChangeLog:
> 
> 2014-10-15  Renlin Li  <Renlin.Li@arm.com>
> 
>      * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define 
> __ARM_SIZEOF_MINIMAL_ENUM.
> 

OK.

R.
diff mbox

Patch

From 245195ce760cee97dd8e91e0178963b696000eed Mon Sep 17 00:00:00 2001
From: Renlin Li <renlin.li@arm.com>
Date: Tue, 14 Oct 2014 16:24:10 +0100
Subject: [PATCH 4/8] add __ARM_SIZEOF_MINIMAL_ENUM

Change-Id: I0407fd6ce7f0f0107f02c81fef6c89100dd3afff
---
 gcc/config/aarch64/aarch64.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
index b00e7f4..9f39f68 100644
--- a/gcc/config/aarch64/aarch64.h
+++ b/gcc/config/aarch64/aarch64.h
@@ -35,6 +35,9 @@ 
       builtin_define ("__ARM_PCS_AAPCS64");             \
       builtin_define_with_int_value                     \
         ("__ARM_SIZEOF_WCHAR_T", WCHAR_TYPE_SIZE / 8);  \
+      builtin_define_with_int_value                     \
+        ("__ARM_SIZEOF_MINIMAL_ENUM",                   \
+         flag_short_enums? 1 : 4);                      \
       if (TARGET_BIG_END)				\
         {                                               \
           builtin_define ("__AARCH64EB__");             \
-- 
1.7.9.5