aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1997-06-06 17:09:44 +0000
committerDoug Evans <dje@gnu.org>1997-06-06 17:09:44 +0000
commitf7577fca9a4110ddfef4693912dd706e298c06cd (patch)
tree8fd7938b46a57087bd93f9561af1851f18e4f6e7
parente4264f1f37179fede6347bd73fecb2619e369b89 (diff)
downloadgcc-f7577fca9a4110ddfef4693912dd706e298c06cd.zip
gcc-f7577fca9a4110ddfef4693912dd706e298c06cd.tar.gz
gcc-f7577fca9a4110ddfef4693912dd706e298c06cd.tar.bz2
(CPP_SPEC): Define, adding the CPU definition to what came from sparc.h.
(CPP_SPEC): Define, adding the CPU definition to what came from sparc.h. (CPP_PREDEFINES): Don't define it here. From-SVN: r14162
-rw-r--r--gcc/config/sparc/vxsparc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/config/sparc/vxsparc.h b/gcc/config/sparc/vxsparc.h
index f2e9554..18ce6ed 100644
--- a/gcc/config/sparc/vxsparc.h
+++ b/gcc/config/sparc/vxsparc.h
@@ -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