diff options
author | Martin Liska <mliska@suse.cz> | 2017-08-29 09:46:10 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2017-08-29 07:46:10 +0000 |
commit | 130fcab02f1fbb097fc52fc9a8892472e3fa0c6c (patch) | |
tree | 046ad3bcd18ba4f41c0aa0e8b5abc176198fc723 /gcc/opts-common.c | |
parent | faa5399be693b2cdea641b976156f0fc89fa10cf (diff) | |
download | gcc-130fcab02f1fbb097fc52fc9a8892472e3fa0c6c.zip gcc-130fcab02f1fbb097fc52fc9a8892472e3fa0c6c.tar.gz gcc-130fcab02f1fbb097fc52fc9a8892472e3fa0c6c.tar.bz2 |
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
Diffstat (limited to 'gcc/opts-common.c')
-rw-r--r-- | gcc/opts-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/opts-common.c b/gcc/opts-common.c index 0cab42a..d756814 100644 --- a/gcc/opts-common.c +++ b/gcc/opts-common.c @@ -993,7 +993,8 @@ handle_option (struct gcc_options *opts, { if (!handlers->handlers[i].handler (opts, opts_set, decoded, lang_mask, kind, loc, - handlers, dc)) + handlers, dc, + handlers->target_option_override_hook)) return false; } |