diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b34a10d3011..c7a6e177566 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-07-08 Jan Hubicka + + * tree-inline.c (declare_return_variable): Allocate annotation for new + temporary. + 2010-07-08 Sebastian Pop PR tree-optimization/44710 diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index ea891c94e55..069dcb3006d 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));