summaryrefslogtreecommitdiff
path: root/sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch
blob: 7a6bebdf4905037a2eadc8330bc3ee5594ea3021 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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