diff mbox

[10/10] gcc/arc: Add __NPS400__ define for nps400 targets

Message ID 2f9e61275862654b5a051f65d4b258d273027b84.1457097757.git.andrew.burgess@embecosm.com
State New
Headers show

Commit Message

Andrew Burgess March 4, 2016, 1:25 p.m. UTC
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 mbox

Patch

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