This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH][AARCH64][02]Add ACLE 2.0 predefined macros: More macros which are unconditional
- From: Renlin Li <renlin dot li at arm dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Ramana Radhakrishnan <ramana dot radhakrishnan at arm dot com>, Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>
- Date: Wed, 15 Oct 2014 14:39:24 +0100
- Subject: [PATCH][AARCH64][02]Add ACLE 2.0 predefined macros: More macros which are unconditional
- Authentication-results: sourceware.org; auth=none
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.Li@arm.com>
* config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): 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 d71e98ad2337faaad86780bd7e6ead0b398129ae Mon Sep 17 00:00:00 2001
From: Renlin Li <renlin.li@arm.com>
Date: Tue, 14 Oct 2014 16:23:19 +0100
Subject: [PATCH 3/8] More marcos which are unconditional
Change-Id: I98d47fbb4d6e4ded6b73766d8f00e16526dae09a
---
gcc/config/aarch64/aarch64.h | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/gcc/config/aarch64/aarch64.h b/gcc/config/aarch64/aarch64.h
index 241bb98..b00e7f4 100644
--- a/gcc/config/aarch64/aarch64.h
+++ b/gcc/config/aarch64/aarch64.h
@@ -26,7 +26,15 @@
#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); \
if (TARGET_BIG_END) \
{ \
builtin_define ("__AARCH64EB__"); \
--
1.7.9.5