From: rguenth Date: Mon, 28 Feb 2011 10:23:14 +0000 (+0000) Subject: 2011-02-28 Richard Guenther X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=a6519462f7fa49cabd9ca95ccb6dcd4b82bb7b01 2011-02-28 Richard Guenther * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 543f3e4e1a1..99f5198890a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-02-28 Richard Guenther + + * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT + of the copied scope tree. + 2011-02-28 Ralf Wildenhues * doc/extend.texi (Function Attributes): Avoid deeply (and 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);