v850.h: Move define of __v850__ from CPP_PREDEFINES to CPP_SPEC.
authorNick Clifton <nickc@cygnus.com>
Mon, 20 Oct 1997 21:33:53 +0000 (21:33 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 20 Oct 1997 21:33:53 +0000 (15:33 -0600)
        * v850.h: Move define of __v850__ from CPP_PREDEFINES
        to CPP_SPEC.

        * xm-v850.h: Use __v850 rather than __v850__ to
        identify v850 port.

From-SVN: r16126

gcc/ChangeLog
gcc/config/v850/v850.h
gcc/config/v850/xm-v850.h

index fbed64afa57eef7036d4af5196c75a1c0a754950..238bdde5d4f78fe5e51a15638f3a201451b48a1b 100644 (file)
@@ -1,3 +1,11 @@
+Mon Oct 20 15:30:26 1997  Nick Clifton  <nickc@cygnus.com>
+
+       * v850.h: Move define of __v850__ from CPP_PREDEFINES
+       to CPP_SPEC.
+       
+       * xm-v850.h: Use __v850 rather than __v850__ to
+       identify v850 port.
+
 Mon Oct 20 14:15:02 1997  Jim Wilson  <wilson@cygnus.com>
 
        * mips/mips.c (compute_frame_size): Not a leaf function if
index 00e6fd1da519e99f79390698d81dded5bc7c6378..063cf698e696afba7108776f923481589f97ebe7 100644 (file)
@@ -20,11 +20,15 @@ along with GNU CC; see the file COPYING.  If not, write to
 the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
-#include "svr4.h"
+#include "svr4.h"      /* Automatically does #undef CPP_PREDEFINES */
 
 #undef ASM_SPEC
 #define ASM_SPEC "%{mv*:-mv%*}"
 
+#ifndef CPP_SPEC
+#define CPP_SPEC "-D__v850__"
+#endif
+
 #undef ASM_FINAL_SPEC
 #undef LIB_SPEC
 #undef ENDFILE_SPEC
@@ -32,10 +36,7 @@ Boston, MA 02111-1307, USA.  */
 #undef STARTFILE_SPEC
 
 /* Names to predefine in the preprocessor for this target machine.  */
-
-#ifndef CPP_PREDEFINES
-#define CPP_PREDEFINES "-D__v850__ -D__v851__ -D__v850"
-#endif
+#define CPP_PREDEFINES "-D__v851__ -D__v850"
 
 /* Print subsidiary information on the compiler version in use.  */
 
index a9f25b5faeaf5557ab30918c6ba8d3c7e728e9e6..1e43d033f6fe86410e5302021c68c91cca98c336 100644 (file)
@@ -34,7 +34,7 @@ Boston, MA 02111-1307, USA.  */
 #define SUCCESS_EXIT_CODE 0
 #define FATAL_EXIT_CODE 33
 
-#ifdef __v850__
+#ifdef __v850
 #ifndef __STDC__
 extern char *malloc (), *realloc (), *calloc ();
 #else