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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Jakub Jelinek
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:dcf70cb0d85d04ff680a361e32d79c326ae8b3fc

commit r11-9074-gdcf70cb0d85d04ff680a361e32d79c326ae8b3fc
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Fri Oct 1 14:27:32 2021 +0200

    ubsan: Use -fno{,-}sanitize=float-divide-by-zero for float division by zero
recovery [PR102515]

    We've been using
    -f{,no-}sanitize-recover=integer-divide-by-zero to decide on the float
    -fsanitize=float-divide-by-zero instrumentation _abort suffix.
    This patch fixes it to use -f{,no-}sanitize-recover=float-divide-by-zero
    for it instead.

    2021-10-01  Jakub Jelinek  <ja...@redhat.com>
                Richard Biener  <rguent...@suse.de>

            PR sanitizer/102515
    gcc/c-family/
            * c-ubsan.c (ubsan_instrument_division): Check the right
            flag_sanitize_recover bit, depending on which sanitization
            is done.
    gcc/testsuite/
            * c-c++-common/ubsan/float-div-by-zero-2.c: New test.

    (cherry picked from commit 9c1a633d96926357155d4702b66f8a0ec856a81f)

Reply via email to