summaryrefslogtreecommitdiff
path: root/sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-04-12 05:29:36 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-04-12 05:29:36 +0100
commit6c371067b74d6f9ad2ad4f2340d29cf969ebacf2 (patch)
tree046050c16be079a8e6301d0f2910d5f68b789199 /sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch
parentfbcee111120284091d5f2c5c1b8081fbfc399d6b (diff)
sys-devel/gcc : version bump (tc)
Diffstat (limited to 'sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch')
-rw-r--r--sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch b/sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch
new file mode 100644
index 00000000..7a6bebdf
--- /dev/null
+++ b/sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch
@@ -0,0 +1,29 @@
+https://bugs.gentoo.org/707958
+https://gcc.gnu.org/PR88879
+
+Subject: [PATCH] sel-sched: allow negative insn priority (PR 88879)
+From: Alexander Monakov <amonakov@ispras.ru>
+
+ PR rtl-optimization/88879
+ * sel-sched.c (sel_target_adjust_priority): Remove assert.
+
+From-SVN: r271039
+---
+ gcc/ChangeLog | 5 +++++
+ gcc/sel-sched.c | 2 --
+ 2 files changed, 5 insertions(+), 2 deletions(-)
+
+--- a/gcc/sel-sched.c
++++ b/gcc/sel-sched.c
+@@ -3331,8 +3331,6 @@ sel_target_adjust_priority (expr_t expr)
+ else
+ new_priority = priority;
+
+- gcc_assert (new_priority >= 0);
+-
+ /* If the priority has changed, adjust EXPR_PRIORITY_ADJ accordingly. */
+ EXPR_PRIORITY_ADJ (expr) = new_priority - EXPR_PRIORITY (expr);
+
+--
+2.25.0
+