OSDN Git Service

dwarf2cfi: Rename cfi_insn to add_cfi_insn.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Jul 2011 20:00:43 +0000 (20:00 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 23 Jul 2011 20:00:43 +0000 (20:00 +0000)
Make it consistent with add_cfi_vec.

        * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.

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

gcc/ChangeLog
gcc/dwarf2cfi.c

index 87d7368..03ab1d6 100644 (file)
@@ -1,5 +1,9 @@
 2011-07-23  Richard Henderson  <rth@redhat.com>
 
 2011-07-23  Richard Henderson  <rth@redhat.com>
 
+       * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
+
+2011-07-23  Richard Henderson  <rth@redhat.com>
+
        * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
        (cie_cfi_row): New.
        (new_cfi_row, copy_cfi_row, free_cfi_row): New.
        * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
        (cie_cfi_row): New.
        (new_cfi_row, copy_cfi_row, free_cfi_row): New.
index 1c1b74f..eb59f28 100644 (file)
@@ -86,7 +86,7 @@ static GTY(()) dw_cfi_row_ref cie_cfi_row;
 static GTY(()) unsigned long dwarf2out_cfi_label_num;
 
 /* The insn after which a new CFI note should be emitted.  */
 static GTY(()) unsigned long dwarf2out_cfi_label_num;
 
 /* The insn after which a new CFI note should be emitted.  */
-static rtx cfi_insn;
+static rtx add_cfi_insn;
 
 /* When non-null, add_cfi will add the CFI to this vector.  */
 static cfi_vec *add_cfi_vec;
 
 /* When non-null, add_cfi will add the CFI to this vector.  */
 static cfi_vec *add_cfi_vec;
@@ -274,11 +274,13 @@ add_cfi (dw_cfi_ref cfi)
     }
 
   any_cfis_emitted = true;
     }
 
   any_cfis_emitted = true;
-  if (cfi_insn != NULL)
+
+  if (add_cfi_insn != NULL)
     {
     {
-      cfi_insn = emit_note_after (NOTE_INSN_CFI, cfi_insn);
-      NOTE_CFI (cfi_insn) = cfi;
+      add_cfi_insn = emit_note_after (NOTE_INSN_CFI, add_cfi_insn);
+      NOTE_CFI (add_cfi_insn) = cfi;
     }
     }
+
   if (add_cfi_vec != NULL)
     VEC_safe_push (dw_cfi_ref, gc, *add_cfi_vec, cfi);
 }
   if (add_cfi_vec != NULL)
     VEC_safe_push (dw_cfi_ref, gc, *add_cfi_vec, cfi);
 }
@@ -2319,7 +2321,7 @@ create_cfi_notes (void)
     {
       rtx pat;
 
     {
       rtx pat;
 
-      cfi_insn = PREV_INSN (insn);
+      add_cfi_insn = PREV_INSN (insn);
 
       if (BARRIER_P (insn))
        {
 
       if (BARRIER_P (insn))
        {
@@ -2342,7 +2344,7 @@ create_cfi_notes (void)
              break;
 
            case NOTE_INSN_CFA_RESTORE_STATE:
              break;
 
            case NOTE_INSN_CFA_RESTORE_STATE:
-             cfi_insn = insn;
+             add_cfi_insn = insn;
              dwarf2out_frame_debug_restore_state ();
              break;
            }
              dwarf2out_frame_debug_restore_state ();
              break;
            }
@@ -2372,13 +2374,13 @@ create_cfi_notes (void)
 
       /* Do not separate tablejump insns from their ADDR_DIFF_VEC.
         Putting the note after the VEC should be ok.  */
 
       /* Do not separate tablejump insns from their ADDR_DIFF_VEC.
         Putting the note after the VEC should be ok.  */
-      if (!tablejump_p (insn, NULL, &cfi_insn))
-       cfi_insn = insn;
+      if (!tablejump_p (insn, NULL, &add_cfi_insn))
+       add_cfi_insn = insn;
 
       dwarf2out_frame_debug (insn, true);
     }
 
 
       dwarf2out_frame_debug (insn, true);
     }
 
-  cfi_insn = NULL;
+  add_cfi_insn = NULL;
 }
 
 /* Determine if we need to save and restore CFI information around this
 }
 
 /* Determine if we need to save and restore CFI information around this