]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR driver/80545 - option -Wstringop-overflow not recognized by Fortran
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Jul 2019 20:34:03 +0000 (20:34 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 Jul 2019 20:34:03 +0000 (20:34 +0000)
commita02d8e72628bd6dbd17f28150b43caf4dd31687b
tree555ecd4cee3204df4576e6ad2ed71999246dd69c
parent2d285060cf438bd03c49d9441fe1ebd43ba16888
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@273771 138bc75d-0d04-0410-961f-82ee72b054a4
13 files changed:
gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/diagnostic.c
gcc/diagnostic.h
gcc/ipa-pure-const.c
gcc/opts-common.c
gcc/opts.c
gcc/opts.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.misc-tests/help.exp
gcc/testsuite/lib/options.exp
gcc/toplev.c