Commit d6b1fea2 by Richard Biener Committed by Richard Biener

gimplify.c (gimplify_function_tree): Do not move the outer binds block.

2016-10-17  Richard Biener  <rguenther@suse.de>

	* gimplify.c (gimplify_function_tree): Do not move the outer
	binds block.

From-SVN: r241228
parent 81b42cc6
2016-10-17 Richard Biener <rguenther@suse.de>
* gimplify.c (gimplify_function_tree): Do not move the outer
binds block.
2016-10-17 Jakub Jelinek <jakub@redhat.com> 2016-10-17 Jakub Jelinek <jakub@redhat.com>
* langhooks.h (struct lang_hooks_for_decls): Remove * langhooks.h (struct lang_hooks_for_decls): Remove
......
...@@ -12373,10 +12373,7 @@ gimplify_function_tree (tree fndecl) ...@@ -12373,10 +12373,7 @@ gimplify_function_tree (tree fndecl)
tmp_var); tmp_var);
gimplify_seq_add_stmt (&body, call); gimplify_seq_add_stmt (&body, call);
gimplify_seq_add_stmt (&body, tf); gimplify_seq_add_stmt (&body, tf);
new_bind = gimple_build_bind (NULL, body, gimple_bind_block (bind)); new_bind = gimple_build_bind (NULL, body, NULL);
/* Clear the block for BIND, since it is no longer directly inside
the function, but within a try block. */
gimple_bind_set_block (bind, NULL);
/* Replace the current function body with the body /* Replace the current function body with the body
wrapped in the try/finally TF. */ wrapped in the try/finally TF. */
...@@ -12391,10 +12388,7 @@ gimplify_function_tree (tree fndecl) ...@@ -12391,10 +12388,7 @@ gimplify_function_tree (tree fndecl)
{ {
gcall *call = gimple_build_call_internal (IFN_TSAN_FUNC_EXIT, 0); gcall *call = gimple_build_call_internal (IFN_TSAN_FUNC_EXIT, 0);
gimple *tf = gimple_build_try (seq, call, GIMPLE_TRY_FINALLY); gimple *tf = gimple_build_try (seq, call, GIMPLE_TRY_FINALLY);
gbind *new_bind = gimple_build_bind (NULL, tf, gimple_bind_block (bind)); gbind *new_bind = gimple_build_bind (NULL, tf, NULL);
/* Clear the block for BIND, since it is no longer directly inside
the function, but within a try block. */
gimple_bind_set_block (bind, NULL);
/* Replace the current function body with the body /* Replace the current function body with the body
wrapped in the try/finally TF. */ wrapped in the try/finally TF. */
seq = NULL; seq = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment