re PR c/80097 (internal compiler error in c_fully_fold_internal with std=c89 and...
authorJakub Jelinek <jakub@redhat.com>
Tue, 21 Mar 2017 07:01:05 +0000 (08:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 21 Mar 2017 07:01:05 +0000 (08:01 +0100)
commit4d1b8e70fa5a3b4f305afdc977f02ae39761761b
treed274067bd324a26a0c968aa333e8bf901b40ed78
parentece3b7e65aed085cfc73a7e84ceb4a25c2683054
re PR c/80097 (internal compiler error in c_fully_fold_internal with std=c89 and -fsanitize=float-divide-by-zero)

PR c/80097
* c-typeck.c (build_binary_op): Add EXCESS_PRECISION_EXPR only around
optional COMPOUND_EXPR with ubsan instrumentation.

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

From-SVN: r246302
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr80097.c [new file with mode: 0644]