diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-09-13 10:45:36 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-09-13 10:45:36 +0200 |
commit | 14bce2578e2916b66d7ae7a42a83c510d8d7f804 (patch) | |
tree | def6aaa9d1bd83c15209ac04451e50f69e4e3f6c /gcc/opts.h | |
parent | e262faf259794cee5f147203570dfee56defe0d5 (diff) | |
download | gcc-14bce2578e2916b66d7ae7a42a83c510d8d7f804.zip gcc-14bce2578e2916b66d7ae7a42a83c510d8d7f804.tar.gz gcc-14bce2578e2916b66d7ae7a42a83c510d8d7f804.tar.bz2 |
re PR middle-end/77475 (unnecessary or misleading context in reporting command line problems)
PR middle-end/77475
* opts.h (candidates_list_and_hint): Declare.
* opts-common.c (candidates_list_and_hint): New function.
(cmdline_handle_error): Use it.
Co-Authored-By: Manuel López-Ibáñez <manu@gcc.gnu.org>
From-SVN: r240107
Diffstat (limited to 'gcc/opts.h')
-rw-r--r-- | gcc/opts.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -419,5 +419,8 @@ extern const struct sanitizer_opts_s extern void add_misspelling_candidates (auto_vec<char *> *candidates, const struct cl_option *option, const char *base_option); +extern const char *candidates_list_and_hint (const char *arg, char *&str, + const auto_vec <const char *> & + candidates); #endif |