dwarf2out.c (add_location_or_const_value_attribute): Remove useless NOTE_VAR_LOCATION_STATUS call.

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.

From-SVN: r154501
This commit is contained in:
Paolo Carlini 2009-11-24 15:30:01 +00:00
parent 8aea79e6c9
commit 6e0b03f585
3 changed files with 12 additions and 16 deletions

View 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.

View 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);
}
}

View 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)