]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s390: Use arch14 instead of z16 for -march=native.
authorRobin Dapp <rdapp@linux.ibm.com>
Wed, 1 Feb 2023 18:39:10 +0000 (19:39 +0100)
committerRobin Dapp <rdapp@linux.ibm.com>
Fri, 3 Mar 2023 15:04:44 +0000 (16:04 +0100)
When compiling on a system where binutils do not yet support the 'z16'
name assembling fails with -march=native on a z16 machine.
Currently, this is interpreted as -march=z16.  This patch uses -march=arch14
instead.

gcc/ChangeLog:

* config/s390/driver-native.cc (s390_host_detect_local_cpu): Use
arch14 instead of z16.

gcc/config/s390/driver-native.cc

index 563da45c7f6e45661d30780a5e65ca5074e8f799..3b9c1e1ca5df48a002cd1006a6b5355bbb14a294 100644 (file)
@@ -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;
            }
        }