c/86134 avoid errors for unrecognized -Wno- options
authorRichard Biener <rguenther@suse.de>
Mon, 17 Feb 2020 08:32:44 +0000 (09:32 +0100)
committerRichard Biener <rguenther@suse.de>
Mon, 17 Feb 2020 08:32:44 +0000 (09:32 +0100)
commitabe13e1847fb91d43f02b5579c4230214d4369f4
tree58d22bcff7bdf1921d341d26469524d0810cf02c
parentf76a88ebf089871dcce215aa0cb1956ccc060895
c/86134 avoid errors for unrecognized -Wno- options

This makes sure to not promote diagnostics about unrecognized -Wno-
options to errors and make the intent of the diagnostic clearer.

2020-02-17  Richard Biener  <rguenther@suse.de>

PR c/86134
* opts-global.c (print_ignored_options): Use inform and
amend message.

* gcc.dg/pr86134.c: New testcase.
* gcc.dg/pr28322-2.c: Adjust.
gcc/ChangeLog
gcc/opts-global.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr28322-2.c
gcc/testsuite/gcc.dg/pr86134.c [new file with mode: 0644]