summaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-07 12:36:59 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-07 12:36:59 +0000
commit68c22c86ba542b18e282465fcad642b41f0d00e0 (patch)
tree99129eeef547cc25935d6cd0742982307faf653c /gcc/cfgrtl.c
parentc72fe7f63a19d987e3f982cc7ca2ebb649144489 (diff)
downloadgcc-68c22c86ba542b18e282465fcad642b41f0d00e0.tar.gz
PR opt/10024
* cfglayout.c (cfg_layout_redirect_edge): Redirect any branch edges unified with the fallthru one. * cfgrtl.c (force_nonfallthru_and_redirect): Do not special case fallthru edges when called via cfglayout.c git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65330 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r--gcc/cfgrtl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 185676b9041..1683ca48e21 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -927,6 +927,9 @@ force_nonfallthru_and_redirect (e, target)
by creating an basic block afterwards to redirect fallthru edge. */
if (e->src != ENTRY_BLOCK_PTR && e->dest != EXIT_BLOCK_PTR
&& any_condjump_p (e->src->end)
+ /* When called from cfglayout, fallthru edges do not
+ neccessarily go to the next block. */
+ && e->src->next_bb == e->dest
&& JUMP_LABEL (e->src->end) == e->dest->head)
{
rtx note;