* 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
2005-05-18 Daniel Berlin <dberlin@dberlin.org>
+
+ * cfgrtl.c (purge_dead_edges): Don't remove fake edges.
+
+2005-05-18 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/21407
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);