nvptx: properly use flag_patchable_function_entry
authorMartin Liska <mliska@suse.cz>
Wed, 10 Feb 2021 13:15:41 +0000 (14:15 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 10 Feb 2021 17:52:45 +0000 (18:52 +0100)
gcc/ChangeLog:

* config/nvptx/nvptx.c (nvptx_option_override): Use
flag_patchable_function_entry instead of the removed
function_entry_patch_area_size.

gcc/config/nvptx/nvptx.c

index f08b679106904432cc2c1934a0e7e01b354e4bb6..794c5a69db03b916d0064830aabce97fca5df64a 100644 (file)
@@ -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.  */