aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-05-02 10:16:12 +0200
committerMartin Liska <marxin@gcc.gnu.org>2019-05-02 08:16:12 +0000
commit2dcfc8722b6146e479039a2f8994050c772b25e6 (patch)
tree1fa0518e606198867e6361602184e0b1795ca3db /gcc/opts.h
parent786e0e5239529de9a4254fe8411a0e8f843e721a (diff)
downloadgcc-2dcfc8722b6146e479039a2f8994050c772b25e6.zip
gcc-2dcfc8722b6146e479039a2f8994050c772b25e6.tar.gz
gcc-2dcfc8722b6146e479039a2f8994050c772b25e6.tar.bz2
Postpone print of --help=* option.
2019-05-02 Martin Liska <mliska@suse.cz> * gcc.c (process_command): Add dummy file only if n_infiles == 0. * opts-global.c (decode_options): Pass lang_mask. * opts.c (print_help): New function. (finish_options): Print --help if help_option_argument is set. (common_handle_option): Factor out content of OPT__help_ into print_help. * opts.h (finish_options): Add new argument. From-SVN: r270788
Diffstat (limited to 'gcc/opts.h')
-rw-r--r--gcc/opts.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/opts.h b/gcc/opts.h
index f14d9bc..6e99ead 100644
--- a/gcc/opts.h
+++ b/gcc/opts.h
@@ -418,7 +418,8 @@ extern bool target_handle_option (struct gcc_options *opts,
void (*target_option_override_hook) (void));
extern void finish_options (struct gcc_options *opts,
struct gcc_options *opts_set,
- location_t loc);
+ location_t loc,
+ unsigned int lang_mask);
extern void default_options_optimization (struct gcc_options *opts,
struct gcc_options *opts_set,
struct cl_decoded_option *decoded_options,