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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by H.J. Lu <h...@gcc.gnu.org>:

https://gcc.gnu.org/g:19ff0b0d816e6e7d7657a8559e9957d79dc1d77f

commit r11-7751-g19ff0b0d816e6e7d7657a8559e9957d79dc1d77f
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Sat Mar 20 05:17:36 2021 -0700

    x86: Check cfun != NULL before accessing silent_p

    Since construct_container may be called with cfun == NULL, check
    cfun != NULL before accessing silent_p.

    gcc/

            PR target/99679
            * config/i386/i386.c (construct_container): Check cfun != NULL
            before accessing silent_p.

    gcc/testsuite/

            PR target/99679
            * g++.target/i386/pr99679-1.C: New test.
            * g++.target/i386/pr99679-2.C: Likewise.

Reply via email to