From c2fd66f48e9aa9011f67f17b762a39d62d174c36 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Fri, 29 Dec 2000 13:13:42 +0000 Subject: [PATCH] local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN. 2000-12-29 Richard Kenner * local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN. *** local-alloc.c 2000/11/30 21:40:33 1.75 --- local-alloc.c 2000/12/29 13:10:59 *************** update_equiv_regs () *** 1141,1146 **** rtx new_insn; ! new_insn = emit_insn_before (copy_rtx (PATTERN (equiv_insn)), ! insn); REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn); REG_NOTES (equiv_insn) = 0; --- 1141,1145 ---- rtx new_insn; ! new_insn = emit_insn_before (PATTERN (equiv_insn), insn); REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn); REG_NOTES (equiv_insn) = 0; From-SVN: r38536 --- gcc/ChangeLog | 2 ++ gcc/local-alloc.c | 7 +++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7718ec75e29..1f2b7971823 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2000-12-29 Richard Kenner + * local-alloc.c (update_equiv_regs): Don't use copy_rtx on PATTERN. + * toplev.c (main): Call xmalloc_set_program_name. * gcc.c (main): Likewise. diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index 62142f04c38..f1d1b8527b3 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -1131,8 +1131,8 @@ update_equiv_regs () NOTE_LINE_NUMBER (equiv_insn) = NOTE_INSN_DELETED; NOTE_SOURCE_FILE (equiv_insn) = 0; - reg_equiv[regno].init_insns = - XEXP (reg_equiv[regno].init_insns, 1); + reg_equiv[regno].init_insns + = XEXP (reg_equiv[regno].init_insns, 1); } /* Move the initialization of the register to just before INSN. Update the flow information. */ @@ -1140,8 +1140,7 @@ update_equiv_regs () { rtx new_insn; - new_insn = emit_insn_before (copy_rtx (PATTERN (equiv_insn)), - insn); + new_insn = emit_insn_before (PATTERN (equiv_insn), insn); REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn); REG_NOTES (equiv_insn) = 0;