aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgexpand.c
diff options
context:
space:
mode:
authorSteven Bosscher <stevenb@suse.de>2004-09-17 06:23:54 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2004-09-17 06:23:54 +0000
commit275a4187085d13c53f0cb27ca74d3d73cebd58f9 (patch)
tree60dcd3daf28a15902b1426d100e008d5cc20b4d0 /gcc/cfgexpand.c
parentb355f2229a07beb1b1b08d1c7e6b7dbac55c8df9 (diff)
downloadgcc-275a4187085d13c53f0cb27ca74d3d73cebd58f9.zip
gcc-275a4187085d13c53f0cb27ca74d3d73cebd58f9.tar.gz
gcc-275a4187085d13c53f0cb27ca74d3d73cebd58f9.tar.bz2
re PR rtl-optimization/17513 (ICE: verify_flow_info failed after gcse)
PR tree-optimization/17513 * cfgexpand.c (construct_init_block): Clear EDGE_EXECUTABLE for successors of the entry block. * gcc.dg/20040916-1.c: New test. From-SVN: r87632
Diffstat (limited to 'gcc/cfgexpand.c')
-rw-r--r--gcc/cfgexpand.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/gcc/cfgexpand.c b/gcc/cfgexpand.c
index 71dd039..bf179fe 100644
--- a/gcc/cfgexpand.c
+++ b/gcc/cfgexpand.c
@@ -1082,11 +1082,21 @@ static basic_block
construct_init_block (void)
{
basic_block init_block, first_block;
- edge e;
+ edge e = NULL, e2;
+
+ for (e2 = ENTRY_BLOCK_PTR->succ; e2; e2 = e2->succ_next)
+ {
+ /* Clear EDGE_EXECUTABLE. This flag is never used in the backend.
- for (e = ENTRY_BLOCK_PTR->succ; e; e = e->succ_next)
- if (e->dest == ENTRY_BLOCK_PTR->next_bb)
- break;
+ For all other blocks this edge flag is cleared while expanding
+ a basic block in expand_gimple_basic_block, but there we never
+ looked at the successors of the entry block.
+ This caused PR17513. */
+ e2->flags &= ~EDGE_EXECUTABLE;
+
+ if (e2->dest == ENTRY_BLOCK_PTR->next_bb)
+ e = e2;
+ }
init_block = create_basic_block (NEXT_INSN (get_insns ()),
get_last_insn (),