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
This commit is contained in:
Richard Guenther 2011-02-28 10:23:14 +00:00 committed by Richard Biener
parent 96fa6d317f
commit 474086eb10
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-02-28 Richard Guenther <rguenther@suse.de>
* tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
of the copied scope tree.
2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* doc/extend.texi (Function Attributes): Avoid deeply (and

View File

@ -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);