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

--- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Wed Jul 24 20:34:03 2019
New Revision: 273771

URL: https://gcc.gnu.org/viewcvs?rev=273771&root=gcc&view=rev
Log:
PR driver/80545 - option -Wstringop-overflow not recognized by Fortran

gcc/cp/ChangeLog:

        PR driver/80545
        * decl.c (finish_function): Use lang_mask.

gcc/testsuite/ChangeLog:

        PR driver/80545
        * gcc.misc-tests/help.exp: Add tests.
        * lib/options.exp: Handle C++.

gcc/ChangeLog:

        PR driver/80545
        * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
        (diagnostic_report_diagnostic): Same.
        * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
        (diagnostic_context::lang_mask): New data member.
        * ipa-pure-const.c (suggest_attribute): Use
        lang_hooks.option_lang_mask ().
        * opts-common.c (option_enabled): Handle new argument.
        (get_option_state): Pass an additional argument.
        * opts.c (print_filtered_help): Print supported languages for
        unsupported options.  Adjust printing of current state.
        * opts.h (option_enabled): Add argument.
        * toplev.c (print_switch_values): Use lang_mask.
        (general_init): Set global_dc->lang_mask.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/diagnostic.c
    trunk/gcc/diagnostic.h
    trunk/gcc/ipa-pure-const.c
    trunk/gcc/opts-common.c
    trunk/gcc/opts.c
    trunk/gcc/opts.h
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.misc-tests/help.exp
    trunk/gcc/testsuite/lib/options.exp
    trunk/gcc/toplev.c

Reply via email to