aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@libertysurf.fr>2003-09-17 09:11:01 +0200
committerEric Botcazou <ebotcazou@gcc.gnu.org>2003-09-17 07:11:01 +0000
commit0b75beaaaf8af46fcbd7bd9ae535a6255737b69a (patch)
tree3e48c1b60504587e9bfbfbaab16721bd61423b08 /gcc/cfgrtl.c
parent936346797b01c6f191bd904f1a6bdb36ab43317d (diff)
downloadgcc-0b75beaaaf8af46fcbd7bd9ae535a6255737b69a.zip
gcc-0b75beaaaf8af46fcbd7bd9ae535a6255737b69a.tar.gz
gcc-0b75beaaaf8af46fcbd7bd9ae535a6255737b69a.tar.bz2
re PR rtl-optimization/11646 (ICE in commit_one_edge_insertion with -fnon-call-exceptions -fgcse -O)
PR optimization/11646 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the EDGE_ABNORMAL flag for EH edges. * toplev.c (rest_of_handle_cse): Delete unreachable blocks if dead edges were purged. From-SVN: r71455
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r--gcc/cfgrtl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 7441cd9..f383438 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -2255,8 +2255,12 @@ purge_dead_edges (basic_block bb)
continue;
else if ((e->flags & EDGE_EH) && can_throw_internal (insn))
/* Keep the edges that correspond to exceptions thrown by
- this instruction. */
- continue;
+ this instruction and rematerialize the EDGE_ABNORMAL
+ flag we just cleared above. */
+ {
+ e->flags |= EDGE_ABNORMAL;
+ continue;
+ }
/* We do not need this edge. */
bb->flags |= BB_DIRTY;