diff options
author | Martin Liska <mliska@suse.cz> | 2021-02-05 13:11:44 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-02-08 12:31:24 +0100 |
commit | 0d701e3eb89870237669ef7bf41394d90c35ae70 (patch) | |
tree | 1b07829e072abb7fee500525bdeb3a4b11e3e022 /gcc/common.opt | |
parent | fe2034e9c039c998fc5da730ed531c61cf2e0b7d (diff) | |
download | gcc-0d701e3eb89870237669ef7bf41394d90c35ae70.zip gcc-0d701e3eb89870237669ef7bf41394d90c35ae70.tar.gz gcc-0d701e3eb89870237669ef7bf41394d90c35ae70.tar.bz2 |
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.
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index a8a2b67..c75dd36 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -144,14 +144,6 @@ bool flag_stack_usage_info = false Variable int flag_debug_asm -; How many NOP insns to place at each function entry by default -Variable -HOST_WIDE_INT function_entry_patch_area_size - -; And how far the real asm entry point is into this area -Variable -HOST_WIDE_INT function_entry_patch_area_start - ; Balance between GNAT encodings and standard DWARF to emit. Variable enum dwarf_gnat_encodings gnat_encodings = DWARF_GNAT_ENCODINGS_DEFAULT @@ -2309,7 +2301,7 @@ Common Var(flag_profile_reorder_functions) Optimization Enable function reordering that improves code placement. fpatchable-function-entry= -Common Joined Optimization +Common Var(flag_patchable_function_entry) Joined Optimization Insert NOP instructions at each function entry. frandom-seed |