[Bug driver/67613] spell suggestions for misspelled command line options

2018-02-14 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67613
Bug 67613 depends on bug 52277, which changed state.

Bug 52277 Summary: spell corrector for misspelled identifiers
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52277

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

[Bug driver/67613] spell suggestions for misspelled command line options

2015-11-04 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67613

David Malcolm  changed:

   What|Removed |Added

   Assignee|unassigned at gcc dot gnu.org  |dmalcolm at gcc dot 
gnu.org

--- Comment #1 from David Malcolm  ---
Candidate patch posted here:
  https://gcc.gnu.org/ml/gcc-patches/2015-11/msg00355.html

[Bug driver/67613] spell suggestions for misspelled command line options

2015-11-12 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67613

--- Comment #2 from David Malcolm  ---
Author: dmalcolm
Date: Fri Nov 13 01:59:03 2015
New Revision: 230285

URL: https://gcc.gnu.org/viewcvs?rev=230285&root=gcc&view=rev
Log:
PR driver/67613 - spell suggestions for misspelled command line options

gcc/ChangeLog:
PR driver/67613
* Makefile.in (GCC_OBJS): Add spellcheck.o.
(OBJS): Add spellcheck-tree.o.
* gcc.c: Include "spellcheck.h".
(suggest_option): New function.
(driver::handle_unrecognized_options): Call suggest_option to
provide a hint about misspelled options.
* spellcheck.c: Update file comment.
(levenshtein_distance): Convert 4-param implementation from static
to extern scope.  Remove note about unit tests from leading
comment for const char * implementation.  Move tree
implementation to...
* spellcheck-tree.c: New file.
* spellcheck.h (levenshtein_distance):  Add 4-param decl.

gcc/testsuite/ChangeLog:
PR driver/67613
* gcc/testsuite/gcc.dg/spellcheck-options-1.c: New file.
* gcc/testsuite/gcc.dg/spellcheck-options-2.c: New file.


Added:
trunk/gcc/spellcheck-tree.c
trunk/gcc/testsuite/gcc.dg/spellcheck-options-1.c
trunk/gcc/testsuite/gcc.dg/spellcheck-options-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/Makefile.in
trunk/gcc/gcc.c
trunk/gcc/spellcheck.c
trunk/gcc/spellcheck.h
trunk/gcc/testsuite/ChangeLog

[Bug driver/67613] spell suggestions for misspelled command line options

2015-11-12 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67613

David Malcolm  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from David Malcolm  ---
Should be implemented on trunk (for gcc 6) as r230285; resolving as fixed.

[Bug driver/67613] spell suggestions for misspelled command line options

2015-11-13 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67613

--- Comment #4 from Manuel López-Ibáñez  ---
This is awesome! Great job. Do not forget to mention all your awesome work in
https://gcc.gnu.org/gcc-6/changes.html Some people think GCC is dead, and it is
far from it. Let them know!