commit:     38039a107e4ac09fc34d9433dfe2fba9a20e1b92
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  6 19:22:55 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Thu Feb  6 19:22:55 2020 +0000
URL:        https://gitweb.gentoo.org/proj/gcc-patches.git/commit/?id=38039a10

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 <AT> gentoo.org>

 9.2.0/gentoo/34_all_ia64-neg-insn-cost.patch | 29 ++++++++++++++++++++++++++++
 9.2.0/gentoo/README.history                  |  3 +++
 2 files changed, 32 insertions(+)

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 <[email protected]>
+
+       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

Reply via email to