summaryrefslogtreecommitdiff
path: root/gcc/local-alloc.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-10 21:42:04 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-10 21:42:04 +0000
commitcdf37bc1730b86278260925fa74f3949ed84af1b (patch)
tree7b0c4d5780c7da1e20a8d73c2051cd1de97dda2e /gcc/local-alloc.c
parent4234c724716893c7560ade9a38b740077b074683 (diff)
downloadgcc-cdf37bc1730b86278260925fa74f3949ed84af1b.tar.gz
* cse.c (cse_process_notes): Copy the propagated value.
* local-alloc.c (update_equiv_regs): Copy the memory RTX to be used in REG_EQUIV notes. * gcse.c (try_replace_reg): Copy the replacement. * i386.c (emit_i387_cw_initialization): Copy stored_mode (assign_386_stack_local): Always return copied memory expression * function.c (instantiate_virtual_regs_in_insn): Copy the operand duplicates. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118665 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r--gcc/local-alloc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c
index c103400b8ea..e6ff69e48a5 100644
--- a/gcc/local-alloc.c
+++ b/gcc/local-alloc.c
@@ -907,7 +907,7 @@ update_equiv_regs (void)
REG_EQUAL note on the insn. Since this note would be redundant,
there's no point creating it earlier than here. */
if (! note && ! rtx_varies_p (src, 0))
- note = set_unique_reg_note (insn, REG_EQUAL, src);
+ note = set_unique_reg_note (insn, REG_EQUAL, copy_rtx (src));
/* Don't bother considering a REG_EQUAL note containing an EXPR_LIST
since it represents a function call */
@@ -953,7 +953,8 @@ update_equiv_regs (void)
if (note == 0 && REG_BASIC_BLOCK (regno) >= 0
&& MEM_P (SET_SRC (set))
&& validate_equiv_mem (insn, dest, SET_SRC (set)))
- REG_NOTES (insn) = note = gen_rtx_EXPR_LIST (REG_EQUIV, SET_SRC (set),
+ REG_NOTES (insn) = note = gen_rtx_EXPR_LIST (REG_EQUIV,
+ copy_rtx (SET_SRC (set)),
REG_NOTES (insn));
if (note)
@@ -1061,7 +1062,7 @@ update_equiv_regs (void)
&& ! memref_used_between_p (dest, init_insn, insn))
{
REG_NOTES (init_insn)
- = gen_rtx_EXPR_LIST (REG_EQUIV, dest,
+ = gen_rtx_EXPR_LIST (REG_EQUIV, copy_rtx (dest),
REG_NOTES (init_insn));
/* This insn makes the equivalence, not the one initializing
the register. */