From 14bce2578e2916b66d7ae7a42a83c510d8d7f804 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 13 Sep 2016 10:45:36 +0200 Subject: re PR middle-end/77475 (unnecessary or misleading context in reporting command line problems) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 From-SVN: r240107 --- gcc/opts.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/opts.h') diff --git a/gcc/opts.h b/gcc/opts.h index 25d32c1..4132432 100644 --- a/gcc/opts.h +++ b/gcc/opts.h @@ -419,5 +419,8 @@ extern const struct sanitizer_opts_s extern void add_misspelling_candidates (auto_vec *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 & + candidates); #endif -- cgit v1.1