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 <[email protected]>
+
+ * conig/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Add __NPS400__.
+
2016-01-19 Joern Rennecke <[email protected]>
Andrew Burgess <[email protected]>
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