From: Renlin Li Date: Wed, 15 Oct 2014 15:23:31 +0000 (+0000) Subject: [AARCH64] Add ACLE 2.0 predefined macros X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e98c8c32cfb8633053f2663983e9fa845398e52;p=gcc.git [AARCH64] Add ACLE 2.0 predefined macros 2014-10-15 Renlin Li * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 89a84a21812..16817d4307d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2014-10-15 Renlin Li + + * 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 * gimple-fold.c (gimple_fold_call): Properly keep virtual diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h index 1ba458b4e03..11aa10b03f5 100644 --- a/gcc/config/aarch64/aarch64.h +++ b/gcc/config/aarch64/aarch64.h @@ -26,9 +26,23 @@ #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__"); \ \