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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Rainer Orth <[email protected]>:

https://gcc.gnu.org/g:026c00babbe16d5a8525d2e59066d381615705c4

commit r16-6532-g026c00babbe16d5a8525d2e59066d381615705c4
Author: Rainer Orth <[email protected]>
Date:   Wed Jan 7 06:53:23 2026 +0100

    Allow disabling -gctf non-C warning [PR123259]

    In mixed-language builds it may be difficult to restrict -gctf to only
    C-language sources.  However, the

    cc1plus: note: CTF debug info requested, but not supported for âGNU
C++17â frontend

    warning for non-C languages, which is perfectly benign, may confuse
    parts of the build, so it may be useful to disable it.

    This patch applies the existing -Wno-complain-wrong-lang option to
    suppress it.

    Bootstrapped without regressions on i386-pc-solaris2.11
    sparc-sun-solaris2.11, also with C/C++-only bootstraps that apply
    -gctf/-gsctf via STAGE[23]_CFLAGS and STAGE[23]_TFLAGS.

    2025-12-25  Rainer Orth  <[email protected]>

            gcc:
            PR debug/123259
            * toplev.cc (process_options): Guard CTF non-C warning by
            -Wcomplain-wrong-lang.

            * doc/invoke.texi (Warning Options, -Wno-complain-wrong-lang):
            Document effect on -gctf/-gsctf.

Reply via email to