public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus 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: Fri, 17 Sep 2021 09:42:56 +0000 [thread overview] Message-ID: <bug-55534-4-UXyqi5gXJS@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 #11 from Tobias Burnus <burnus at gcc dot gnu.org> --- The problem is an ordering problem. Namely: * toplev.c calls: lang_hooks.init_options (save_decoded_options_count, save_decoded_options); which in turn is: gfc_init_options ( .... { ... SET_OPTION_IF_UNSET (&global_options, &global_options_set, cpp_warn_missing_include_dirs, 1); ... /* Initialize cpp-related options. */ gfc_cpp_init_options (decoded_options_count, decoded_options); ... } Thus, cpp_warn_missing_include_dirs is enabled. Now: decode_options (&global_options, &global_options_set, ... is run, which calls: read_cmdline_options (opts, opts_set, ... → read_cmdline_option → handle_option → gfc_handle_option → gfc_add_include_path → gfc_warning_now and only afterwards decode_options invokes: set_option (...) which then sets: global_options_set->x_... = 1 and global_options->x_... = commandline option. and disables the already shown warning.
next prev parent reply other threads:[~2021-09-17 9:42 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 [this message] 2021-09-17 13:02 ` burnus at gcc dot gnu.org 2021-09-21 6:28 ` cvs-commit at gcc dot gnu.org 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-UXyqi5gXJS@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: linkBe 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).