This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] rs6000.h CC1_CPU_SPEC for cross-compiler
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 11 Aug 2007 22:49:59 -0400
- Subject: [PATCH, committed] rs6000.h CC1_CPU_SPEC for cross-compiler
A definition of CC1_CPU_SPEC is needed to satisfy spec when
building cross-compiler.
David
2007-08-11 David Edelsohn <edelsohn@gnu.org>
Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/rs6000.h (CC1_CPU_SPEC): Define as empty string if
HAVE_LOCAL_CPU_DETECT not defined.
Index: rs6000.h
===================================================================
--- rs6000.h (revision 127369)
+++ rs6000.h (working copy)
@@ -149,10 +149,14 @@
#define HAVE_LOCAL_CPU_DETECT
#endif
-#if !defined (CC1_CPU_SPEC) && defined (HAVE_LOCAL_CPU_DETECT)
+#ifndef CC1_CPU_SPEC
+#ifdef HAVE_LOCAL_CPU_DETECT
#define CC1_CPU_SPEC \
"%{mcpu=native:%<mcpu=native %:local_cpu_detect(cpu)} \
%{mtune=native:%<mtune=native %:local_cpu_detect(tune)}"
+#else
+#define CC1_CPU_SPEC ""
+#endif
#endif
/* Architecture type. */