Make a warning for -Werror=wrong-language (PR driver/91172).
authorMartin Liska <mliska@suse.cz>
Mon, 22 Jul 2019 07:34:10 +0000 (09:34 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 22 Jul 2019 07:34:10 +0000 (07:34 +0000)
commit2df89b66f1b397c9eacd2078eb6a9b52c2c4853f
tree1981847c71cd677128a920c3d4614aed2433be88
parent4be6c9b9a2085b32be37df4216c37b395c7bd1a2
Make a warning for -Werror=wrong-language (PR driver/91172).

2019-07-22  Martin Liska  <mliska@suse.cz>

PR driver/91172
* opts-common.c (decode_cmdline_option): Decode
argument of -Werror and check it for a wrong language.
* opts-global.c (complain_wrong_lang): Remove such case.
2019-07-22  Martin Liska  <mliska@suse.cz>

PR driver/91172
* gcc.dg/pr91172.c: New test.

From-SVN: r273660
gcc/ChangeLog
gcc/opts-common.c
gcc/opts-global.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr91172.c [new file with mode: 0644]