aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-eh.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2009-10-20 15:54:28 -0700
committerRichard Henderson <rth@gcc.gnu.org>2009-10-20 15:54:28 -0700
commit288f5b2e8476afbc8c870977ff6adabbf2248cf7 (patch)
tree92eb272594f4fae57e1099983014c4f0751a3c2e /gcc/tree-eh.c
parent53d6697702ced911f598a2d3d19b9a1bde9cec69 (diff)
downloadgcc-288f5b2e8476afbc8c870977ff6adabbf2248cf7.zip
gcc-288f5b2e8476afbc8c870977ff6adabbf2248cf7.tar.gz
gcc-288f5b2e8476afbc8c870977ff6adabbf2248cf7.tar.bz2
tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1 before emit_post_landing_pad.
* tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1 before emit_post_landing_pad. From-SVN: r153044
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r--gcc/tree-eh.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index c077d94..56b1b94 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -1192,12 +1192,11 @@ lower_try_finally_copy (struct leh_state *state, struct leh_tf_state *tf)
if (tf->may_throw)
{
- emit_post_landing_pad (&eh_seq, tf->region);
-
seq = lower_try_finally_dup_block (finally, state);
lower_eh_constructs_1 (state, seq);
- gimple_seq_add_seq (&eh_seq, seq);
+ emit_post_landing_pad (&eh_seq, tf->region);
+ gimple_seq_add_seq (&eh_seq, seq);
emit_resx (&eh_seq, tf->region);
}