From 33c22fea5fb42d8c5305329dc5ff872f8906a69a Mon Sep 17 00:00:00 2001 From: hubicka Date: Thu, 9 May 2002 12:56:47 +0000 Subject: * 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 --- gcc/cfganal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/cfganal.c') 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. */ -- cgit v1.2.1