From: Richard Guenther Date: Sat, 28 Mar 2009 16:02:18 +0000 (+0000) Subject: tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave the PHIs value undefined. X-Git-Tag: releases/gcc-4.5.0~7087 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fbb789d49a45ad77c8af271a673f305401f2b134;p=thirdparty%2Fgcc.git tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave the PHIs value undefined. 2009-03-28 Richard Guenther * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave the PHIs value undefined. From-SVN: r145193 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e1fac756fedb..9cf73c24bb68 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-03-28 Richard Guenther + + * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave + the PHIs value undefined. + 2009-03-28 Jan Hubicka * tree-pass.h (pass_fixup_cfg): New pass. diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c index 8f060c2b5a20..5b3616394bb8 100644 --- a/gcc/tree-ssa-copy.c +++ b/gcc/tree-ssa-copy.c @@ -892,7 +892,7 @@ copy_prop_visit_phi_node (gimple phi) memory reference of all the other arguments. */ if (phi_val.value == NULL_TREE) { - phi_val.value = arg_val->value; + phi_val.value = arg_val->value ? arg_val->value : arg; continue; }