[Bug driver/91172] Command line option for a wrong language is not reported with -Werror=warning_name syntax

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jul 22 09:37:00 GMT 2019


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

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Jul 22 09:37:18 2019
New Revision: 273664

URL: https://gcc.gnu.org/viewcvs?rev=273664&root=gcc&view=rev
Log:
Backport r273660

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

        Backport from mainline
        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>

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

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

Modified:
    branches/gcc-9-branch/gcc/ChangeLog
    branches/gcc-9-branch/gcc/opts-common.c
    branches/gcc-9-branch/gcc/opts-global.c
    branches/gcc-9-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list