aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-02-09 22:09:58 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2021-02-09 22:09:58 +0000
commitc3fc0b5294ca9628fe7041b180f4c80d1591f82d (patch)
tree70cce3cd50667400b6ef07bed9b820fee6b904e1
parent11.0.0: drop upstreamed 07_all_i386_libgcc_note.GNU-stack.patch (diff)
downloadgcc-patches-c3fc0b5294ca9628fe7041b180f4c80d1591f82d.tar.gz
gcc-patches-c3fc0b5294ca9628fe7041b180f4c80d1591f82d.tar.bz2
gcc-patches-c3fc0b5294ca9628fe7041b180f4c80d1591f82d.zip
11.0.0: drop 30_all_fno-delayed-branch.patch (fixed upstream)
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r--11.0.0/gentoo/30_all_fno-delayed-branch.patch40
-rw-r--r--11.0.0/gentoo/README.history3
2 files changed, 3 insertions, 40 deletions
diff --git a/11.0.0/gentoo/30_all_fno-delayed-branch.patch b/11.0.0/gentoo/30_all_fno-delayed-branch.patch
deleted file mode 100644
index 879c69d..0000000
--- a/11.0.0/gentoo/30_all_fno-delayed-branch.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-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: 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 5c5307a..91a0aed 100644
--- a/11.0.0/gentoo/README.history
+++ b/11.0.0/gentoo/README.history
@@ -1,3 +1,6 @@
+7 TODO
+ - 30_all_fno-delayed-branch.patch
+
6 28 Jan 2021
- 07_all_i386_libgcc_note.GNU-stack.patch