]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix bootstrap-lto
authorAndi Kleen <ak@linux.intel.com>
Mon, 3 Sep 2012 22:00:13 +0000 (22:00 +0000)
committerAndi Kleen <ak@gcc.gnu.org>
Mon, 3 Sep 2012 22:00:13 +0000 (22:00 +0000)
gcc/

2012-09-03  Andi Kleen <ak@linux.intel.com>

* tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
addr_offset always.

From-SVN: r190905

gcc/ChangeLog
gcc/tree-ssa-sccvn.c

index eab8156531a7114b9f38d198abede8d697693802..a433bad52a99d214c655b943b13937b75796845d 100644 (file)
@@ -1,3 +1,8 @@
+2012-09-03  Andi Kleen <ak@linux.intel.com>
+
+       * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
+       addr_offset always.
+
 2012-09-03  Andrew Pinski  <apinski@cavium.com>
 
        PR tree-opt/53395
index 5d5a91cef7ce5e962c23e242f55e301413fe432a..fed7c55e5f0d4c70372e82d0c7cbdb2b6e8e3dd5 100644 (file)
@@ -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