aboutsummaryrefslogtreecommitdiff
path: root/gcc/dumpfile.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2020-03-19 11:58:53 +0100
committerMartin Liska <mliska@suse.cz>2020-05-05 16:02:06 +0200
commit48c041033ec07b22fda380daa208ab754ec52b68 (patch)
treeaccb3810832117317dad9679ee5fd6b65a40dcd1 /gcc/dumpfile.h
parentd2148424165849ac9fe413b7a8d7cd198959bebf (diff)
downloadgcc-48c041033ec07b22fda380daa208ab754ec52b68.zip
gcc-48c041033ec07b22fda380daa208ab754ec52b68.tar.gz
gcc-48c041033ec07b22fda380daa208ab754ec52b68.tar.bz2
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.
Diffstat (limited to 'gcc/dumpfile.h')
-rw-r--r--gcc/dumpfile.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h
index 840ae4d..00e175a 100644
--- a/gcc/dumpfile.h
+++ b/gcc/dumpfile.h
@@ -691,7 +691,7 @@ public:
char *
get_dump_file_name (struct dump_file_info *dfi, int part = -1) const;
- int
+ void
dump_switch_p (const char *arg);
/* Start a dump for PHASE. Store user-supplied dump flags in