diff options
author | Martin Liska <mliska@suse.cz> | 2021-02-10 14:15:41 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-02-10 18:52:45 +0100 |
commit | 5874d156669058ffb2c0578987ba6ba3b08f2be3 (patch) | |
tree | f3516586f4338d8d22fea2ef05e86750aaa80bc3 /gcc | |
parent | 3df5b249b3c81e95cdcb293a388155ae5b168f9e (diff) | |
download | gcc-5874d156669058ffb2c0578987ba6ba3b08f2be3.zip gcc-5874d156669058ffb2c0578987ba6ba3b08f2be3.tar.gz gcc-5874d156669058ffb2c0578987ba6ba3b08f2be3.tar.bz2 |
nvptx: properly use flag_patchable_function_entry
gcc/ChangeLog:
* config/nvptx/nvptx.c (nvptx_option_override): Use
flag_patchable_function_entry instead of the removed
function_entry_patch_area_size.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/nvptx/nvptx.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index f08b679..794c5a6 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -74,6 +74,7 @@ #include "cfgloop.h" #include "fold-const.h" #include "intl.h" +#include "opts.h" /* This file should be included last. */ #include "target-def.h" @@ -219,7 +220,10 @@ nvptx_option_override (void) flag_no_common = 1; /* The patch area requires nops, which we don't have. */ - if (function_entry_patch_area_size > 0) + HOST_WIDE_INT patch_area_size, patch_area_entry; + parse_and_check_patch_area (flag_patchable_function_entry, false, + &patch_area_size, &patch_area_entry); + if (patch_area_size > 0) sorry ("not generating patch area, nops not supported"); /* Assumes that it will see only hard registers. */ |