aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2010-01-27 16:00:31 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2010-01-27 16:00:31 +0000
commite87da26377c895769d3ac3706833b0f8290bebb9 (patch)
treefc5e0782fed5c9442a3c680f76f0fc402258fb5a /gcc/tree-inline.c
parent77597d3907e17a45b0d4825edb893c23a0715181 (diff)
downloadgcc-e87da26377c895769d3ac3706833b0f8290bebb9.zip
gcc-e87da26377c895769d3ac3706833b0f8290bebb9.tar.gz
gcc-e87da26377c895769d3ac3706833b0f8290bebb9.tar.bz2
re PR tree-optimization/42878 ("-fcompare-debug failure" at -O1 (2))
2010-01-27 Richard Guenther <rguenther@suse.de> PR middle-end/42878 * tree-inline.c (remap_decl): Delay remapping of SSA name default definitions until we need them. * gcc.dg/torture/pr42878-1.c: New testcase. * gcc.dg/torture/pr42878-2.c: Likewise. From-SVN: r156291
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 815d88a..9c560b1 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -311,17 +311,7 @@ remap_decl (tree decl, copy_body_data *id)
&& (TREE_CODE (t) == VAR_DECL
|| TREE_CODE (t) == RESULT_DECL || TREE_CODE (t) == PARM_DECL))
{
- tree def = gimple_default_def (id->src_cfun, decl);
get_var_ann (t);
- if (TREE_CODE (decl) != PARM_DECL && def)
- {
- tree map = remap_ssa_name (def, id);
- /* Watch out RESULT_DECLs whose SSA names map directly
- to them. */
- if (TREE_CODE (map) == SSA_NAME
- && gimple_nop_p (SSA_NAME_DEF_STMT (map)))
- set_default_def (t, map);
- }
add_referenced_var (t);
}
return t;