re PR sanitizer/77823 (ICE: in ubsan_encode_value, at ubsan.c:137 with -fsanitize...
authorJakub Jelinek <jakub@redhat.com>
Wed, 5 Oct 2016 17:47:34 +0000 (19:47 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 5 Oct 2016 17:47:34 +0000 (19:47 +0200)
commit04a324433515f0b1076cb84b2a8e27c2025cd9d4
treefc63c16bd7f5f9e56b8b863515dd226fa4500cc4
parent743a9cf79aee4f5a645991a9fda20e15050d32f3
re PR sanitizer/77823 (ICE: in ubsan_encode_value, at ubsan.c:137 with -fsanitize=undefined and vector types)

PR sanitizer/77823
* c-ubsan.c (ubsan_instrument_shift): Return NULL_TREE if type0
is not integral.

* c-c++-common/ubsan/shift-9.c: New test.

From-SVN: r240796
gcc/c-family/ChangeLog
gcc/c-family/c-ubsan.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/ubsan/shift-9.c [new file with mode: 0644]