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

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Author: dmalcolm
Date: Thu Jun 30 14:28:50 2016
New Revision: 237880

URL: https://gcc.gnu.org/viewcvs?rev=237880&root=gcc&view=rev
Log:
Fix bogus option suggestions for RejectNegative options (PR driver/71651)

gcc/ChangeLog:
        PR driver/71651
        * gcc.c (driver::build_option_suggestions): Pass "option" to
        add_misspelling_candidates.
        * opts-common.c (add_misspelling_candidates): Add "option" param;
        use it to avoid adding negated forms for options marked with
        RejectNegative.
        * opts.h (add_misspelling_candidates): Add "option" param.

gcc/testsuite/ChangeLog:
        PR driver/71651
        * gcc.dg/spellcheck-options-12.c: New test case.


Added:
    trunk/gcc/testsuite/gcc.dg/spellcheck-options-12.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gcc.c
    trunk/gcc/opts-common.c
    trunk/gcc/opts.h
    trunk/gcc/testsuite/ChangeLog

Reply via email to