This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]