diff options
author | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-24 11:19:59 +0000 |
---|---|---|
committer | krebbel <krebbel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-07-24 11:19:59 +0000 |
commit | 058194ac5258577ecc637a4094dd26a3caa5ae96 (patch) | |
tree | 615cd6c470059cd9e5b68402b938c104bb356925 /gcc/config | |
parent | 67d07229dfa38a970a57c79214fb20232c6356c6 (diff) | |
download | gcc-058194ac5258577ecc637a4094dd26a3caa5ae96.tar.gz |
S390 -march=native related fixes
gcc/ChangeLog:
* config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS when
cross compiling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226144 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/s390/s390.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h index 85a0d1af65a..f18b97323b3 100644 --- a/gcc/config/s390/s390.h +++ b/gcc/config/s390/s390.h @@ -126,6 +126,7 @@ enum processor_flags { "arch", "%{!march=*:-march=%(VALUE)}" }, \ { "tune", "%{!mtune=*:-mtune=%(VALUE)}" } +#ifdef __s390__ extern const char *s390_host_detect_local_cpu (int argc, const char **argv); # define EXTRA_SPEC_FUNCTIONS \ { "local_cpu_detect", s390_host_detect_local_cpu }, @@ -133,6 +134,9 @@ extern const char *s390_host_detect_local_cpu (int argc, const char **argv); # define MARCH_MTUNE_NATIVE_SPECS \ " %{march=native:%<march=native %:local_cpu_detect(arch)}" \ " %{mtune=native:%<mtune=native %:local_cpu_detect(tune)}" +#else +# define MARCH_MTUNE_NATIVE_SPECS "" +#endif /* Defaulting rules. */ #ifdef DEFAULT_TARGET_64BIT |