(CPP_SPEC): Define, adding the CPU definition to what came from sparc.h.
authorDoug Evans <dje@gnu.org>
Fri, 6 Jun 1997 17:09:44 +0000 (17:09 +0000)
committerDoug Evans <dje@gnu.org>
Fri, 6 Jun 1997 17:09:44 +0000 (17:09 +0000)
(CPP_SPEC): Define, adding the CPU definition to
what came from sparc.h.
(CPP_PREDEFINES): Don't define it here.

From-SVN: r14162

gcc/config/sparc/vxsparc.h

index f2e95543add9961f51bf7e3115e56b750e2ca612..18ce6ed97b70a1317ee3558fd65b9fdafcca3a91 100644 (file)
@@ -36,7 +36,14 @@ Boston, MA 02111-1307, USA.  */
 #define STARTFILE_SPEC ""
 
 #undef CPP_PREDEFINES
-#define CPP_PREDEFINES "-Dsparc -Acpu(sparc) -Amachine(sparc) -DCPU=SPARC"
+#define CPP_PREDEFINES "-Dsparc -Acpu(sparc) -Amachine(sparc)"
+
+/* Note that we define CPU here even if the user has specified -ansi.
+   This violates user namespace, but the VxWorks headers, and potentially
+   user code, all explicitly rely upon the definition of CPU in order to get
+   the proper processor information.  */
+#undef CPP_SPEC
+#define CPP_SPEC "%(cpp_cpu) -DCPU=SPARC"
 
 #undef PTRDIFF_TYPE
 #undef SIZE_TYPE