From f7577fca9a4110ddfef4693912dd706e298c06cd Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 6 Jun 1997 17:09:44 +0000 Subject: [PATCH] (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 --- gcc/config/sparc/vxsparc.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/config/sparc/vxsparc.h b/gcc/config/sparc/vxsparc.h index f2e95543add..18ce6ed97b7 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 -- 2.30.2