aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPaolo Carlini <paolo@gcc.gnu.org>2009-11-24 15:30:01 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2009-11-24 15:30:01 +0000
commit6e0b03f5855ae33c0e25d723c5cfc0f2dbc6698f (patch)
tree335059c6af0f4cc30f661b4446e42edb898d2227 /gcc
parent8aea79e6c91d187cc64058e615d0c8347dd79b63 (diff)
downloadgcc-6e0b03f5855ae33c0e25d723c5cfc0f2dbc6698f.zip
gcc-6e0b03f5855ae33c0e25d723c5cfc0f2dbc6698f.tar.gz
gcc-6e0b03f5855ae33c0e25d723c5cfc0f2dbc6698f.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/cfgrtl.c19
-rw-r--r--gcc/dwarf2out.c1
3 files changed, 12 insertions, 16 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 169f5ee..c369412 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 71c1540..16cbab4 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -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);
}
}
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 25b5fdc..780117f 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -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)