aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-04-07 09:20:42 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2018-04-07 09:20:42 +0200
commiteda71a9eeaaf1ea16ba56d8cc5a4eb194f6025f7 (patch)
treeb1acf024b403009d0a3344de142b9f251ad1c416 /gcc/tree.c
parentf1a0afe2aa1447c2d7962f52e8e278c40ba5fe19 (diff)
downloadgcc-eda71a9eeaaf1ea16ba56d8cc5a4eb194f6025f7.zip
gcc-eda71a9eeaaf1ea16ba56d8cc5a4eb194f6025f7.tar.gz
gcc-eda71a9eeaaf1ea16ba56d8cc5a4eb194f6025f7.tar.bz2
re PR tree-optimization/85257 (wrong code with -O -fno-tree-ccp and reading zeroed vector member)
PR tree-optimization/85257 * fold-const.c (native_encode_vector): If not all elts could fit and off is -1, return 0 rather than offset. * tree-ssa-sccvn.c (vn_reference_lookup_3): Pass (offseti - offset2) / BITS_PER_UNIT as 4th argument to native_encode_expr. Verify len * BITS_PER_UNIT >= maxsizei. Don't adjust buffer in native_interpret_expr call. * gcc.dg/pr85257.c: New test. From-SVN: r259206
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions