From 36281332fcb18c598b0616294b48d4a579314813 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 10 Mar 1994 15:32:26 -0500 Subject: [PATCH] (emit_reload_insns): When clearing reg_last_reload_reg, clear all hard regs in reload_out. From-SVN: r6741 --- gcc/reload1.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gcc/reload1.c b/gcc/reload1.c index 5a95d44a1ec..fb98835eae8 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -6449,7 +6449,10 @@ emit_reload_insns (insn) if (i < 0 && reload_out[r] != 0 && GET_CODE (reload_out[r]) == REG) { register int nregno = REGNO (reload_out[r]); - reg_last_reload_reg[nregno] = 0; + int num_regs = HARD_REGNO_NREGS (nregno, GET_MODE (reload_out[r])); + + while (num_regs-- > 0) + reg_last_reload_reg[nregno + num_regs] = 0; } } } -- 2.30.2