From: "Sergei Trofimovich" <slyfox@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/
Date: Fri, 3 Jul 2020 22:13:28 +0000 (UTC) [thread overview]
Message-ID: <1593814391.bccdc4064f11c9f7662445a88b5e64e9dc1d9ed0.slyfox@gentoo> (raw)
commit: bccdc4064f11c9f7662445a88b5e64e9dc1d9ed0
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 3 22:13:11 2020 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> 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 <slyfox <AT> 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 <siarheit@google.com>
+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 <siarheit@google.com>
+---
+ 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
next reply other threads:[~2020-07-03 22:13 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-03 22:13 Sergei Trofimovich [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-02-09 22:10 [gentoo-commits] proj/gcc-patches:master commit in: 11.0.0/gentoo/ Sergei Trofimovich
2021-01-28 18:17 Sergei Trofimovich
2020-12-17 17:04 Sergei Trofimovich
2020-08-26 6:54 Sergei Trofimovich
2020-08-23 9:18 Sergei Trofimovich
2020-07-20 22:31 Sergei Trofimovich
2020-07-04 7:57 Sergei Trofimovich
2020-07-04 7:56 Sergei Trofimovich
2020-07-04 7:56 Sergei Trofimovich
2020-06-11 22:50 Sergei Trofimovich
2020-06-11 22:49 Sergei Trofimovich
2020-05-28 23:02 Sergei Trofimovich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1593814391.bccdc4064f11c9f7662445a88b5e64e9dc1d9ed0.slyfox@gentoo \
--to=slyfox@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox