New CPP builtins for d30v

Neil Booth neil@daikokuya.demon.co.uk
Sun Jun 2 07:11:00 GMT 2002


I've applied this as obvious.

Neil.

	* d30v.h (CPP_PREDEFINES): Replace with
	(TARGET_CPU_CPP_BUILTINS): New.

Index: config/d30v/d30v.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/d30v/d30v.h,v
retrieving revision 1.58
diff -u -p -r1.58 d30v.h
--- config/d30v/d30v.h	19 May 2002 05:23:06 -0000	1.58
+++ config/d30v/d30v.h	2 Jun 2002 14:10:19 -0000
@@ -79,7 +79,13 @@
 
 /* Run-time target specifications */
 
-#define CPP_PREDEFINES "-D__D30V__ -Amachine=d30v"
+#define TARGET_CPU_CPP_BUILTINS()		\
+  do						\
+    {						\
+      builtin_define ("__D30V__");		\
+      builtin_assert ("machine=d30v");		\
+    }						\
+  while (0)
 
 /* This declaration should be present.  */
 extern int target_flags;



More information about the Gcc-patches mailing list