This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] Set linux64.h PROCESSOR_DEFAULT to PROCESSOR_POWER4
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 29 Sep 2004 11:28:21 -0400
- Subject: [PATCH, committed] Set linux64.h PROCESSOR_DEFAULT to PROCESSOR_POWER4
PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 set the tuning
parameters for the rs6000 port, such as rtx costs and scheduling, but do
not enable any processor-specific features. Prior to this patch, the
default tuning parameters for all 32-bit PowerPC SVR4 targets was PPC750
-- this includes vanilla SVR4, eABI, *BSD, and Linux. PPC750 probably is
a reasonable compromise based on the wide variety of systems covered by
the config/rs6000/sysv4.h file.
The linux64.h file defined the default as POWER4 for 64-bit mode,
but left the default for 32-bit mode. This patch overrides the 32-bit
default when building GCC with support for PPC64 Linux.
David
* config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
Index: linux64.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/linux64.h,v
retrieving revision 1.68
diff -c -p -u -r1.68 linux64.h
--- linux64.h 22 Sep 2004 04:05:12 -0000 1.68
+++ linux64.h 29 Sep 2004 15:18:05 -0000
@@ -57,7 +57,9 @@ extern int dot_symbols;
#define DOT_SYMBOLS dot_symbols
#endif
-#undef PROCESSOR_DEFAULT64
+#undef PROCESSOR_DEFAULT
+#define PROCESSOR_DEFAULT PROCESSOR_POWER4
+#undef PROCESSOR_DEFAULT64
#define PROCESSOR_DEFAULT64 PROCESSOR_POWER4
#undef TARGET_RELOCATABLE