aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-ssa-copy.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e1fac75..9cf73c2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-28 Richard Guenther <rguenther@suse.de>
+
+ * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
+ the PHIs value undefined.
+
2009-03-28 Jan Hubicka <jh@suse.cz>
* tree-pass.h (pass_fixup_cfg): New pass.
diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c
index 8f060c2..5b36163 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;
}