aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCupertino Miranda <cupertino.miranda@oracle.com>2023-11-08 18:23:22 +0000
committerCupertino Miranda <cupertino.miranda@oracle.com>2023-11-28 12:28:39 +0000
commit61e060c4dcea3ac6369031753781c9b04dedb637 (patch)
tree512c7b752421efb319ee1c4ed5ee1a5f4c716fbc
parentbf4f40cc3195eb7b900bf5535cdba1ee51fdbb8e (diff)
downloadgcc-61e060c4dcea3ac6369031753781c9b04dedb637.zip
gcc-61e060c4dcea3ac6369031753781c9b04dedb637.tar.gz
gcc-61e060c4dcea3ac6369031753781c9b04dedb637.tar.bz2
bpf: Delayed the removal of the parser enum plugin handler.
The parser plugin handler that is responsible for collecting enum values information was being removed way too early. bpf_resolve_overloaded_core_builtin is called by the parser. It was moved to the function execute_lower_bpf_core. gcc/ChangeLog: * config/bpf/core-builtins.cc (bpf_resolve_overloaded_core_builtin): Removed call. (execute_lower_bpf_core): Added all to remove_parser_plugin.
-rw-r--r--gcc/config/bpf/core-builtins.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/config/bpf/core-builtins.cc b/gcc/config/bpf/core-builtins.cc
index a224847..2ba78d7 100644
--- a/gcc/config/bpf/core-builtins.cc
+++ b/gcc/config/bpf/core-builtins.cc
@@ -1473,8 +1473,6 @@ tree
bpf_resolve_overloaded_core_builtin (location_t loc, tree fndecl,
void *arglist)
{
- remove_parser_plugin ();
-
if (!bpf_require_core_support ())
return error_mark_node;
@@ -1688,6 +1686,7 @@ make_gimple_core_safe_access_index (tree *tp,
static unsigned int
execute_lower_bpf_core (void)
{
+ remove_parser_plugin ();
if (!TARGET_BPF_CORE)
return 0;