summaryrefslogtreecommitdiff
path: root/gcc/tree-cfgcleanup.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-13 20:02:42 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2011-05-13 20:02:42 +0000
commit6d31b2236e13ee6ca2afc73140f6fe7ff923b573 (patch)
tree6cc3d5af3a75d2926126cff2aad2414c5b228316 /gcc/tree-cfgcleanup.c
parent4eba99811d9510ab7b897ee36aebc1a4e40f4747 (diff)
downloadgcc-6d31b2236e13ee6ca2afc73140f6fe7ff923b573.tar.gz
* cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
* regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in lieu of MAY_HAVE_DEBUG_STMTS. * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move debug statements if !MAY_HAVE_DEBUG_STMTS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173737 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfgcleanup.c')
-rw-r--r--gcc/tree-cfgcleanup.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c
index fe073f35529..ad8e4777a05 100644
--- a/gcc/tree-cfgcleanup.c
+++ b/gcc/tree-cfgcleanup.c
@@ -420,7 +420,7 @@ remove_forwarder_block (basic_block bb)
}
}
- can_move_debug_stmts = single_pred_p (dest);
+ can_move_debug_stmts = MAY_HAVE_DEBUG_STMTS && single_pred_p (dest);
/* Redirect the edges. */
for (ei = ei_start (bb->preds); (e = ei_safe_edge (ei)); )
@@ -476,8 +476,7 @@ remove_forwarder_block (basic_block bb)
gsi_next (&gsi);
}
- /* Move debug statements if the destination has just a single
- predecessor. */
+ /* Move debug statements if the destination has a single predecessor. */
if (can_move_debug_stmts)
{
gsi_to = gsi_after_labels (dest);