summaryrefslogtreecommitdiff
path: root/gcc/tree-cfgcleanup.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-07 17:29:34 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-07 17:29:34 +0000
commitfc78ca67443f6d98fc975d95f34baa8e11bfa391 (patch)
tree43a4661bd4f33505eafe2a4e1140839bd673f679 /gcc/tree-cfgcleanup.c
parentc4f08cc046c816611d1a1ccae7b9f3cdc0699cbd (diff)
downloadgcc-fc78ca67443f6d98fc975d95f34baa8e11bfa391.tar.gz
2006-11-07 Richard Guenther <rguenther@suse.de>
PR tree-optimization/29610 * tree-cfgcleanup.c (cleanup_control_flow): Honor return value of tree_purge_dead_eh_edges as it may free dominators. * g++.dg/other/pr29610.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118555 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfgcleanup.c')
-rw-r--r--gcc/tree-cfgcleanup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c
index be90209d3be..dbcfd4d2a34 100644
--- a/gcc/tree-cfgcleanup.c
+++ b/gcc/tree-cfgcleanup.c
@@ -160,7 +160,7 @@ cleanup_control_flow (void)
/* If the last statement of the block could throw and now cannot,
we need to prune cfg. */
- tree_purge_dead_eh_edges (bb);
+ retval |= tree_purge_dead_eh_edges (bb);
if (bsi_end_p (bsi))
continue;