[AARCH64] Add ACLE 2.0 predefined macros
authorRenlin Li <renlin.li@arm.com>
Wed, 15 Oct 2014 15:23:31 +0000 (15:23 +0000)
committerJiong Wang <jiwang@gcc.gnu.org>
Wed, 15 Oct 2014 15:23:31 +0000 (15:23 +0000)
2014-10-15  Renlin Li <renlin.li@arm.com>

* config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
__ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
__ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
__ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.

From-SVN: r216267

gcc/ChangeLog
gcc/config/aarch64/aarch64.h

index 89a84a218125ff3b3c683c86ce31daa28ddfa67b..16817d4307d70db05068f90937b885512e3c52e7 100644 (file)
@@ -1,3 +1,10 @@
+2014-10-15  Renlin Li <renlin.li@arm.com>
+
+       * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
+       __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
+       __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
+       __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
+
 2014-10-15  Richard Biener  <rguenther@suse.de>
 
        * gimple-fold.c (gimple_fold_call): Properly keep virtual
index 1ba458b4e03f077a407c97cebdaeba996191c75d..11aa10b03f5500dd45d87dc8543583fc1adeec6b 100644 (file)
 #define TARGET_CPU_CPP_BUILTINS()                      \
   do                                                   \
     {                                                  \
-      builtin_define ("__aarch64__");                  \
+      builtin_define ("__aarch64__");                   \
+      builtin_define ("__ARM_64BIT_STATE");             \
+      builtin_define ("__ARM_ARCH_ISA_A64");            \
+      builtin_define ("__ARM_FEATURE_CLZ");             \
+      builtin_define ("__ARM_FEATURE_IDIV");            \
+      builtin_define ("__ARM_FEATURE_UNALIGNED");       \
+      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__");               \
+        {                                               \
+          builtin_define ("__AARCH64EB__");             \
+          builtin_define ("__ARM_BIG_ENDIAN");          \
+        }                                               \
       else                                             \
        builtin_define ("__AARCH64EL__");               \
                                                        \