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
This commit is contained in:
David Malcolm 2014-08-22 20:51:46 +00:00 committed by David Malcolm
parent 1e03f2567a
commit fcff50498c
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -174,7 +174,7 @@ next_insn_no_annul (rtx insn)
&& INSN_ANNULLED_BRANCH_P (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))
&& INSN_FROM_TARGET_P (next))
@ -308,7 +308,7 @@ mark_referenced_resources (rtx x, struct resources *res,
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
don't count and should be skipped. */
rtx insn = PREV_INSN (x);
rtx_insn *insn = PREV_INSN (x);
rtx sequence = 0;
int seq_size = 0;
int i;