Convert stormy16 to not use CPP_PREDEFINES

Neil Booth neil@daikokuya.co.uk
Sat Mar 8 15:35:00 GMT 2003


I've committed this, but I couldn't test it as the target
doesn't currently build.  The change is obvious enough, though.

Neil.

	* config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
	preference to CPP_PREDEFINES.

Index: stormy16.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/stormy16/stormy16.h,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -p -r1.69 -r1.70
--- stormy16.h	6 Mar 2003 20:03:49 -0000	1.69
+++ stormy16.h	8 Mar 2003 15:32:45 -0000	1.70
@@ -67,7 +67,10 @@ Boston, MA 02111-1307, USA.  */
 
 /* Run-time target specifications */
 
-#define CPP_PREDEFINES "-Dxstormy16 -Amachine=xstormy16"
+#define TARGET_CPU_CPP_BUILTINS() do {	\
+  builtin_define_std ("xstormy16");	\
+  builtin_assert ("machine=xstormy16");	\
+} while (0)
 
 /* This declaration should be present.  */
 extern int target_flags;



More information about the Gcc-patches mailing list