summaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.c
diff options
context:
space:
mode:
authordberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-18 13:29:38 +0000
committerdberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-18 13:29:38 +0000
commit6e81a3696568402c74c9ab8440e8434c4f71a9cb (patch)
tree24154ad4da32dba37675b38d2241bffdb18e8307 /gcc/cfgrtl.c
parentc3b696cc4e0ed23e2a0625f7e2a947432ab8d2d3 (diff)
downloadgcc-6e81a3696568402c74c9ab8440e8434c4f71a9cb.tar.gz
2005-05-18 Daniel Berlin <dberlin@dberlin.org>
* cfgrtl.c (purge_dead_edges): Don't remove fake edges. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99897 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r--gcc/cfgrtl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 3ceca75f7e3..42761cad745 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -2428,9 +2428,12 @@ purge_dead_edges (basic_block bb)
if (!found)
return purged;
+ /* Remove all but the fake and fallthru edges. The fake edge may be
+ the only successor for this block in the case of noreturn
+ calls. */
for (ei = ei_start (bb->succs); (e = ei_safe_edge (ei)); )
{
- if (!(e->flags & EDGE_FALLTHRU))
+ if (!(e->flags & (EDGE_FALLTHRU | EDGE_FAKE)))
{
bb->flags |= BB_DIRTY;
remove_edge (e);