resource.c: Use rtx_insn
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Aug 2014 20:51:46 +0000 (20:51 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 22 Aug 2014 20:51:46 +0000 (20:51 +0000)
gcc/
* resource.c (next_insn_no_annul): Strengthen local "next" from
rtx to rtx_insn *.
(mark_referenced_resources): Likewise for local "insn".

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@214372 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/resource.c

index 7872e58..89eeba3 100644 (file)
@@ -1,5 +1,11 @@
 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
        to rtx_insn *.
        (find_reloads): Likewise for param 1.
index b555682..ef08976 100644 (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;