]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ChangeLog
PR driver/67613 - spell suggestions for misspelled command line options
[thirdparty/gcc.git] / gcc / ChangeLog
index 1febdcf6febd9413369d7221c4b1ef0f2407e258..0c03eb0769e0780842d2b8900a3daefdf1fa8c29 100644 (file)
@@ -1,3 +1,20 @@
+2015-11-13  David Malcolm  <dmalcolm@redhat.com>
+
+       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.
+
 2015-11-13  David Malcolm  <dmalcolm@redhat.com>
 
        * Makefile.in (OBJS): Add spellcheck.o.