]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c/80097 (internal compiler error in c_fully_fold_internal with std...
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 May 2017 08:16:31 +0000 (10:16 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 May 2017 08:16:31 +0000 (10:16 +0200)
commit61384973125cc0c0c530a2e696cb14deb261931e
treee281dba6c6c866954858720d6e8185e16e513c3c
parentd0332e3701009ca08109e8d1740608a2adc50054
backport: re PR c/80097 (internal compiler error in c_fully_fold_internal with std=c89 and -fsanitize=float-divide-by-zero)

Backported from mainline
2017-03-21  Jakub Jelinek  <jakub@redhat.com>

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: r248661
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ubsan/pr80097.c [new file with mode: 0644]