Commit 6b8c9327 by Andreas Jaeger Committed by Andreas Jaeger

gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.


	* gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
	* loop.c (add_label_notes): Likewise.
	* reload.c (find_reloads): Likewise.
	* config/sh/sh.c (machine_dependent_reorg): Likewise.

From-SVN: r45320
parent 6c8d43e7
2001-08-31 Andreas Jaeger <aj@suse.de>
* gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
* loop.c (add_label_notes): Likewise.
* reload.c (find_reloads): Likewise.
* config/sh/sh.c (machine_dependent_reorg): Likewise.
2001-08-31 Jason Merrill <jason_merrill@redhat.com> 2001-08-31 Jason Merrill <jason_merrill@redhat.com>
* unwind-pe.h (read_uleb128, read_sleb128): Move actual reading * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
......
...@@ -3238,9 +3238,9 @@ machine_dependent_reorg (first) ...@@ -3238,9 +3238,9 @@ machine_dependent_reorg (first)
or pseudo-op. */ or pseudo-op. */
label = gen_label_rtx (); label = gen_label_rtx ();
REG_NOTES (link) = gen_rtx_EXPR_LIST (REG_LABEL, label, REG_NOTES (link) = gen_rtx_INSN_LIST (REG_LABEL, label,
REG_NOTES (link)); REG_NOTES (link));
REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_LABEL, label, REG_NOTES (insn) = gen_rtx_INSN_LIST (REG_LABEL, label,
REG_NOTES (insn)); REG_NOTES (insn));
if (rescan) if (rescan)
{ {
...@@ -3256,7 +3256,7 @@ machine_dependent_reorg (first) ...@@ -3256,7 +3256,7 @@ machine_dependent_reorg (first)
|| ((reg2 = sfunc_uses_reg (scan)) || ((reg2 = sfunc_uses_reg (scan))
&& REGNO (reg2) == REGNO (reg)))) && REGNO (reg2) == REGNO (reg))))
REG_NOTES (scan) REG_NOTES (scan)
= gen_rtx_EXPR_LIST (REG_LABEL, label, REG_NOTES (scan)); = gen_rtx_INSN_LIST (REG_LABEL, label, REG_NOTES (scan));
} }
while (scan != dies); while (scan != dies);
} }
......
...@@ -5113,7 +5113,7 @@ add_label_notes (x, insn) ...@@ -5113,7 +5113,7 @@ add_label_notes (x, insn)
We no longer ignore such label references (see LABEL_REF handling in We no longer ignore such label references (see LABEL_REF handling in
mark_jump_label for additional information). */ mark_jump_label for additional information). */
REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_LABEL, XEXP (x, 0), REG_NOTES (insn) = gen_rtx_INSN_LIST (REG_LABEL, XEXP (x, 0),
REG_NOTES (insn)); REG_NOTES (insn));
if (LABEL_P (XEXP (x, 0))) if (LABEL_P (XEXP (x, 0)))
LABEL_NUSES (XEXP (x, 0))++; LABEL_NUSES (XEXP (x, 0))++;
......
...@@ -1626,7 +1626,7 @@ add_label_notes (x, insns) ...@@ -1626,7 +1626,7 @@ add_label_notes (x, insns)
for (insn = insns; insn; insn = NEXT_INSN (insn)) for (insn = insns; insn; insn = NEXT_INSN (insn))
if (reg_mentioned_p (XEXP (x, 0), insn)) if (reg_mentioned_p (XEXP (x, 0), insn))
{ {
REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_LABEL, XEXP (x, 0), REG_NOTES (insn) = gen_rtx_INSN_LIST (REG_LABEL, XEXP (x, 0),
REG_NOTES (insn)); REG_NOTES (insn));
if (LABEL_P (XEXP (x, 0))) if (LABEL_P (XEXP (x, 0)))
LABEL_NUSES (XEXP (x, 0))++; LABEL_NUSES (XEXP (x, 0))++;
......
...@@ -3875,7 +3875,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p) ...@@ -3875,7 +3875,7 @@ find_reloads (insn, replace, ind_levels, live_known, reload_reg_p)
if (GET_CODE (insn) != JUMP_INSN if (GET_CODE (insn) != JUMP_INSN
&& GET_CODE (substitution) == LABEL_REF && GET_CODE (substitution) == LABEL_REF
&& !find_reg_note (insn, REG_LABEL, XEXP (substitution, 0))) && !find_reg_note (insn, REG_LABEL, XEXP (substitution, 0)))
REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_LABEL, REG_NOTES (insn) = gen_rtx_INSN_LIST (REG_LABEL,
XEXP (substitution, 0), XEXP (substitution, 0),
REG_NOTES (insn)); REG_NOTES (insn));
} }
...@@ -5782,7 +5782,7 @@ subst_reloads (insn) ...@@ -5782,7 +5782,7 @@ subst_reloads (insn)
register refers to. */ register refers to. */
if (GET_CODE (*r->where) == LABEL_REF if (GET_CODE (*r->where) == LABEL_REF
&& GET_CODE (insn) == JUMP_INSN) && GET_CODE (insn) == JUMP_INSN)
REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_LABEL, REG_NOTES (insn) = gen_rtx_INSN_LIST (REG_LABEL,
XEXP (*r->where, 0), XEXP (*r->where, 0),
REG_NOTES (insn)); REG_NOTES (insn));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment