diff --git a/gcc/ChangeLog b/gcc/ChangeLog index eab8156531a..a433bad52a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2012-09-03 Andi Kleen + + * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize + addr_offset always. + 2012-09-03 Andrew Pinski PR tree-opt/53395 diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c index 5d5a91cef7c..fed7c55e5f0 100644 --- a/gcc/tree-ssa-sccvn.c +++ b/gcc/tree-ssa-sccvn.c @@ -1007,7 +1007,7 @@ vn_reference_fold_indirect (VEC (vn_reference_op_s, heap) **ops, vn_reference_op_t op = &VEC_index (vn_reference_op_s, *ops, i); vn_reference_op_t mem_op = &VEC_index (vn_reference_op_s, *ops, i - 1); tree addr_base; - HOST_WIDE_INT addr_offset; + HOST_WIDE_INT addr_offset = 0; /* The only thing we have to do is from &OBJ.foo.bar add the offset from .foo.bar to the preceding MEM_REF offset and replace the