This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
New CPP builtins for d30v
- From: Neil Booth <neil at daikokuya dot demon dot co dot uk>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 2 Jun 2002 15:11:53 +0100
- Subject: New CPP builtins for d30v
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;