From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2017) id 8D3163858002; Fri, 3 Mar 2023 15:06:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D3163858002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677856018; bh=tWYHDn8Qxj7JFwN6wImS5vlf8hpshNyekuEUawnT4Ns=; h=From:To:Subject:Date:From; b=K01hDBQsG0c0vhpR1L3q98NxZEco2/1pc3uGtRIxkBOutJyR9uvmKSbDqseisD9lX jlp0F/ygYcruznfo+MrScY1T1NMA8F1XPEzm5a0ZM4bBwX7hTpLUOtdJQFaQF+wKXO 4c9VWSn7rbqRIrv6+Sjse9ZSFnUN9xLRHYLx9bOs= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Robin Dapp To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-6449] s390: Use arch14 instead of z16 for -march=native. X-Act-Checkin: gcc X-Git-Author: Robin Dapp X-Git-Refname: refs/heads/master X-Git-Oldrev: 0412a2358a169875c8a295304f2d1085c79fe392 X-Git-Newrev: da5adab2ae046bed0e2b72466f439f023f697433 Message-Id: <20230303150658.8D3163858002@sourceware.org> Date: Fri, 3 Mar 2023 15:06:58 +0000 (GMT) List-Id: https://gcc.gnu.org/g:da5adab2ae046bed0e2b72466f439f023f697433 commit r13-6449-gda5adab2ae046bed0e2b72466f439f023f697433 Author: Robin Dapp Date: Wed Feb 1 19:39:10 2023 +0100 s390: Use arch14 instead of z16 for -march=native. 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. Diff: --- 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 563da45c7f6..3b9c1e1ca5d 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; } }