mirror of git://gcc.gnu.org/git/gcc.git
tree-eh.c (lower_try_finally_switch): Really put the location of the last statement of the finally block onto the switch.
* tree-eh.c (lower_try_finally_switch): Really put the location of the last statement of the finally block onto the switch. From-SVN: r189086
This commit is contained in:
parent
dc7267351e
commit
0118b9193d
|
|
@ -1,3 +1,8 @@
|
||||||
|
2012-06-29 Eric Botcazou <ebotcazou@adacore.com>
|
||||||
|
|
||||||
|
* tree-eh.c (lower_try_finally_switch): Really put the location of the
|
||||||
|
last statement of the finally block onto the switch.
|
||||||
|
|
||||||
2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
|
2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR target/53539
|
PR target/53539
|
||||||
|
|
|
||||||
|
|
@ -1320,9 +1320,8 @@ lower_try_finally_switch (struct leh_state *state, struct leh_tf_state *tf)
|
||||||
|
|
||||||
/* The location of the finally is either the last stmt in the finally
|
/* The location of the finally is either the last stmt in the finally
|
||||||
block or the location of the TRY_FINALLY itself. */
|
block or the location of the TRY_FINALLY itself. */
|
||||||
finally_loc = gimple_seq_last_stmt (tf->top_p_seq) != NULL ?
|
x = gimple_seq_last_stmt (finally);
|
||||||
gimple_location (gimple_seq_last_stmt (tf->top_p_seq))
|
finally_loc = x ? gimple_location (x) : tf_loc;
|
||||||
: tf_loc;
|
|
||||||
|
|
||||||
/* Lower the finally block itself. */
|
/* Lower the finally block itself. */
|
||||||
lower_eh_constructs_1 (state, &finally);
|
lower_eh_constructs_1 (state, &finally);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue