aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-02-06 19:22:55 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2020-02-06 19:22:55 +0000
commit38039a107e4ac09fc34d9433dfe2fba9a20e1b92 (patch)
tree9e428416fc4e179d4842b87b98112c2cfbd76888
parent7.2.0: mark unreleased changes abandoned (diff)
downloadgcc-patches-38039a107e4ac09fc34d9433dfe2fba9a20e1b92.tar.gz
gcc-patches-38039a107e4ac09fc34d9433dfe2fba9a20e1b92.tar.bz2
gcc-patches-38039a107e4ac09fc34d9433dfe2fba9a20e1b92.zip
9.2.0: pull in PR88879 (negative insn cost), bug #707958
Single new upstream patch 34_all_ia64-neg-insn-cost.patch to allow zstd to build successfully. Reported-by: Matt Turner Closes: https://bugs.gentoo.org/707958 Bug: https://gcc.gnu.org/PR88879 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r--9.2.0/gentoo/34_all_ia64-neg-insn-cost.patch29
-rw-r--r--9.2.0/gentoo/README.history3
2 files changed, 32 insertions, 0 deletions
diff --git a/9.2.0/gentoo/34_all_ia64-neg-insn-cost.patch b/9.2.0/gentoo/34_all_ia64-neg-insn-cost.patch
new file mode 100644
index 0000000..7a6bebd
--- /dev/null
+++ b/9.2.0/gentoo/34_all_ia64-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
+
diff --git a/9.2.0/gentoo/README.history b/9.2.0/gentoo/README.history
index 3324fed..0ac54f3 100644
--- a/9.2.0/gentoo/README.history
+++ b/9.2.0/gentoo/README.history
@@ -1,3 +1,6 @@
+5 TODO
+ + 34_all_ia64-neg-insn-cost.patch
+
4 22 Dec 2012
+ 31_all_openmp-for-SEGV.patch
+ 27_all_sparc-PIC-constant-PR91472.patch