public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] s390: Use arch14 instead of z16 for -march=native.
@ 2023-03-02 18:17 Robin Dapp
  2023-03-03 15:04 ` Andreas Krebbel
  0 siblings, 1 reply; 2+ messages in thread
From: Robin Dapp @ 2023-03-02 18:17 UTC (permalink / raw)
  To: GCC Patches, Andreas Krebbel

Hi,

When compiling on a system where binutils do not yet support the 'z16'
name assembling fails with -march=native which we currently interpret
as -march=z16 (on a z16 machine).  This patch uses -march=arch14
instead.

Is it OK?

Regards
 Robin

--

gcc/ChangeLog:

	* config/s390/driver-native.cc (s390_host_detect_local_cpu): Use
	arch14 instead of z16.
---
 gcc/config/s390/driver-native.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/s390/driver-native.cc b/gcc/config/s390/driver-native.cc
index 563da45c7f6e..3b9c1e1ca5df 100644
--- a/gcc/config/s390/driver-native.cc
+++ b/gcc/config/s390/driver-native.cc
@@ -125,10 +125,10 @@ s390_host_detect_local_cpu (int argc, const char **argv)
 	      break;
 	    case 0x3931:
 	    case 0x3932:
-	      cpu = "z16";
+	      cpu = "arch14";
 	      break;
 	    default:
-	      cpu = "z16";
+	      cpu = "arch14";
 	      break;
 	    }
 	}
-- 
2.39.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] s390: Use arch14 instead of z16 for -march=native.
  2023-03-02 18:17 [PATCH] s390: Use arch14 instead of z16 for -march=native Robin Dapp
@ 2023-03-03 15:04 ` Andreas Krebbel
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Krebbel @ 2023-03-03 15:04 UTC (permalink / raw)
  To: Robin Dapp, GCC Patches

On 3/2/23 19:17, Robin Dapp wrote:
> Hi,
> 
> When compiling on a system where binutils do not yet support the 'z16'
> name assembling fails with -march=native which we currently interpret
> as -march=z16 (on a z16 machine).  This patch uses -march=arch14
> instead.
> 
> Is it OK?

Ok. Thanks!

Andreas


> 
> Regards
>  Robin
> 
> --
> 
> gcc/ChangeLog:
> 
> 	* config/s390/driver-native.cc (s390_host_detect_local_cpu): Use
> 	arch14 instead of z16.
> ---
>  gcc/config/s390/driver-native.cc | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/gcc/config/s390/driver-native.cc b/gcc/config/s390/driver-native.cc
> index 563da45c7f6e..3b9c1e1ca5df 100644
> --- a/gcc/config/s390/driver-native.cc
> +++ b/gcc/config/s390/driver-native.cc
> @@ -125,10 +125,10 @@ s390_host_detect_local_cpu (int argc, const char **argv)
>  	      break;
>  	    case 0x3931:
>  	    case 0x3932:
> -	      cpu = "z16";
> +	      cpu = "arch14";
>  	      break;
>  	    default:
> -	      cpu = "z16";
> +	      cpu = "arch14";
>  	      break;
>  	    }
>  	}


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-03 15:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-02 18:17 [PATCH] s390: Use arch14 instead of z16 for -march=native Robin Dapp
2023-03-03 15:04 ` Andreas Krebbel

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).