summaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-02-28 10:23:14 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-02-28 10:23:14 +0000
commit474086eb101daefa4b529d57ff79a27374084b49 (patch)
treee75146298def5c025a9897f5028411c403d07215 /gcc/tree-inline.c
parent96fa6d317f5a590d13cf12d7d59b5986e417049a (diff)
downloadgcc-474086eb101daefa4b529d57ff79a27374084b49.tar.gz
tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT of the copied scope tree.
2011-02-28 Richard Guenther <rguenther@suse.de> * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT of the copied scope tree. From-SVN: r170558
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index de30cfd67ef..fd8edb4a2e6 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -5156,6 +5156,7 @@ tree_function_versioning (tree old_decl, tree new_decl,
args_to_skip, &vars);
DECL_INITIAL (new_decl) = remap_blocks (DECL_INITIAL (id.src_fn), &id);
+ BLOCK_SUPERCONTEXT (DECL_INITIAL (new_decl)) = new_decl;
declare_inline_vars (DECL_INITIAL (new_decl), vars);