aboutsummaryrefslogtreecommitdiff
path: root/gcc/ira.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2010-12-21 14:55:41 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2010-12-21 14:55:41 +0000
commit59db109afd1513b2fa26ef4adcf85ba80d5eab59 (patch)
treea2e3888767a472fd1e3d9b75c9dcbcaa19f33cbe /gcc/ira.c
parent96676a5df76b1fe038fde93107ef7107c17e7ee6 (diff)
downloadgcc-59db109afd1513b2fa26ef4adcf85ba80d5eab59.zip
gcc-59db109afd1513b2fa26ef4adcf85ba80d5eab59.tar.gz
gcc-59db109afd1513b2fa26ef4adcf85ba80d5eab59.tar.bz2
re PR rtl-optimization/46755 (ICE: in calc_dfs_tree, at dominance.c:395 with -O)
gcc/ PR rtl-optimization/46755 * ira.c (ira): If some dead edges were removed, find and delete any blocks that might have become unreachable. testsuite/ PR rtl-optimization/46755 * gfortran.dg/pr46755.f: New test From-SVN: r168118
Diffstat (limited to 'gcc/ira.c')
-rw-r--r--gcc/ira.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ira.c b/gcc/ira.c
index 6db1fba..5f27fc2 100644
--- a/gcc/ira.c
+++ b/gcc/ira.c
@@ -3158,7 +3158,8 @@ ira (FILE *f)
{
timevar_push (TV_JUMP);
rebuild_jump_labels (get_insns ());
- purge_all_dead_edges ();
+ if (purge_all_dead_edges ())
+ delete_unreachable_blocks ();
timevar_pop (TV_JUMP);
}
}