diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-09 12:56:47 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-05-09 12:56:47 +0000 |
commit | 33c22fea5fb42d8c5305329dc5ff872f8906a69a (patch) | |
tree | aaf80738a13ab5c13f6de2bf5270a7b5b30592c7 /gcc/cfganal.c | |
parent | 90c2be4439c656f63074408d6c91442511a9e061 (diff) | |
download | gcc-33c22fea5fb42d8c5305329dc5ff872f8906a69a.tar.gz |
* cfganal.c (can_fallthru): Fix fast path.
* cfgrtl.c (verify_flow_info): Avoid crash on conditionals
with edges to the next block.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53327 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfganal.c')
-rw-r--r-- | gcc/cfganal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cfganal.c b/gcc/cfganal.c index 46c4758d3e7..f70c6c7b2fc 100644 --- a/gcc/cfganal.c +++ b/gcc/cfganal.c @@ -87,7 +87,10 @@ can_fallthru (src, target) rtx insn = src->end; rtx insn2 = target->head; - if (src->index + 1 == target->index && !active_insn_p (insn2)) + if (src->index + 1 != target->index) + return 0; + + if (!active_insn_p (insn2)) insn2 = next_active_insn (insn2); /* ??? Later we may add code to move jump tables offline. */ |