diff options
author | David Edelsohn <edelsohn@gnu.org> | 2007-08-12 02:46:54 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2007-08-11 22:46:54 -0400 |
commit | ee7caeb3b831b8ac96fd78dca0520b318b84747d (patch) | |
tree | dae0ef9bf8eac48748d5f81177be4bacf3e9fbdf /gcc | |
parent | 92c729983121f34ded24456a3f9d5a5b51458680 (diff) | |
download | gcc-ee7caeb3b831b8ac96fd78dca0520b318b84747d.zip gcc-ee7caeb3b831b8ac96fd78dca0520b318b84747d.tar.gz gcc-ee7caeb3b831b8ac96fd78dca0520b318b84747d.tar.bz2 |
rs6000.h (CC1_CPU_SPEC): Define as empty string if HAVE_LOCAL_CPU_DETECT not defined.
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.
Co-Authored-By: Segher Boessenkool <segher@kernel.crashing.org>
From-SVN: r127370
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.h | 6 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 834db67..db73703 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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. + 2007-08-11 Jan Hubicka <jh@suse.cz> * cgraphunit.c (record_cdtor_fn): Declare all cdtors always inlined. diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h index 5f34c80..4ba955f 100644 --- a/gcc/config/rs6000/rs6000.h +++ b/gcc/config/rs6000/rs6000.h @@ -149,10 +149,14 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); #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. */ |