public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/55534] -Wno-missing-include-dirs does not work with gfortran
Date: Tue, 21 Sep 2021 06:28:49 +0000	[thread overview]
Message-ID: <bug-55534-4-DlMfGzYh3h@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-55534-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #13 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tobias Burnus <burnus@gcc.gnu.org>:

https://gcc.gnu.org/g:417ea5c02cef7f000e66d1af22b066c2c1cda047

commit r12-3722-g417ea5c02cef7f000e66d1af22b066c2c1cda047
Author: Tobias Burnus <tobias@codesourcery.com>
Date:   Tue Sep 21 08:27:00 2021 +0200

    Fortran: Fix -Wno-missing-include-dirs handling [PR55534]

    gcc/fortran/ChangeLog:

            PR fortran/55534
            * cpp.c: Define GCC_C_COMMON_C for #include "options.h" to make
            cpp_reason_option_codes available.
            (gfc_cpp_register_include_paths): Make static, set pfile's
            warn_missing_include_dirs and move before caller.
            (gfc_cpp_init_cb): New, cb code moved from ...
            (gfc_cpp_init_0): ... here.
            (gfc_cpp_post_options): Call gfc_cpp_init_cb.
            (cb_cpp_diagnostic_cpp_option): New. As implemented in c-family
            to match CppReason flags to -W... names.
            (cb_cpp_diagnostic): Use it to replace single special case.
            * cpp.h (gfc_cpp_register_include_paths): Remove as now static.
            * gfortran.h (gfc_check_include_dirs): New prototype.
            (gfc_add_include_path): Add new bool arg.
            * options.c (gfc_init_options): Don't set -Wmissing-include-dirs.
            (gfc_post_options): Set it here after commandline processing. Call
            gfc_add_include_path with defer_warn=false.
            (gfc_handle_option): Call it with defer_warn=true.
            * scanner.c (gfc_do_check_include_dir, gfc_do_check_include_dirs,
            gfc_check_include_dirs): New. Diagnostic moved from ...
            (add_path_to_list): ... here, which came before cmdline processing.
            Take additional bool defer_warn argument.
            (gfc_add_include_path): Take additional defer_warn arg.
            * scanner.h (struct gfc_directorylist): Reorder for alignment
issues,
            add new 'bool warn'.

    libgfortran/ChangeLog:
            PR fortran/55534
            * configure.ac (AM_FCFLAGS): Add -Wno-missing-include-dirs.
            * configure: Regenerate.

    libgomp/ChangeLog:
            PR fortran/55534
            * testsuite/libgomp.fortran/fortran.exp: Add
-Wno-missing-include-dirs
            to ALWAYS_CFLAGS.
            * testsuite/libgomp.oacc-fortran/fortran.exp: Likewise.

    gcc/testsuite/ChangeLog:
            * gfortran.dg/include_6.f90: Change dg-error to
            dg-warning and update pattern.
            * gfortran.dg/include_14.f90: New test.
            * gfortran.dg/include_15.f90: New test.
            * gfortran.dg/include_16.f90: New test.
            * gfortran.dg/include_17.f90: New test.
            * gfortran.dg/include_18.f90: New test.
            * gfortran.dg/include_19.f90: New test.
            * gfortran.dg/include_20.f90: New test.
            * gfortran.dg/include_21.f90: New test.

  parent reply	other threads:[~2021-09-21  6:28 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29 20:31 [Bug fortran/55534] New: " anlauf at gmx dot de
2012-11-29 20:32 ` [Bug fortran/55534] " anlauf at gmx dot de
2012-12-04 23:02 ` anlauf at gmx dot de
2012-12-05  9:29 ` burnus at gcc dot gnu.org
2012-12-05 21:44 ` anlauf at gmx dot de
2012-12-06  0:04 ` burnus at gcc dot gnu.org
2012-12-07 21:10 ` anlauf at gmx dot de
2012-12-13 21:11 ` anlauf at gmx dot de
2014-09-09 21:39 ` manu at gcc dot gnu.org
2014-12-29 20:00 ` anlauf at gmx dot de
2014-12-29 21:28 ` manu at gcc dot gnu.org
2021-09-17  9:42 ` burnus at gcc dot gnu.org
2021-09-17 13:02 ` burnus at gcc dot gnu.org
2021-09-21  6:28 ` cvs-commit at gcc dot gnu.org [this message]
2021-09-21  7:13 ` burnus at gcc dot gnu.org
2021-09-22 18:58 ` cvs-commit at gcc dot gnu.org
2021-09-24  7:31 ` cvs-commit at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-55534-4-DlMfGzYh3h@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).