summaryrefslogtreecommitdiff
path: root/gcc/cfglayout.c
diff options
context:
space:
mode:
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-14 12:17:41 +0000
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-14 12:17:41 +0000
commita2b85e40cf2dd5a7174685077c7d54fc8a67ac45 (patch)
tree4f6d14468c3e8c66203f590c5cce7d44cffa1a49 /gcc/cfglayout.c
parent7d0d0ce1c6bb14bfda0b0fc0fcd8e96bd8c173f0 (diff)
downloadgcc-a2b85e40cf2dd5a7174685077c7d54fc8a67ac45.tar.gz
2012-04-14 Tom de Vries <tom@codesourcery.com>
* cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by call to delete_insn. Remove code to reorder BASIC_BLOCK note and DELETED_LABEL note, and move it to ... * cfgrtl.c (delete_insn): ... here. Change return type to void. (delete_insn_and_edges): Likewise. (delete_insn_chain): Handle new return type of delete_insn. Delete chain backwards rather than forwards. * rtl.h (delete_insn, delete_insn_and_edges): Change return type to void. * cfglayout.c (fixup_reorder_chain): Delete unused label. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186451 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfglayout.c')
-rw-r--r--gcc/cfglayout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cfglayout.c b/gcc/cfglayout.c
index 22d3d87e68b..c6e1f8324d8 100644
--- a/gcc/cfglayout.c
+++ b/gcc/cfglayout.c
@@ -857,6 +857,9 @@ fixup_reorder_chain (void)
(e_taken->src, e_taken->dest));
e_taken->flags |= EDGE_FALLTHRU;
update_br_prob_note (bb);
+ if (LABEL_NUSES (ret_label) == 0
+ && single_pred_p (e_taken->dest))
+ delete_insn (ret_label);
continue;
}
}