summaryrefslogtreecommitdiff
path: root/gcc/tree-eh.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-26 07:29:46 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-26 07:29:46 +0000
commit42d78951c43ddfe9963f9a5036c2f91150098365 (patch)
tree8e713314d70a2457d3d1988305713743db656680 /gcc/tree-eh.c
parentc19a839cc9aa27f35802e523c7f951e5fc7a1ea9 (diff)
downloadgcc-42d78951c43ddfe9963f9a5036c2f91150098365.tar.gz
PR tree-optimization/30558
* tree-eh.c (lower_eh_filter): If EH_FILTER_MUST_NOT_THROW clear this_state.prev_try. * g++.dg/gomp/pr30558.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124177 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r--gcc/tree-eh.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index edd17cbcf61..37fce85eb29 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -1497,6 +1497,10 @@ lower_eh_filter (struct leh_state *state, tree *tp)
EH_FILTER_TYPES (inner));
this_state = *state;
this_state.cur_region = this_region;
+ /* For must not throw regions any cleanup regions inside it
+ can't reach outer catch regions. */
+ if (EH_FILTER_MUST_NOT_THROW (inner))
+ this_state.prev_try = NULL;
lower_eh_constructs_1 (&this_state, &TREE_OPERAND (*tp, 0));