Postpone print of --help=* option.
authorMartin Liska <mliska@suse.cz>
Thu, 2 May 2019 08:16:12 +0000 (10:16 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 2 May 2019 08:16:12 +0000 (08:16 +0000)
commit2dcfc8722b6146e479039a2f8994050c772b25e6
tree1fa0518e606198867e6361602184e0b1795ca3db
parent786e0e5239529de9a4254fe8411a0e8f843e721a
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
gcc/ChangeLog
gcc/gcc.c
gcc/opts-global.c
gcc/opts.c
gcc/opts.h