| Submitter | Tom de Vries |
|---|---|
| Date | Nov. 25, 2011, 1:13 p.m. |
| Message ID | <4ECF9493.5040008@mentor.com> |
| Download | mbox | patch |
| Permalink | /patch/127692/ |
| State | New |
| Headers | show |
Comments
Patch
Index: gcc/cfglayout.c =================================================================== --- gcc/cfglayout.c (revision 181172) +++ gcc/cfglayout.c (working copy) @@ -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; } }