Provide hint for misspelled -fdump-foo options.
authorMartin Liska <mliska@suse.cz>
Thu, 19 Mar 2020 10:58:53 +0000 (11:58 +0100)
committerMartin Liska <mliska@suse.cz>
Tue, 5 May 2020 14:02:06 +0000 (16:02 +0200)
commit48c041033ec07b22fda380daa208ab754ec52b68
treeaccb3810832117317dad9679ee5fd6b65a40dcd1
parentd2148424165849ac9fe413b7a8d7cd198959bebf
Provide hint for misspelled -fdump-foo options.

gcc/ChangeLog:

2020-03-19  Martin Liska  <mliska@suse.cz>

* dumpfile.c (dump_switch_p): Change return type
and print option suggestion.
* dumpfile.h: Change return type.
* opts-global.c (handle_common_deferred_options):
Move error into dump_switch_p function.

gcc/testsuite/ChangeLog:

2020-03-19  Martin Liska  <mliska@suse.cz>

* gcc.dg/spellcheck-options-22.c: New test.
gcc/dumpfile.c
gcc/dumpfile.h
gcc/opts-global.c
gcc/testsuite/gcc.dg/spellcheck-options-22.c [new file with mode: 0644]