public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, committed] rs6000.h CC1_CPU_SPEC for cross-compiler
@ 2007-08-12  2:50 David Edelsohn
  0 siblings, 0 replies; only message in thread
From: David Edelsohn @ 2007-08-12  2:50 UTC (permalink / raw)
  To: gcc-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-08-12  2:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-12  2:50 [PATCH, committed] rs6000.h CC1_CPU_SPEC for cross-compiler David Edelsohn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).