aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-05-28 14:05:50 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-05-28 12:05:50 +0000
commitbc405869c272442b8d39caf1aebc74f90ed2d8c2 (patch)
treec58ae5a68e9bdbca68c6897f5d70c6e553ff6108 /gcc/opts.h
parent392d2ff3bd6fc66a6683540fc33910ddef9bf6f1 (diff)
downloadgcc-bc405869c272442b8d39caf1aebc74f90ed2d8c2.zip
gcc-bc405869c272442b8d39caf1aebc74f90ed2d8c2.tar.gz
gcc-bc405869c272442b8d39caf1aebc74f90ed2d8c2.tar.bz2
Support again multiple --help options (PR other/90315).
2019-05-28 Martin Liska <mliska@suse.cz> PR other/90315 * opts-global.c (decode_options): Print help for all help_option_arguments. * opts.c (print_help): Add new argument. (common_handle_option): Remember all values into help_option_arguments. * opts.h (print_help): Add new argument. From-SVN: r271700
Diffstat (limited to 'gcc/opts.h')
-rw-r--r--gcc/opts.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/opts.h b/gcc/opts.h
index a8afc23..e5723a9 100644
--- a/gcc/opts.h
+++ b/gcc/opts.h
@@ -419,7 +419,8 @@ extern bool target_handle_option (struct gcc_options *opts,
extern void finish_options (struct gcc_options *opts,
struct gcc_options *opts_set,
location_t loc);
-extern void print_help (struct gcc_options *opts, unsigned int lang_mask);
+extern void print_help (struct gcc_options *opts, unsigned int lang_mask, const
+ char *help_option_argument);
extern void default_options_optimization (struct gcc_options *opts,
struct gcc_options *opts_set,
struct cl_decoded_option *decoded_options,
@@ -443,7 +444,7 @@ extern const struct sanitizer_opts_s
bool can_recover;
} sanitizer_opts[];
-extern const char *help_option_argument;
+extern vec<const char *> help_option_arguments;
extern void add_misspelling_candidates (auto_vec<char *> *candidates,
const struct cl_option *option,