aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Schmidt <crux@pool.informatik.rwth-aachen.de>1998-11-06 19:22:36 +0000
committerJeff Law <law@gcc.gnu.org>1998-11-06 12:22:36 -0700
commitd30e8ef0dcdb0ae77a98d79879fe07600d9c4c77 (patch)
treedde8d64c18236392a248d9a3f6d9894119e51477
parent6ba89f8ecba5e27e4c847308cceaec857aaaa5cc (diff)
downloadgcc-d30e8ef0dcdb0ae77a98d79879fe07600d9c4c77.zip
gcc-d30e8ef0dcdb0ae77a98d79879fe07600d9c4c77.tar.gz
gcc-d30e8ef0dcdb0ae77a98d79879fe07600d9c4c77.tar.bz2
reload1.c (emit_reload_insns): When rewriting the SET_DEST of a previous insn to store directly into our...
* reload1.c (emit_reload_insns): When rewriting the SET_DEST of a previous insn to store directly into our reload register, make sure that if the source of the previous insn is a reload register, its spill_reg_store and spill_reg_stored_to values are cleared. From-SVN: r23550
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/reload1.c12
2 files changed, 19 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 87c79fe..1c94751 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+Fri Nov 6 20:15:19 1998 Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
+
+ * reload1.c (emit_reload_insns): When rewriting the SET_DEST of a
+ previous insn to store directly into our reload register, make sure
+ that if the source of the previous insn is a reload register, its
+ spill_reg_store and spill_reg_stored_to values are cleared.
+
Fri Nov 6 16:35:10 1998 David Edelsohn <edelsohn@mhpcc.edu>
* rs6000.md (floatunssidf2_internal splitter): Use base register
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 685d783..ce574a1 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -6774,6 +6774,18 @@ emit_reload_insns (chain)
{
/* Store into the reload register instead of the pseudo. */
SET_DEST (PATTERN (temp)) = reloadreg;
+
+ /* If the previous insn is an output reload, the source is
+ a reload register, and its spill_reg_store entry will
+ contain the previous destination. This is now
+ invalid. */
+ if (GET_CODE (SET_SRC (PATTERN (temp))) == REG
+ && REGNO (SET_SRC (PATTERN (temp))) < FIRST_PSEUDO_REGISTER)
+ {
+ spill_reg_store[REGNO (SET_SRC (PATTERN (temp)))] = 0;
+ spill_reg_stored_to[REGNO (SET_SRC (PATTERN (temp)))] = 0;
+ }
+
/* If these are the only uses of the pseudo reg,
pretend for GDB it lives in the reload reg we used. */
if (REG_N_DEATHS (REGNO (old)) == 1