re PR target/79904 (ICE in annotate_constant_pool_refs, at config/s390/s390.c:7909)
commit4b48e88382ab6c37aa981881adac0390a74eaeaa
authorJakub Jelinek <jakub@redhat.com>
Wed, 8 Mar 2017 08:35:20 +0000 (8 09:35 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 8 Mar 2017 08:35:20 +0000 (8 09:35 +0100)
tree1684a0b26430d0e91a14dc71ed9c8ca1af76db4e
parente90223fe94aee2d3a357f64fcf96f12e10750c03
re PR target/79904 (ICE in annotate_constant_pool_refs, at config/s390/s390.c:7909)

PR sanitizer/79904
* internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
is a uniform vector, use uniform_vector_p return value instead of
building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.

* gcc.dg/ubsan/pr79904.c: New test.

From-SVN: r245967
gcc/ChangeLog
gcc/internal-fn.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr79904.c [new file with mode: 0644]