Fix --help=target (PR other/39851).
authorMartin Liska <mliska@suse.cz>
Tue, 29 Aug 2017 07:46:10 +0000 (09:46 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 29 Aug 2017 07:46:10 +0000 (07:46 +0000)
commit130fcab02f1fbb097fc52fc9a8892472e3fa0c6c
tree046ad3bcd18ba4f41c0aa0e8b5abc176198fc723
parentfaa5399be693b2cdea641b976156f0fc89fa10cf
Fix --help=target (PR other/39851).

2017-08-29  Martin Liska  <mliska@suse.cz>

PR other/39851
* gcc.c (driver_handle_option): Add new argument.
* opts-common.c (handle_option): Pass
target_option_override_hook.
* opts-global.c (lang_handle_option): Add new option.
(set_default_handlers):  Add new argument.
(decode_options): Likewise.
* opts.c (target_handle_option): Likewise.
(common_handle_option): Call target_option_override_hook.
* opts.h (struct cl_option_handler_func): Add hook for
target option override.
(struct cl_option_handlers): Likewise.
(set_default_handlers): Add new argument.
(decode_options): Likewise.
(common_handle_option): Likewise.
(target_handle_option): Likewise.
* toplev.c (toplev::main): Pass targetm.target_option.override
hook.
2017-08-29  Martin Liska  <mliska@suse.cz>

PR other/39851
* c-common.c (parse_optimize_options): Add argument to function
call.
* c-pragma.c (handle_pragma_diagnostic): Likewise.

From-SVN: r251400
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-pragma.c
gcc/gcc.c
gcc/opts-common.c
gcc/opts-global.c
gcc/opts.c
gcc/opts.h
gcc/toplev.c