diff options
author | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-05-13 20:02:42 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2011-05-13 20:02:42 +0000 |
commit | dc764d10fa02c67d5a8748ce5f4c14096224ff89 (patch) | |
tree | 6cc3d5af3a75d2926126cff2aad2414c5b228316 /gcc/tree-cfgcleanup.c | |
parent | 75933b07b7a2b35b731e4f66e69eb800a824595e (diff) | |
download | gcc-dc764d10fa02c67d5a8748ce5f4c14096224ff89.zip gcc-dc764d10fa02c67d5a8748ce5f4c14096224ff89.tar.gz gcc-dc764d10fa02c67d5a8748ce5f4c14096224ff89.tar.bz2 |
cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
* 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.
From-SVN: r173737
Diffstat (limited to 'gcc/tree-cfgcleanup.c')
-rw-r--r-- | gcc/tree-cfgcleanup.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c index fe073f3..ad8e477 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); |