]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
authorRichard Henderson <rth@redhat.com>
Tue, 7 Jan 2003 20:21:35 +0000 (12:21 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 7 Jan 2003 20:21:35 +0000 (12:21 -0800)
From-SVN: r61009

gcc/ChangeLog
gcc/cfganal.c

index 6025d668b3871e56f361722108397ea5d3a61d2e..2bec1388b801e1cf73164dbd0729475a0f733cd6 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-07  Richard Henderson  <rth@redhat.com>
+
+       * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
+
 2003-01-01  Neil Booth  <neil@daikokuya.co.uk>
 
        PR preprocessor/8880
index 8aba2318692b90c4c33fb327b56017fbc1137f36..f0ca224e1be7962783b6a4fe38a2ce7c009d9d70 100644 (file)
@@ -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.
 
@@ -328,10 +328,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;
+             }
        }
     }