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 2D7CF138359 for ; Fri, 3 Jul 2020 22:13:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1FD5DE0805; Fri, 3 Jul 2020 22:13:31 +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 06E4FE0805 for ; Fri, 3 Jul 2020 22:13:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 857C734F149 for ; Fri, 3 Jul 2020 22:13:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3A9E09C for ; Fri, 3 Jul 2020 22:13:28 +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: <1593814391.bccdc4064f11c9f7662445a88b5e64e9dc1d9ed0.slyfox@gentoo> Subject: [gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/ X-VCS-Repository: proj/gcc-patches X-VCS-Files: 11.0.0/gentoo/30_all_fno-delayed-branch.patch 11.0.0/gentoo/README.history X-VCS-Directories: 11.0.0/gentoo/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: bccdc4064f11c9f7662445a88b5e64e9dc1d9ed0 X-VCS-Branch: master Date: Fri, 3 Jul 2020 22:13:28 +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: e2603fb9-4edb-44b0-b4be-0c0c8f99c662 X-Archives-Hash: d3a496515477d9d22510533a48fb8727 commit: bccdc4064f11c9f7662445a88b5e64e9dc1d9ed0 Author: Sergei Trofimovich gentoo org> AuthorDate: Fri Jul 3 22:13:11 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Fri Jul 3 22:13:11 2020 +0000 URL: https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=bccdc406 11.0.0: Disable -fdelayed-branch by default. >From https://gcc.gnu.org/PR96015 / https://bugs.gentoo.org/729570. delayed branches are known to generate invalid code around __builtin_unreachable(); and mis-compiles python. Use blunt hammer and disable delayed slots until we have better fix. Reported-by: Jeroen Roovers Bug: From https://gcc.gnu.org/PR96015 Bug: https://bugs.gentoo.org/729570. Signed-off-by: Sergei Trofimovich gentoo.org> 11.0.0/gentoo/30_all_fno-delayed-branch.patch | 40 +++++++++++++++++++++++++++ 11.0.0/gentoo/README.history | 1 + 2 files changed, 41 insertions(+) diff --git a/11.0.0/gentoo/30_all_fno-delayed-branch.patch b/11.0.0/gentoo/30_all_fno-delayed-branch.patch new file mode 100644 index 0000000..bc19974 --- /dev/null +++ b/11.0.0/gentoo/30_all_fno-delayed-branch.patch @@ -0,0 +1,40 @@ +From 6d0d3ae914bf19706550a539ef304c5875535ffc Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich +Date: Fri, 3 Jul 2020 22:50:33 +0100 +Subject: [PATCH] Disable -fdelayed-branch by default. + +From https://gcc.gnu.org/PR96015 / https://bugs.gentoo.org/729570. +delayed branches are known to generate invalid code around +__builtin_unreachable(); and mis-compiles python. + +Use blunt hammer and disable delayed slots until we have better fix. + +Reported-by: Jeroen Roovers +Bug: From https://gcc.gnu.org/PR96015 +Bug: https://bugs.gentoo.org/729570. +Signed-off-by: Sergei Trofimovich +--- + gcc/opts.c | 9 ++++++++- + 1 file changed, 8 insertions(+), 1 deletion(-) + +--- a/gcc/opts.c ++++ b/gcc/opts.c +@@ -458,7 +458,14 @@ static const struct default_options default_options_table[] = + /* -O1 (and not -Og) optimizations. */ + { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fbranch_count_reg, NULL, 1 }, + #if DELAY_SLOTS +- { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fdelayed_branch, NULL, 1 }, ++ /* ++ * From https://gcc.gnu.org/PR96015 / https://bugs.gentoo.org/729570. ++ * delayed branches are known to generate invalid code around ++ * __builtin_unreachable(); and mis-compiles python. ++ * ++ * Use blunt hammer and disable delayed slots until we have better fix. ++ */ ++ /* { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fdelayed_branch, NULL, 1 }, */ + #endif + { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fdse, NULL, 1 }, + { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fif_conversion, NULL, 1 }, +-- +2.27.0 + diff --git a/11.0.0/gentoo/README.history b/11.0.0/gentoo/README.history index 4add930..ff48ea3 100644 --- a/11.0.0/gentoo/README.history +++ b/11.0.0/gentoo/README.history @@ -1,5 +1,6 @@ 2 TODO + 29_all_plugin-objdump.patch + + 30_all_fno-delayed-branch.patch 1 29 May 2020 + 01_all_default-fortify-source.patch