From 944499ed6b8eaf759db4f83654c3bfa3a521698c Mon Sep 17 00:00:00 2001 From: Sergey Grechanik Date: Thu, 11 Aug 2011 11:42:43 +0000 Subject: [PATCH] sel-sched.c (verify_target_availability): Fix usage of hard_regno_nregs. 2011-08-11 Sergey Grechanik * sel-sched.c (verify_target_availability): Fix usage of hard_regno_nregs. From-SVN: r177653 --- gcc/ChangeLog | 5 +++++ gcc/sel-sched.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 560007065b5..2ab101318f0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-08-11 Sergey Grechanik + + * sel-sched.c (verify_target_availability): Fix usage of + hard_regno_nregs. + 2011-08-11 Dmitry Melnik * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c index 92ba2222502..e791e4caa65 100644 --- a/gcc/sel-sched.c +++ b/gcc/sel-sched.c @@ -1581,7 +1581,7 @@ verify_target_availability (expr_t expr, regset used_regs, regno = expr_dest_regno (expr); mode = GET_MODE (EXPR_LHS (expr)); target_available = EXPR_TARGET_AVAILABLE (expr) == 1; - n = reload_completed ? hard_regno_nregs[regno][mode] : 1; + n = HARD_REGISTER_NUM_P (regno) ? hard_regno_nregs[regno][mode] : 1; live_available = hard_available = true; for (i = 0; i < n; i++) -- 2.30.2