[Bug middle-end/101300] -fsanitize=undefined suppresses -Wuninitialized

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jul 20 19:10:35 GMT 2021


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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Martin Sebor <msebor@gcc.gnu.org>:

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

commit r12-2420-ge07d30fdcaec4906e0dcb948fc4748bf74c15c05
Author: Martin Sebor <msebor@redhat.com>
Date:   Tue Jul 20 13:08:39 2021 -0600

    Handle all UBSAN built-ins in -Wuninitialized [PR101300].

    Resolves:
    PR middle-end/101300 - -fsanitize=undefined suppresses -Wuninitialized for
a VLA read at -O0

    gcc/ChangeLog:
            PR middle-end/101300
            * tree-ssa-uninit.c (check_defs): Handle UBSAN built-ins.

    gcc/testsuite/ChangeLog:
            PR middle-end/101300
            * gcc.dg/uninit-pr101300.c: New test.


More information about the Gcc-bugs mailing list