[Bug c/80097] internal compiler error in c_fully_fold_internal with std=c89 and -fsanitize=float-divide-by-zero

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 30 08:20:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80097

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue May 30 08:16:31 2017
New Revision: 248661

URL: https://gcc.gnu.org/viewcvs?rev=248661&root=gcc&view=rev
Log:
        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.

Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.dg/ubsan/pr80097.c
Modified:
    branches/gcc-5-branch/gcc/c/ChangeLog
    branches/gcc-5-branch/gcc/c/c-typeck.c
    branches/gcc-5-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list