diff options
author | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-01-11 17:25:40 +0000 |
---|---|---|
committer | dmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-01-11 17:25:40 +0000 |
commit | e60d0e8ae0f9e21221bbb1995adf12c317977fb8 (patch) | |
tree | f7ccc235482effbed0bd9a6cbea869c2ac6b3d44 /gcc/ChangeLog | |
parent | 5fb07461083ac28d79cbb0349b9821c005121feb (diff) | |
download | gcc-e60d0e8ae0f9e21221bbb1995adf12c317977fb8.tar.gz |
Offer suggestions for unrecognized sanitizer options (PR driver/78877)
gcc/ChangeLog:
PR driver/78877
* opts.c: Include "spellcheck.h"
(struct string_fragment): New struct.
(struct edit_distance_traits<const string_fragment &>): New
struct.
(get_closest_sanitizer_option): New function.
(parse_sanitizer_options): Offer suggestions for unrecognized arguments.
gcc/testsuite/ChangeLog:
PR driver/78877
* gcc.dg/spellcheck-options-14.c: New test case.
* gcc.dg/spellcheck-options-15.c: New test case.
* gcc.dg/spellcheck-options-16.c: New test case.
* gcc.dg/spellcheck-options-17.c: New test case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244325 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ChangeLog')
-rw-r--r-- | gcc/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c9a17625565..db74169e9df 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2017-01-11 David Malcolm <dmalcolm@redhat.com> + + PR driver/78877 + * opts.c: Include "spellcheck.h" + (struct string_fragment): New struct. + (struct edit_distance_traits<const string_fragment &>): New + struct. + (get_closest_sanitizer_option): New function. + (parse_sanitizer_options): Offer suggestions for unrecognized arguments. + 2017-01-11 Jakub Jelinek <jakub@redhat.com> * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease |