From 288f5b2e8476afbc8c870977ff6adabbf2248cf7 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 20 Oct 2009 15:54:28 -0700 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/tree-eh.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 84e81e7d29f..933ce5f978c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-10-20 Richard Henderson + + * tree-eh.c (lower_try_finally_copy): Do lower_eh_constructs_1 + before emit_post_landing_pad. + 2009-10-20 Adam Nemet * config/mips/mips.c (mips_binary_cost): Add new argument speed. diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index c077d940eb2..56b1b941683 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); }