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][AARCH64][03]Add ACLE 2.0 predefined macros: Define __ARM_SIZEOF_MINIMAL_ENUM macro


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.
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

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