aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-10-17 07:28:57 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-10-17 07:28:57 +0000
commitd6b1fea25cf97d8f766dbebc092f4d7b388fc313 (patch)
tree832d6aa58f2cff8727e878d5b689c66d9d81309f /gcc/gimplify.c
parent81b42cc69beca2d92cf2675b8b3c1c714f8f74fd (diff)
downloadgcc-d6b1fea25cf97d8f766dbebc092f4d7b388fc313.zip
gcc-d6b1fea25cf97d8f766dbebc092f4d7b388fc313.tar.gz
gcc-d6b1fea25cf97d8f766dbebc092f4d7b388fc313.tar.bz2
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
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index 2f074f9..254dc73 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -12373,10 +12373,7 @@ gimplify_function_tree (tree fndecl)
tmp_var);
gimplify_seq_add_stmt (&body, call);
gimplify_seq_add_stmt (&body, tf);
- new_bind = gimple_build_bind (NULL, body, gimple_bind_block (bind));
- /* 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);
+ new_bind = gimple_build_bind (NULL, body, NULL);
/* Replace the current function body with the body
wrapped in the try/finally TF. */
@@ -12391,10 +12388,7 @@ gimplify_function_tree (tree fndecl)
{
gcall *call = gimple_build_call_internal (IFN_TSAN_FUNC_EXIT, 0);
gimple *tf = gimple_build_try (seq, call, GIMPLE_TRY_FINALLY);
- gbind *new_bind = gimple_build_bind (NULL, tf, gimple_bind_block (bind));
- /* 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);
+ gbind *new_bind = gimple_build_bind (NULL, tf, NULL);
/* Replace the current function body with the body
wrapped in the try/finally TF. */
seq = NULL;