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

Reply via email to