diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-05-03 09:33:04 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-05-03 09:33:04 +0200 |
commit | f66409e0b15afc9575885e51485c4e4dac9c6f16 (patch) | |
tree | 07e6b03904c43c8a4893d8f7321dc78a6f01c34c /gcc/opts.c | |
parent | d1700aa1407c188165eb8e06f40bf059a9b81b16 (diff) | |
download | gcc-f66409e0b15afc9575885e51485c4e4dac9c6f16.zip gcc-f66409e0b15afc9575885e51485c4e4dac9c6f16.tar.gz gcc-f66409e0b15afc9575885e51485c4e4dac9c6f16.tar.bz2 |
opts.h (finish_options): Remove lang_mask argument.
* opts.h (finish_options): Remove lang_mask argument.
(print_help, help_option_argument): Declare.
* opts.c (print_help): Remove forward declaration, no longer static.
(finish_options): Remove lang_mask argument, don't call print_help
here.
* opts-global.c (decode_options): Adjust finish_option caller, call
print_help here.
From-SVN: r270836
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -858,15 +858,13 @@ control_options_for_live_patching (struct gcc_options *opts, /* --help option argument if set. */ const char *help_option_argument = NULL; -static void print_help (struct gcc_options *opts, unsigned int lang_mask); - /* After all options at LOC have been read into OPTS and OPTS_SET, finalize settings of those options and diagnose incompatible combinations. */ void finish_options (struct gcc_options *opts, struct gcc_options *opts_set, - location_t loc, unsigned int lang_mask) + location_t loc) { enum unwind_info_type ui_except; @@ -1230,10 +1228,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, opts->x_flag_live_patching, loc); } - - /* Print --help=* if used. */ - if (help_option_argument != NULL) - print_help (opts, lang_mask); } #define LEFT_COLUMN 27 @@ -2066,7 +2060,7 @@ check_alignment_argument (location_t loc, const char *flag, const char *name) /* Print help when OPT__help_ is set. */ -static void +void print_help (struct gcc_options *opts, unsigned int lang_mask) { const char *a = help_option_argument; |