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
This commit is contained in:
parent
d89e5e20b6
commit
72109b2553
@ -1,3 +1,8 @@
|
|||||||
|
2010-07-08 Jan Hubicka <jh@suse.cz>
|
||||||
|
|
||||||
|
* tree-inline.c (declare_return_variable): Allocate annotation for new
|
||||||
|
temporary.
|
||||||
|
|
||||||
2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
|
2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
|
||||||
|
|
||||||
PR tree-optimization/44710
|
PR tree-optimization/44710
|
||||||
|
@ -2897,6 +2897,11 @@ declare_return_variable (copy_body_data *id, tree return_slot, tree modify_dest,
|
|||||||
&& !is_gimple_val (var))
|
&& !is_gimple_val (var))
|
||||||
{
|
{
|
||||||
tree temp = create_tmp_var (TREE_TYPE (result), "retvalptr");
|
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);
|
insert_decl_map (id, result, temp);
|
||||||
temp = remap_ssa_name (gimple_default_def (id->src_cfun, result), id);
|
temp = remap_ssa_name (gimple_default_def (id->src_cfun, result), id);
|
||||||
insert_init_stmt (id, entry_bb, gimple_build_assign (temp, var));
|
insert_init_stmt (id, entry_bb, gimple_build_assign (temp, var));
|
||||||
|
Loading…
Reference in New Issue
Block a user