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

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:8c088c4307dbb855596acb6366b0882e95d20b91

commit r14-6266-g8c088c4307dbb855596acb6366b0882e95d20b91
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Thu Dec 7 09:47:54 2023 +0100

    c-family: Fix up -fno-debug-cpp [PR111965]

    As can be seen in the second testcase, -fno-debug-cpp is actually
    implemented the same as -fdebug-cpp and so doesn't turn the debugging
    off.

    The following patch fixes that.

    2023-12-07  Andrew Pinski  <pins...@gmail.com>
                Jakub Jelinek  <ja...@redhat.com>

            PR preprocessor/111965
    gcc/c-family/
            * c-opts.cc (c_common_handle_option) <case OPT_fdebug_cpp>: Set
            cpp_opts->debug to value rather than 1.
    gcc/testsuite/
            * gcc.dg/cpp/pr111965-1.c: New test.
            * gcc.dg/cpp/pr111965-2.c: New test.

Reply via email to