This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFA: Convert SH to not use CPP_PREDEFINES


Testing on x86 Linux->sh cross.  OK?

Neil.

	* config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
	CPP_PREDEFINES.
	* config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
	CPP_PREDEFINES.

Index: rtems.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/rtems.h,v
retrieving revision 1.14
diff -u -p -r1.14 rtems.h
--- rtems.h	12 Apr 2002 13:35:01 -0000	1.14
+++ rtems.h	8 Mar 2003 15:56:52 -0000
@@ -21,6 +21,7 @@ Boston, MA 02111-1307, USA.  */
 
 /* Specify predefined symbols in preprocessor.  */
 
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__sh__ -D__rtems__ \
-  -Asystem=rtems -Acpu=sh -Amachine=sh"
+#define TARGET_OS_CPP_BUILTINS() do {		\
+  builtin_define( "__rtems__" );		\
+  builtin_assert( "system=rtems" );		\
+} while (0)
Index: rtemself.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/rtemself.h,v
retrieving revision 1.8
diff -u -p -r1.8 rtemself.h
--- rtemself.h	12 Apr 2002 13:35:01 -0000	1.8
+++ rtemself.h	8 Mar 2003 15:56:52 -0000
@@ -21,6 +21,8 @@ Boston, MA 02111-1307, USA.  */
 
 /* Specify predefined symbols in preprocessor.  */
 
-#undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__sh__ -D__ELF__ -D__rtems__ \
-  -Asystem=rtems -Acpu=sh -Amachine=sh"
+#define TARGET_OS_CPP_BUILTINS() do {		\
+  builtin_define( "__rtems__" );		\
+  builtin_define( "__ELF__" );			\
+  builtin_assert( "system=rtems" );		\
+} while (0)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]