S390 -march=native related fixes
authorDominik Vogt <vogt@linux.vnet.ibm.com>
Fri, 24 Jul 2015 11:19:59 +0000 (11:19 +0000)
committerAndreas Krebbel <krebbel@gcc.gnu.org>
Fri, 24 Jul 2015 11:19:59 +0000 (11:19 +0000)
gcc/ChangeLog:

* config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS when
cross compiling.

From-SVN: r226144

gcc/ChangeLog
gcc/config/s390/s390.h

index 2f8ec696e7b3326a7470d92a1c87064160a0c55c..3de4f6bd8942d8af2c64be49d9f4031f9b354f58 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-24  Dominik Vogt  <vogt@linux.vnet.ibm.com>
+
+       * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
+       when cross compiling.
+
 2015-07-24  Richard Biener  <rguenther@suse.de>
 
        * fold-const.c (maybe_canonicalize_comparison_1): Move
index 85a0d1af65a2363e8eb2f9b7f3d9feea5cd00619..f18b97323b3a61f6700ffa84684d10127fe172f1 100644 (file)
@@ -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