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

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

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

commit r16-5782-gc85bf98ad29840d9829e1f5a2d9859a2fbad2037
Author: Jose E. Marchesi <[email protected]>
Date:   Sun Nov 30 13:48:00 2025 +0100

    fortran: testsuite: fix matching of language lists in diagnostics

    A few Fortran tests that pass both Fortran and C programs in the same
    compilation check for warnings like:

      { dg-warning "command-line option '-fcheck=all' is valid for Fortran but
not for C" "" { target *-*-* } 0 }

    The problem is that the warning may actually indicate the option is
    valid for other languages other than Fortran.  Like in:

      warning: command-line option â-fcheck=allâ is valid for
Algol68/Fortran but not for C

    This patch modifies the regexps used in the tests in order to match
    the language list strings generated by opts-global.cc:write_langs.

    Tested in x86_64-linux-gnu with make check-gfortran.

    gcc/testsuite/ChangeLog

            PR fortran/122923
            * gfortran.dg/ISO_Fortran_binding_17.f90: Recognize language
            list in warning regexp.
            * gfortran.dg/c-interop/allocate-errors.f90: Likewise.
            * gfortran.dg/c-interop/establish-errors.f90: Likewise.
            * gfortran.dg/c-interop/pr113338.f90: Likewise.
            * gfortran.dg/c-interop/section-errors.f90: Likewise.
            * gfortran.dg/c-interop/select-errors.f90: Likewise.
            * gfortran.dg/c-interop/setpointer-errors.f90: Likewise.

Reply via email to