OSDN Git Service

2011-02-28 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Feb 2011 10:23:14 +0000 (10:23 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 28 Feb 2011 10:23:14 +0000 (10:23 +0000)
* tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
of the copied scope tree.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170558 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-inline.c

index 543f3e4..99f5198 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 de30cfd..fd8edb4 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);