diff options
author | Richard Henderson <rth@redhat.com> | 2014-01-31 11:35:31 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2014-01-31 11:35:31 -0800 |
commit | efa7882fa699212d9d5417df3e39882e831eacbb (patch) | |
tree | 7563625dd4f7cf06cb8dbd4f8104cb41a0e72fdd /gcc/tree-eh.c | |
parent | 3d27e0669d807f01a93a03209f8cbb3c3f85d032 (diff) | |
download | gcc-efa7882fa699212d9d5417df3e39882e831eacbb.zip gcc-efa7882fa699212d9d5417df3e39882e831eacbb.tar.gz gcc-efa7882fa699212d9d5417df3e39882e831eacbb.tar.bz2 |
re PR middle-end/60004 (Conditional return within transaction causes ICE)
PR middle-end/60004
* tree-eh.c (lower_try_finally_switch): Delay lowering finally block
until after else_eh is processed.
* g++.dg/tm/pr60004.C: New.
From-SVN: r207367
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r-- | gcc/tree-eh.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index 0c8282e..e9c714c 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -1388,9 +1388,6 @@ lower_try_finally_switch (struct leh_state *state, struct leh_tf_state *tf) x = gimple_seq_last_stmt (finally); finally_loc = x ? gimple_location (x) : tf_loc; - /* Lower the finally block itself. */ - lower_eh_constructs_1 (state, &finally); - /* Prepare for switch statement generation. */ nlabels = tf->dest_array.length (); return_index = nlabels; @@ -1476,6 +1473,7 @@ lower_try_finally_switch (struct leh_state *state, struct leh_tf_state *tf) x = gimple_build_label (finally_label); gimple_seq_add_stmt (&tf->top_p_seq, x); + lower_eh_constructs_1 (state, &finally); gimple_seq_add_seq (&tf->top_p_seq, finally); /* Redirect each incoming goto edge. */ |