aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfganal.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-01-07 12:14:51 -0800
committerRichard Henderson <rth@gcc.gnu.org>2003-01-07 12:14:51 -0800
commit94c040bd69078d4b4605cba9468cd0f9f6ad85d6 (patch)
treea0848d70667717ed572294aca719c0efc7f03d31 /gcc/cfganal.c
parentb47ffb8f08896644da2da1afb674e2d5cf3ec175 (diff)
downloadgcc-94c040bd69078d4b4605cba9468cd0f9f6ad85d6.zip
gcc-94c040bd69078d4b4605cba9468cd0f9f6ad85d6.tar.gz
gcc-94c040bd69078d4b4605cba9468cd0f9f6ad85d6.tar.bz2
* cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
From-SVN: r61007
Diffstat (limited to 'gcc/cfganal.c')
-rw-r--r--gcc/cfganal.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/cfganal.c b/gcc/cfganal.c
index 170ba44..a787817 100644
--- a/gcc/cfganal.c
+++ b/gcc/cfganal.c
@@ -1,6 +1,6 @@
/* Control flow graph analysis code for GNU compiler.
Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001 Free Software Foundation, Inc.
+ 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
This file is part of GCC.
@@ -322,10 +322,11 @@ flow_call_edges_add (blocks)
for (e = bb->succ; e; e = e->succ_next)
if (e->dest == EXIT_BLOCK_PTR)
- break;
-
- insert_insn_on_edge (gen_rtx_USE (VOIDmode, const0_rtx), e);
- commit_edge_insertions ();
+ {
+ insert_insn_on_edge (gen_rtx_USE (VOIDmode, const0_rtx), e);
+ commit_edge_insertions ();
+ break;
+ }
}
}