From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 83F13138334 for ; Thu, 26 Sep 2019 22:07:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D3CEFE0B47; Thu, 26 Sep 2019 22:07:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A64BEE0B47 for ; Thu, 26 Sep 2019 22:07:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3FDBA34B61D for ; Thu, 26 Sep 2019 22:06:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BB0064D3 for ; Thu, 26 Sep 2019 22:06:56 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1569535542.f1aedb7402ea1a0dec4d02e85fe7a3889c41f249.slyfox@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 9.2.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 9.2.0/gentoo/30_all_arm64-march-native.patch 9.2.0/gentoo/README.history X-VCS-Directories: 9.2.0/gentoo/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: f1aedb7402ea1a0dec4d02e85fe7a3889c41f249 X-VCS-Branch: master Date: Thu, 26 Sep 2019 22:06:56 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 64773eac-6369-4422-afe1-bc5a91799f07 X-Archives-Hash: b7272361e4ac3464b0e9732a96891747 commit: f1aedb7402ea1a0dec4d02e85fe7a3889c41f249 Author: Sergei Trofimovich gentoo org> AuthorDate: Thu Sep 26 22:05:42 2019 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Thu Sep 26 22:05:42 2019 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=f1aedb74 9.2.0: backport arm64 -march=native precedence handling, bug #695420 Reported-by: Aaron Bauman Bug: https://bugs.gentoo.org/695420 Bug: https://gcc.gnu.org/PR69471#c13 Signed-off-by: Sergei Trofimovich gentoo.org> 9.2.0/gentoo/30_all_arm64-march-native.patch | 90 ++++++++++++++++++++++++++++ 9.2.0/gentoo/README.history | 3 + 2 files changed, 93 insertions(+) diff --git a/9.2.0/gentoo/30_all_arm64-march-native.patch b/9.2.0/gentoo/30_all_arm64-march-native.patch new file mode 100644 index 0000000..0fb6f76 --- /dev/null +++ b/9.2.0/gentoo/30_all_arm64-march-native.patch @@ -0,0 +1,90 @@ +https://bugs.gentoo.org/695420 +https://gcc.gnu.org/PR69471#c13 + +From 537fd9d4dcaed8dae6248ec22a50603a591a3752 Mon Sep 17 00:00:00 2001 +From: ktkachov +Date: Thu, 26 Sep 2019 10:52:42 +0000 +Subject: [PATCH] driver: Also prune joined switches with negation + +When -march=native is passed to host_detect_local_cpu to the backend, +it overrides all command lines after it. That means + +$ gcc -march=native -march=armv8-a + +is treated as + +$ gcc -march=armv8-a -march=native + +Prune joined switches with Negative and RejectNegative to allow +-march=armv8-a to override previous -march=native on command-line. + +This is the same fix as was applied for i386 in SVN revision 269164 but for +aarch64 and arm. + +2019-09-26 Matt Turner + + PR driver/69471 + * config/aarch64/aarch64.opt (march=): Add Negative(march=). + (mtune=): Add Negative(mtune=). + (mcpu=): Add Negative(mcpu=). + * config/arm/arm.opt: Likewise. + + +git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276148 138bc75d-0d04-0410-961f-82ee72b054a4 +--- + gcc/config/aarch64/aarch64.opt | 6 +++--- + gcc/config/arm/arm.opt | 6 +++--- + +--- a/gcc/config/aarch64/aarch64.opt ++++ b/gcc/config/aarch64/aarch64.opt +@@ -119,15 +119,15 @@ EnumValue + Enum(aarch64_tls_size) String(48) Value(48) + + march= +-Target RejectNegative ToLower Joined Var(aarch64_arch_string) ++Target RejectNegative Negative(march=) ToLower Joined Var(aarch64_arch_string) + Use features of architecture ARCH. + + mcpu= +-Target RejectNegative ToLower Joined Var(aarch64_cpu_string) ++Target RejectNegative Negative(mcpu=) ToLower Joined Var(aarch64_cpu_string) + Use features of and optimize for CPU. + + mtune= +-Target RejectNegative ToLower Joined Var(aarch64_tune_string) ++Target RejectNegative Negative(mtune=) ToLower Joined Var(aarch64_tune_string) + Optimize for CPU. + + mabi= +--- a/gcc/config/arm/arm.opt ++++ b/gcc/config/arm/arm.opt +@@ -82,7 +82,7 @@ mapcs-stack-check + Target Report Mask(APCS_STACK) Undocumented + + march= +-Target RejectNegative ToLower Joined Var(arm_arch_string) ++Target RejectNegative Negative(march=) ToLower Joined Var(arm_arch_string) + Specify the name of the target architecture. + + ; Other arm_arch values are loaded from arm-tables.opt +@@ -107,7 +107,7 @@ Target Report Mask(CALLER_INTERWORKING) + Thumb: Assume function pointers may go to non-Thumb aware code. + + mcpu= +-Target RejectNegative ToLower Joined Var(arm_cpu_string) ++Target RejectNegative Negative(mcpu=) ToLower Joined Var(arm_cpu_string) + Specify the name of the target CPU. + + mfloat-abi= +@@ -232,7 +232,7 @@ Target Report Mask(TPCS_LEAF_FRAME) + Thumb: Generate (leaf) stack frames even if not needed. + + mtune= +-Target RejectNegative ToLower Joined Var(arm_tune_string) ++Target RejectNegative Negative(mtune=) ToLower Joined Var(arm_tune_string) + Tune code for the given processor. + + mprint-tune-info +-- +2.23.0 + diff --git a/9.2.0/gentoo/README.history b/9.2.0/gentoo/README.history index a2cbd76..cbeef2d 100644 --- a/9.2.0/gentoo/README.history +++ b/9.2.0/gentoo/README.history @@ -1,3 +1,6 @@ +3 TODO + + 30_all_arm64-march-native.patch + 2 22 Sep 2019 + 27_all_sparc-PIC-constant-PR91472.patch + 28_all_sparc-fpu-subregs-91269.patch