diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-10-30 13:41:45 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2001-10-30 13:41:45 +0100 |
commit | 3d238248433054745e54777fc4c59d1bce67ee41 (patch) | |
tree | bf284af1d2de346c28438607b4461f75a47c178a /gcc/reload.c | |
parent | 53fcdc7677776c3ccbe098ee4f8fe082cae5f28e (diff) | |
download | gcc-3d238248433054745e54777fc4c59d1bce67ee41.zip gcc-3d238248433054745e54777fc4c59d1bce67ee41.tar.gz gcc-3d238248433054745e54777fc4c59d1bce67ee41.tar.bz2 |
emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or REG_EQUIV notes for ASM_OPERANDS.
* emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
REG_EQUIV notes for ASM_OPERANDS. Return the new note (if any).
* rtl.h (set_unique_reg_note): Change return value.
* gcse.c (try_replace_reg): Use set_unique_reg_note.
* cse.c (cse_insn): Likewise.
* expr.c (emit_move_insn): Likewise.
* explow.c (force_reg): Likewise.
* local-alloc (update_equiv_regs): Likewise.
* loop.c (move_moveables, load_mems): Likewise.
* reload (find_reloads): Likewise.
* gcc.dg/20011029-2.c: New test.
From-SVN: r46636
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index 2e8c93f..9ed9cd0 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -2666,9 +2666,9 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) && GET_CODE (reg) == REG && (GET_MODE_SIZE (GET_MODE (reg)) >= GET_MODE_SIZE (GET_MODE (op)))) - REG_NOTES (emit_insn_before (gen_rtx_USE (VOIDmode, reg), insn)) - = gen_rtx_EXPR_LIST (REG_EQUAL, - reg_equiv_memory_loc[REGNO (reg)], NULL_RTX); + set_unique_reg_note (emit_insn_before (gen_rtx_USE (VOIDmode, reg), + insn), + REG_EQUAL, reg_equiv_memory_loc[REGNO (reg)]); substed_operand[i] = recog_data.operand[i] = op; } |