opts: fix handling of -fpatchable-function-entries option
authorMartin Liska <mliska@suse.cz>
Fri, 5 Feb 2021 12:11:44 +0000 (13:11 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 8 Feb 2021 11:31:24 +0000 (12:31 +0100)
commit0d701e3eb89870237669ef7bf41394d90c35ae70
tree1b07829e072abb7fee500525bdeb3a4b11e3e022
parentfe2034e9c039c998fc5da730ed531c61cf2e0b7d
opts: fix handling of -fpatchable-function-entries option

gcc/ChangeLog:

PR lto/98971
* cfgexpand.c (pass_expand::execute): Parse per-function option
flag_patchable_function_entry and use it.
* common.opt: Remove function_entry_patch_area_size and
function_entry_patch_area_start global variables.
* opts.c (parse_and_check_patch_area): New function.
(common_handle_option): Use it.
* opts.h (parse_and_check_patch_area): New function.
* toplev.c (process_options): Parse and use
function_entry_patch_area_size.
gcc/cfgexpand.c
gcc/common.opt
gcc/opts.c
gcc/opts.h
gcc/toplev.c