diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-14 19:21:21 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-14 19:21:21 +0000 |
commit | e9bc5a2db9b1292880a3cdd3cc7231cb6a0b61cc (patch) | |
tree | edcef36f6f8778a85e7afe9512165986df634e90 /gcc/cfgcleanup.c | |
parent | b8dbae25ed7356d5c3bcc2f7696d240cce6e9af6 (diff) | |
download | gcc-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.c | 5 |
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. */ |