tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT of the copied scope...
authorRichard Guenther <rguenther@suse.de>
Mon, 28 Feb 2011 10:23:14 +0000 (10:23 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 28 Feb 2011 10:23:14 +0000 (10:23 +0000)
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

gcc/ChangeLog
gcc/tree-inline.c

index 543f3e4e1a133d61293d49846bd7cbd26d0523bd..99f5198890a70e571dc095e3463f06af1a825f80 100644 (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
index de30cfd67ef64a41170eb46e787a2c62dd457b73..fd8edb4a2e64ca7d28a8f3381edccf3e24da914c 100644 (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);