From 27e1719707b523d9b3f3e32e53d01c00f06ac74e Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 30 Nov 2000 12:03:08 +0000 Subject: [PATCH] Backport a change to the 2.95 branch From-SVN: r37879 --- gcc/ChangeLog | 4 ++++ gcc/reload1.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 9c60312f0f8c..fa7d9cc60be1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2000-11-30 Bernd Schmidt + 2000-02-26 Geoff Keating + * reload1.c (do_output_reload): Check reg_reloaded_valid before + looking at reg_reloaded_contents. + Thu Apr 13 19:39:56 2000 Clinton Popetz * emit-rtl.c (try_split): Avoid infinite loop if the split results in a sequence that contains the original insn. diff --git a/gcc/reload1.c b/gcc/reload1.c index d9245b0595c0..4730caaed6c8 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -7112,7 +7112,8 @@ emit_reload_insns (chain) /* We don't need to test full validity of last_regno for inherit here; we only want to know if the store actually matches the pseudo. */ - if (reg_reloaded_contents[last_regno] == pseudo_no + if (TEST_HARD_REG_BIT (reg_reloaded_valid, last_regno) + && reg_reloaded_contents[last_regno] == pseudo_no && spill_reg_store[last_regno] && rtx_equal_p (pseudo, spill_reg_stored_to[last_regno])) delete_output_reload (insn, j, last_regno); -- 2.47.2