OSDN Git Service

2009-11-24 Paolo Carlini <paolo.carlini@oracle.com>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Nov 2009 15:30:01 +0000 (15:30 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Nov 2009 15:30:01 +0000 (15:30 +0000)
* dwarf2out.c (add_location_or_const_value_attribute): Remove
useless NOTE_VAR_LOCATION_STATUS call.
* cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.

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

gcc/ChangeLog
gcc/cfgrtl.c
gcc/dwarf2out.c

index 169f5ee..c369412 100644 (file)
@@ -1,3 +1,9 @@
+2009-11-24  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * dwarf2out.c (add_location_or_const_value_attribute): Remove
+       useless NOTE_VAR_LOCATION_STATUS call.
+       * cfgrtl.c (commit_one_edge_insertion): Remove useless loop, tidy.
+
 2009-11-24  Rafael Avila de Espindola  <espindola@google.com>
 
        * lto-wrapper.c (lto_wrapper_exit): Don't try to delete files if
@@ -20,7 +26,7 @@
        (arm_dwarf_register_span): New function.
        (arm_dbx_register_number): Add VFPv3 dwarf numbering.
 
-2009-11-24  David Binderman <dcb314@hotmail.com>
+2009-11-24  David Binderman  <dcb314@hotmail.com>
 
        * cfgrtl.c (commit_one_edge_insertion): Remove set but not used
        local variable bb_note.
index 71c1540..16cbab4 100644 (file)
@@ -1504,20 +1504,11 @@ commit_one_edge_insertion (edge e)
              && targetm.have_named_sections
              && e->src != ENTRY_BLOCK_PTR
              && BB_PARTITION (e->src) == BB_COLD_PARTITION
-             && !(e->flags & EDGE_CROSSING))
-           {
-             rtx cur_insn;
-
-             for (cur_insn = BB_HEAD (bb); cur_insn != NEXT_INSN (BB_END (bb));
-                  cur_insn = NEXT_INSN (cur_insn))
-               if (NOTE_INSN_BASIC_BLOCK_P (cur_insn))
-                 break;
-
-             if (JUMP_P (BB_END (bb))
-                 && !any_condjump_p (BB_END (bb))
-                 && (single_succ_edge (bb)->flags & EDGE_CROSSING))
-               add_reg_note (BB_END (bb), REG_CROSSING_JUMP, NULL_RTX);
-           }
+             && !(e->flags & EDGE_CROSSING)
+             && JUMP_P (after)
+             && !any_condjump_p (after)
+             && (single_succ_edge (bb)->flags & EDGE_CROSSING))
+           add_reg_note (after, REG_CROSSING_JUMP, NULL_RTX);
        }
     }
 
index 25b5fdc..780117f 100644 (file)
@@ -15722,7 +15722,6 @@ add_location_or_const_value_attribute (dw_die_ref die, tree decl,
       struct var_loc_node *node;
 
       node = loc_list->first;
-      NOTE_VAR_LOCATION_STATUS (node->var_loc_note);
       rtl = NOTE_VAR_LOCATION (node->var_loc_note);
       if (GET_CODE (rtl) == VAR_LOCATION
          && GET_CODE (XEXP (rtl, 1)) != PARALLEL)