aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/expr.c32
2 files changed, 17 insertions, 20 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4574634..bfd8a0b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 19 21:08:20 1999 Richard Henderson <rth@cygnus.com>
+
+ * expr.c (emit_move_insn_1): Revert 17 Dec change. Don't emit
+ clobber during or after reload.
+
Tue Jan 19 16:56:03 1999 Richard Henderson <rth@cygnus.com>
* genoutput.c (name_for_index): New function.
diff --git a/gcc/expr.c b/gcc/expr.c
index d84849d..88ce156 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -2578,17 +2578,13 @@ emit_move_insn_1 (x, y)
}
else
{
- /* Show the output dies here. This is only necessary for pseudos. */
- if (x != y)
+ /* Show the output dies here. This is necessary for pseudos;
+ hard regs shouldn't appear here except as return values.
+ We never want to emit such a clobber after reload. */
+ if (x != y
+ && ! (reload_in_progress || reload_completed))
{
- rtx reg = x;
-
- while (GET_CODE (reg) == SUBREG)
- reg = SUBREG_REG (reg);
-
- if (GET_CODE (reg) == REG
- && REGNO (reg) >= FIRST_PSEUDO_REGISTER)
- emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
+ emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
}
emit_insn (GEN_FCN (mov_optab->handlers[(int) submode].insn_code)
@@ -2618,17 +2614,13 @@ emit_move_insn_1 (x, y)
}
#endif
- /* Show the output dies here. This is only necessary for pseudos. */
- if (x != y)
+ /* Show the output dies here. This is necessary for pseudos;
+ hard regs shouldn't appear here except as return values.
+ We never want to emit such a clobber after reload. */
+ if (x != y
+ && ! (reload_in_progress || reload_completed))
{
- rtx reg = x;
-
- while (GET_CODE (reg) == SUBREG)
- reg = SUBREG_REG (reg);
-
- if (GET_CODE (reg) == REG
- && REGNO (reg) >= FIRST_PSEUDO_REGISTER)
- emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
+ emit_insn (gen_rtx_CLOBBER (VOIDmode, x));
}
for (i = 0;