aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-06-02 07:45:15 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-06-02 07:45:15 +0000
commit61dd7fbcbbedb21fcf274f55aab2cb70c8fe4c5d (patch)
treee3e5a47d7cec89e1a22f5b9d8cddf166264587df /gcc
parent7c2385cb928aabe299a2858c57ae6addf755864e (diff)
downloadgcc-61dd7fbcbbedb21fcf274f55aab2cb70c8fe4c5d.zip
gcc-61dd7fbcbbedb21fcf274f55aab2cb70c8fe4c5d.tar.gz
gcc-61dd7fbcbbedb21fcf274f55aab2cb70c8fe4c5d.tar.bz2
re PR middle-end/61378 (Obvious bug in vn_reference_lookup_3)
2014-06-02 Richard Biener <rguenther@suse.de> PR tree-optimization/61378 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize valueized_anything. From-SVN: r211126
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-sccvn.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 120ada9..7559fbe 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2014-06-02 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/61378
+ * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
+ valueized_anything.
+
2014-06-01 Uros Bizjak <ubizjak@gmail.com>
* config/i386/constraints.md (Bw): Rename from 'w'.
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index 77dcad9..2583375 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -1613,7 +1613,7 @@ vn_reference_lookup_3 (ao_ref *ref, tree vuse, void *vr_,
conditional calls to free falsely clobbering ref because
of imprecise points-to info of the argument. */
tree oldargs[4];
- bool valueized_anything;
+ bool valueized_anything = false;
for (unsigned i = 0; i < gimple_call_num_args (def_stmt); ++i)
{
oldargs[i] = gimple_call_arg (def_stmt, i);