aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-05-09 14:56:47 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2002-05-09 12:56:47 +0000
commit3e638a902a722d5ede3f3600062dcce89d78a1b4 (patch)
treeaaf80738a13ab5c13f6de2bf5270a7b5b30592c7 /gcc
parentb7c9bf289f096dd5338f37a4656f13d7b982fd33 (diff)
downloadgcc-3e638a902a722d5ede3f3600062dcce89d78a1b4.zip
gcc-3e638a902a722d5ede3f3600062dcce89d78a1b4.tar.gz
gcc-3e638a902a722d5ede3f3600062dcce89d78a1b4.tar.bz2
cfganal.c (can_fallthru): Fix fast path.
* cfganal.c (can_fallthru): Fix fast path. * cfgrtl.c (verify_flow_info): Avoid crash on conditionals with edges to the next block. From-SVN: r53327
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/cfganal.c5
-rw-r--r--gcc/cfgrtl.c1
3 files changed, 11 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5100e79..881dfe7 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Thu May 9 14:55:39 CEST 2002 Jan Hubicka <jh@suse.cz>
+
+ * cfganal.c (can_fallthru): Fix fast path.
+ * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
+ with edges to the next block.
+
Thu May 9 14:52:45 CEST 2002 Jan Hubicka <jh@suse.cz>
Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
diff --git a/gcc/cfganal.c b/gcc/cfganal.c
index 46c4758..f70c6c7 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. */
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index d96f677..cd3369c 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -1782,6 +1782,7 @@ verify_flow_info ()
if (INSN_P (bb->end)
&& (note = find_reg_note (bb->end, REG_BR_PROB, NULL_RTX))
+ && bb->succ && bb->succ->succ_next
&& any_condjump_p (bb->end))
{
if (INTVAL (XEXP (note, 0)) != BRANCH_EDGE (bb)->probability)