https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39851
--- Comment #13 from Martin Liška <marxin at gcc dot gnu.org> --- Author: marxin Date: Fri Sep 15 08:18:34 2017 New Revision: 252787 URL: https://gcc.gnu.org/viewcvs?rev=252787&root=gcc&view=rev Log: Subject: Backport r251400 2017-09-15 Martin Liska <mli...@suse.cz> Backport from mainline 2017-08-29 Martin Liska <mli...@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-09-15 Martin Liska <mli...@suse.cz> Backport from mainline 2017-08-29 Martin Liska <mli...@suse.cz> PR other/39851 * c-common.c (parse_optimize_options): Add argument to function call. * c-pragma.c (handle_pragma_diagnostic): Likewise. Modified: branches/gcc-7-branch/gcc/ChangeLog branches/gcc-7-branch/gcc/c-family/ChangeLog branches/gcc-7-branch/gcc/c-family/c-common.c branches/gcc-7-branch/gcc/c-family/c-pragma.c branches/gcc-7-branch/gcc/gcc.c branches/gcc-7-branch/gcc/opts-common.c branches/gcc-7-branch/gcc/opts-global.c branches/gcc-7-branch/gcc/opts.c branches/gcc-7-branch/gcc/opts.h branches/gcc-7-branch/gcc/toplev.c