+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
#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__"); \
\