Add option suggestion for -Werror=foo and corresponding pragma.
authorMartin Liska <mliska@suse.cz>
Tue, 30 Apr 2019 13:50:24 +0000 (15:50 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 30 Apr 2019 13:50:24 +0000 (13:50 +0000)
commit5bcc5a3b28d56bff2c70e5f52ce25f2cd7ee055e
treeb434cee79d7c973543f21d75b421d156dc9a3bf1
parent44bf4743079e18380ff7ef208299545675f05671
Add option suggestion for -Werror=foo and corresponding pragma.

2019-04-30  Martin Liska  <mliska@suse.cz>

* opts.c (enable_warning_as_error): Provide hints
for unknown options.
2019-04-30  Martin Liska  <mliska@suse.cz>

* c-pragma.c (handle_pragma_diagnostic): Provide hints
for unknown options.
2019-04-30  Martin Liska  <mliska@suse.cz>

* gcc.dg/Werror-13.c: Add new tests for it.
* gcc.dg/pragma-diag-6.c: Likewise.

From-SVN: r270693
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-pragma.c
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Werror-13.c
gcc/testsuite/gcc.dg/pragma-diag-6.c