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] CPP builtins for dsp16xx/


There doesn't appear to be a maintainer for this port.

OK to commit?

Neil.

	* config/dsp16xx/dsp16xx.h: Update to new CPP macros.

Index: dsp16xx.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/dsp16xx/dsp16xx.h,v
retrieving revision 1.46
diff -u -p -r1.46 dsp16xx.h
--- dsp16xx.h	19 May 2002 08:31:50 -0000	1.46
+++ dsp16xx.h	2 Jun 2002 17:38:22 -0000
@@ -71,13 +71,9 @@ extern struct rtx_def *dsp16xx_lshrhi3_l
   (!strcmp (STR, "ifile") ? 1 :                 \
    0)
 
-#ifdef  CC1_SPEC
 #undef  CC1_SPEC
-#endif
 #define CC1_SPEC       "%{!O*:-O}"
 
-#define CPP_SPEC       "%{!O*:-D__OPTIMIZE__}"
-
 /* Define this as a spec to call the AT&T assembler */
 
 #define CROSS_ASM_SPEC   "%{!S:as1600 %a %i\n }"
@@ -138,10 +134,29 @@ extern struct rtx_def *dsp16xx_lshrhi3_l
 }
 
 /* Names to predefine in the preprocessor for this target machine.  */
+#define TARGET_CPU_CPP_BUILTINS()		\
+  do						\
+    {						\
+      builtin_define_std ("dsp1600");		\
+      builtin_define_std ("DSP1600");		\
+    }						\
+  while (0)
+
 #ifdef __MSDOS__
-#define CPP_PREDEFINES "-Ddsp1600 -DDSP1600 -DMSDOS"
+# define TARGET_OS_CPP_BUILTINS()		\
+  do						\
+    {						\
+      builtin_define_std ("MSDOS");		\
+    }						\
+  while (0)
 #else
-#define CPP_PREDEFINES "-Ddsp1600 -DDSP1600 -Ddsp1610 -DDSP1610"
+# define TARGET_OS_CPP_BUILTINS()		\
+  do						\
+    {						\
+      builtin_define_std ("dsp1610");		\
+      builtin_define_std ("DSP1610");		\
+    }						\
+  while (0)
 #endif
 
 /* Run-time compilation parameters selecting different hardware subsets.  */


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