re PR sanitizer/88215 (UBSAN: Internal compiler error with attribute(unused))
authorJakub Jelinek <jakub@redhat.com>
Wed, 28 Nov 2018 08:49:08 +0000 (09:49 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 28 Nov 2018 08:49:08 +0000 (09:49 +0100)
commitace83db06c03b138c8b4cf87bf3db61f2d842e60
treee4a15dbcfd4276091ffc6f69327bebcb0dc72031
parentfc60283c5c7987a120cdadd24024a0319bfe0360
re PR sanitizer/88215 (UBSAN: Internal compiler error with attribute(unused))

PR c++/88215
* c-ubsan.c: Include langhooks.h.
(ubsan_instrument_division): Change gcc_assert that main variants
of op0 and op1 types are equal to gcc_checking_assert that the
main variants are compatible types.

* c-c++-common/ubsan/pr88215.c: New test.

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