summaryrefslogtreecommitdiff
path: root/gcc/cfgcleanup.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-14 19:21:21 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-14 19:21:21 +0000
commite9bc5a2db9b1292880a3cdd3cc7231cb6a0b61cc (patch)
treeedcef36f6f8778a85e7afe9512165986df634e90 /gcc/cfgcleanup.c
parentb8dbae25ed7356d5c3bcc2f7696d240cce6e9af6 (diff)
downloadgcc-e9bc5a2db9b1292880a3cdd3cc7231cb6a0b61cc.tar.gz
* cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
threaded loop. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48837 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r--gcc/cfgcleanup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c
index 5015c814941..13c5a8e1352 100644
--- a/gcc/cfgcleanup.c
+++ b/gcc/cfgcleanup.c
@@ -426,7 +426,10 @@ try_forward_edges (mode, b)
if (threaded_edges[i] == t)
break;
if (i < nthreaded_edges)
- break;
+ {
+ counter = n_basic_blocks;
+ break;
+ }
}
/* Detect an infinite loop across the start block. */