> The following series of patches contains fixes, and cleanup work
> related to -march=native (and -mtune=native) for S390.
>
> * 0001 Fix cross compilation for S390 targets that was broken with
> the original -march=native aptch.
Ciao
Dominik ^_^ ^_^
--
Dominik Vogt
IBM Germany
gcc/ChangeLog:
* config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS when
cross compiling.
>From 7ce17cd9b53959a70a9d30cb33acf62ef43ea418 Mon Sep 17 00:00:00 2001
From: Dominik Vogt <[email protected]>
Date: Thu, 9 Jul 2015 07:31:42 +0100
Subject: [PATCH 1/4] S390: Do not define EXTRA_SPEC_FUNCTIONS when cross
compiling.
---
gcc/config/s390/s390.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gcc/config/s390/s390.h b/gcc/config/s390/s390.h
index 85a0d1a..f18b973 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
--
2.3.0