re PR middle-end/68785 (valgrind reports issues with folding on x86_64)
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Dec 2015 10:14:38 +0000 (11:14 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Dec 2015 10:14:38 +0000 (11:14 +0100)
commit1ff0a84c3d3c0e8257a3837bf9f5d7f09f2f131e
tree9f2935aa763d1201e183b766b7a31df4705c7adb
parentee7d29b43faf156f55e55dfcb841fa38da2e855a
re PR middle-end/68785 (valgrind reports issues with folding on x86_64)

PR tree-optimization/68785
* gimple-fold.c (fold_ctor_reference): Pass return value from
native_encode_expr to native_interpret_expr.
* tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.

* gcc.dg/pr68785.c: New test.

From-SVN: r231499
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68785.c [new file with mode: 0644]
gcc/tree-ssa-sccvn.c