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

--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Lewis Hyatt
<lhy...@gcc.gnu.org>:

https://gcc.gnu.org/g:7a1de35f9cdc13098375baa277496147be271dd3

commit r13-7964-g7a1de35f9cdc13098375baa277496147be271dd3
Author: Lewis Hyatt <lhy...@gmail.com>
Date:   Wed Oct 18 12:37:08 2023 -0400

    c++: Make -Wunknown-pragmas controllable by #pragma GCC diagnostic
[PR89038]

    As noted on the PR, commit r13-1544, the fix for PR53431, did not handle
    the specific case of -Wunknown-pragmas, because that warning is issued
    during preprocessing, but not by libcpp directly (it comes from the
    cb_def_pragma callback).  Address that by handling this pragma in
    addition to libcpp pragmas during the early pragma handler.

    gcc/c-family/ChangeLog:

            PR c++/89038
            * c-pragma.cc (handle_pragma_diagnostic_impl):  Handle
            -Wunknown-pragmas during early processing.

    gcc/testsuite/ChangeLog:

            PR c++/89038
            * c-c++-common/cpp/Wunknown-pragmas-1.c: New test.

Reply via email to