valtrack.c: Use rtx_insn
authorDavid Malcolm <dmalcolm@redhat.com>
Sat, 23 Aug 2014 00:50:32 +0000 (00:50 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Sat, 23 Aug 2014 00:50:32 +0000 (00:50 +0000)
gcc/
2014-08-23  David Malcolm  <dmalcolm@redhat.com>

* valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
rtx to rtx_insn *.
(dead_debug_promote_uses): Likewise.
(dead_debug_insert_temp): Likewise.

From-SVN: r214390

gcc/ChangeLog
gcc/valtrack.c

index dabd632..81414ab 100644 (file)
@@ -1,5 +1,12 @@
 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
 
+       * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
+       rtx to rtx_insn *.
+       (dead_debug_promote_uses): Likewise.
+       (dead_debug_insert_temp): Likewise.
+
+2014-08-23  David Malcolm  <dmalcolm@redhat.com>
+
        * store-motion.c (store_killed_in_insn): Strengthen param "insn"
        from const_rtx to const rtx_insn *.
        (store_killed_after): Likewise.  Strengthen locals "last", "act"
index b5c4913..44001bf 100644 (file)
@@ -343,7 +343,7 @@ dead_debug_reset_uses (struct dead_debug_local *debug,
   while (head)
     {
       struct dead_debug_use *next = head->next;
-      rtx insn;
+      rtx_insn *insn;
 
       insn = DF_REF_INSN (head->use);
       if (!next || DF_REF_INSN (next->use) != insn)
@@ -431,7 +431,7 @@ dead_debug_promote_uses (struct dead_debug_local *debug)
                                                 REGNO (reg),
                                                 &debug->to_rescan))
              {
-               rtx insn = DF_REF_INSN (ref);
+               rtx_insn *insn = DF_REF_INSN (ref);
                INSN_VAR_LOCATION_LOC (insn) = gen_rtx_UNKNOWN_VAR_LOC ();
                bitmap_set_bit (debug->to_rescan, INSN_UID (insn));
              }
@@ -447,7 +447,7 @@ dead_debug_promote_uses (struct dead_debug_local *debug)
                                         DEBUG_EXPR_TREE_DECL (entry->dtemp),
                                         gen_rtx_UNKNOWN_VAR_LOC (),
                                         VAR_INIT_STATUS_INITIALIZED);
-           rtx insn = emit_debug_insn_before (bind, DF_REF_INSN (ref));
+           rtx_insn *insn = emit_debug_insn_before (bind, DF_REF_INSN (ref));
            bitmap_set_bit (debug->to_rescan, INSN_UID (insn));
          }
 
@@ -697,7 +697,7 @@ dead_debug_insert_temp (struct dead_debug_local *debug, unsigned int uregno,
      probably doesn't make sense to introduce a new debug temp.  */
   if (where == DEBUG_TEMP_AFTER_WITH_REG && !uses->next)
     {
-      rtx next = DF_REF_INSN (uses->use);
+      rtx_insn *next = DF_REF_INSN (uses->use);
 
       if (DEBUG_INSN_P (next) && reg == INSN_VAR_LOCATION_LOC (next))
        {