diff options
author | Martin Liska <mliska@suse.cz> | 2018-06-28 09:08:01 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2018-06-28 07:08:01 +0000 |
commit | 98086b2ba2bd021e887788cea410410e61eaee42 (patch) | |
tree | 75a8f11816cec8e2dfb5a56b30a3e687f5b27828 /gcc/gcc.h | |
parent | 3de37a5d22c6f7add3457929d3572d2de678d6c2 (diff) | |
download | gcc-98086b2ba2bd021e887788cea410410e61eaee42.zip gcc-98086b2ba2bd021e887788cea410410e61eaee42.tar.gz gcc-98086b2ba2bd021e887788cea410410e61eaee42.tar.bz2 |
Makefile.in: Add opt-suggestions.o.
.
2018-06-28 Martin Liska <mliska@suse.cz>
* Makefile.in: Add opt-suggestions.o.
* gcc-main.c: Include opt-suggestions.h.
* gcc.c (driver::driver): Likewise.
(driver::~driver): Remove m_option_suggestions.
(driver::build_option_suggestions): Moved to option_proposer.
(driver::suggest_option): Likewise.
(driver::handle_unrecognized_options): Use option_proposer.
* gcc.h (class driver): Add new memver m_option_proposer.
* opt-suggestions.c: New file.
* opt-suggestions.h: New file.
2018-06-28 Martin Liska <mliska@suse.cz>
* cppspec.c: Include opt-suggestions.h.
2018-06-28 Martin Liska <mliska@suse.cz>
* gfortranspec.c: Include opt-suggestions.h.
2018-06-28 Martin Liska <mliska@suse.cz>
* jit-playback.c: Include opt-suggestions.h.
From-SVN: r262209
Diffstat (limited to 'gcc/gcc.h')
-rw-r--r-- | gcc/gcc.h | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -45,8 +45,6 @@ class driver void putenv_COLLECT_GCC (const char *argv0) const; void maybe_putenv_COLLECT_LTO_WRAPPER () const; void maybe_putenv_OFFLOAD_TARGETS () const; - void build_option_suggestions (void); - const char *suggest_option (const char *bad_opt); void handle_unrecognized_options (); int maybe_print_and_exit () const; bool prepare_infiles (); @@ -59,7 +57,7 @@ class driver char *explicit_link_files; struct cl_decoded_option *decoded_options; unsigned int decoded_options_count; - auto_vec <char *> *m_option_suggestions; + option_proposer m_option_proposer; }; /* The mapping of a spec function name to the C function that |