Tweak to ira-lives.c
authorDavid Malcolm <dmalcolm@redhat.com>
Wed, 27 Aug 2014 19:43:12 +0000 (19:43 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Wed, 27 Aug 2014 19:43:12 +0000 (19:43 +0000)
gcc/
2014-08-27  David Malcolm  <dmalcolm@redhat.com>

* ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
"prev" from rtx to rtx_insn *.

From-SVN: r214587

gcc/ChangeLog
gcc/ira-lives.c

index eaab05edb711ac158c4f538708c1223f4af07567..dbae32edf937dc2a2317a90726c8698f321f50c1 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-27  David Malcolm  <dmalcolm@redhat.com>
+
+       * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
+       "prev" from rtx to rtx_insn *.
+
 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
 
        * rtl.h (INSN_UID): Convert from a macro to a pair of inline
index 916f49224c4ed47223691168701adf60afecdfef..9f0cff2afb6da094caa9308298a27370ba16bd07 100644 (file)
@@ -1004,7 +1004,7 @@ find_call_crossed_cheap_reg (rtx_insn *insn)
     {
       basic_block bb = BLOCK_FOR_INSN (insn);
       rtx reg = SET_SRC (exp);
-      rtx prev = PREV_INSN (insn);
+      rtx_insn *prev = PREV_INSN (insn);
       while (prev && !(INSN_P (prev)
                       && BLOCK_FOR_INSN (prev) != bb))
        {