summaryrefslogtreecommitdiff
path: root/gcc/config/aarch64
diff options
context:
space:
mode:
authorjiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-15 15:23:31 +0000
committerjiwang <jiwang@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-15 15:23:31 +0000
commit5df43a998372f91f936c0f49d96dc268e7f80e4d (patch)
tree1b7c6f2c8d007e1755c3d9114c9d7423e8b94225 /gcc/config/aarch64
parent7f1b049e9445c78882b7a80506fb7e011f80efc4 (diff)
downloadgcc-5df43a998372f91f936c0f49d96dc268e7f80e4d.tar.gz
[AARCH64] Add ACLE 2.0 predefined macros
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216267 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/aarch64')
-rw-r--r--gcc/config/aarch64/aarch64.h18
1 files changed, 16 insertions, 2 deletions
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__"); \
\