This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH 10/10] gcc/arc: Add __NPS400__ define for nps400 targets
- From: Andrew Burgess <andrew dot burgess at embecosm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: noamca at mellanox dot com, Claudiu dot Zissulescu at synopsys dot com, Andrew Burgess <andrew dot burgess at embecosm dot com>
- Date: Fri, 4 Mar 2016 13:25:42 +0000
- Subject: [PATCH 10/10] gcc/arc: Add __NPS400__ define for nps400 targets
- Authentication-results: sourceware.org; auth=none
- References: <cover dot 1457097757 dot git dot andrew dot burgess at embecosm dot com>
- References: <cover dot 1457097757 dot git dot andrew dot burgess at embecosm dot com>
Arrange to have the define __NPS400__ defined when compiling code for
Mellanox NPS400 ARC variant.
gcc/ChangeLog:
* conig/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Add __NPS400__.
---
gcc/ChangeLog.NPS400 | 4 ++++
gcc/config/arc/arc.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/gcc/ChangeLog.NPS400 b/gcc/ChangeLog.NPS400
index 146370c..e1889b9 100644
--- a/gcc/ChangeLog.NPS400
+++ b/gcc/ChangeLog.NPS400
@@ -1,3 +1,7 @@
+2016-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * conig/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Add __NPS400__.
+
2016-01-19 Joern Rennecke <joern.rennecke@embecosm.com>
Andrew Burgess <andrew.burgess@embecosm.com>
diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index f278bf5..0330ab4 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -120,6 +120,8 @@ along with GCC; see the file COPYING3. If not see
? "__BIG_ENDIAN__" : "__LITTLE_ENDIAN__"); \
if (TARGET_BIG_ENDIAN) \
builtin_define ("__big_endian__"); \
+ if (ARC_NPS400) \
+ builtin_define ("__NPS400__"); \
} while(0)
#if DEFAULT_LIBC == LIBC_UCLIBC
--
2.6.4