aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-07-08 18:44:54 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-07-08 16:44:54 +0000
commit72109b25534c8471768fa2765bebe7c62420e059 (patch)
tree607e1e2c61251b80d97d7f1cf3208ae9b1115507 /gcc/tree-inline.c
parentd89e5e20b6b4c984561d7016479c4d92742c1368 (diff)
downloadgcc-72109b25534c8471768fa2765bebe7c62420e059.zip
gcc-72109b25534c8471768fa2765bebe7c62420e059.tar.gz
gcc-72109b25534c8471768fa2765bebe7c62420e059.tar.bz2
tree-inline.c (declare_return_variable): Allocate annotation for new temporary.
* tree-inline.c (declare_return_variable): Allocate annotation for new temporary. From-SVN: r161965
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index ea891c9..069dcb3 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -2897,6 +2897,11 @@ declare_return_variable (copy_body_data *id, tree return_slot, tree modify_dest,
&& !is_gimple_val (var))
{
tree temp = create_tmp_var (TREE_TYPE (result), "retvalptr");
+ if (gimple_in_ssa_p (id->src_cfun))
+ {
+ get_var_ann (temp);
+ add_referenced_var (temp);
+ }
insert_decl_map (id, result, temp);
temp = remap_ssa_name (gimple_default_def (id->src_cfun, result), id);
insert_init_stmt (id, entry_bb, gimple_build_assign (temp, var));