Commit fcff5049 by David Malcolm Committed by David Malcolm

resource.c: Use rtx_insn

gcc/
	* resource.c (next_insn_no_annul): Strengthen local "next" from
	rtx to rtx_insn *.
	(mark_referenced_resources): Likewise for local "insn".

From-SVN: r214372
parent 1e03f256
2014-08-22 David Malcolm <dmalcolm@redhat.com> 2014-08-22 David Malcolm <dmalcolm@redhat.com>
* resource.c (next_insn_no_annul): Strengthen local "next" from
rtx to rtx_insn *.
(mark_referenced_resources): Likewise for local "insn".
2014-08-22 David Malcolm <dmalcolm@redhat.com>
* reload.h (struct insn_chain): Strengthen field "insn" from rtx * reload.h (struct insn_chain): Strengthen field "insn" from rtx
to rtx_insn *. to rtx_insn *.
(find_reloads): Likewise for param 1. (find_reloads): Likewise for param 1.
......
...@@ -174,7 +174,7 @@ next_insn_no_annul (rtx insn) ...@@ -174,7 +174,7 @@ next_insn_no_annul (rtx insn)
&& INSN_ANNULLED_BRANCH_P (insn) && INSN_ANNULLED_BRANCH_P (insn)
&& NEXT_INSN (PREV_INSN (insn)) != insn) && NEXT_INSN (PREV_INSN (insn)) != insn)
{ {
rtx next = NEXT_INSN (insn); rtx_insn *next = NEXT_INSN (insn);
while ((NONJUMP_INSN_P (next) || JUMP_P (next) || CALL_P (next)) while ((NONJUMP_INSN_P (next) || JUMP_P (next) || CALL_P (next))
&& INSN_FROM_TARGET_P (next)) && INSN_FROM_TARGET_P (next))
...@@ -308,7 +308,7 @@ mark_referenced_resources (rtx x, struct resources *res, ...@@ -308,7 +308,7 @@ mark_referenced_resources (rtx x, struct resources *res,
However, we may have moved some of the parameter loading insns However, we may have moved some of the parameter loading insns
into the delay slot of this CALL. If so, the USE's for them into the delay slot of this CALL. If so, the USE's for them
don't count and should be skipped. */ don't count and should be skipped. */
rtx insn = PREV_INSN (x); rtx_insn *insn = PREV_INSN (x);
rtx sequence = 0; rtx sequence = 0;
int seq_size = 0; int seq_size = 0;
int i; int i;
......
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