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.
bpf_resolve_overloaded_core_builtin (location_t loc, tree fndecl,
void *arglist)
{
- remove_parser_plugin ();
-
if (!bpf_require_core_support ())
return error_mark_node;
static unsigned int
execute_lower_bpf_core (void)
{
+ remove_parser_plugin ();
if (!TARGET_BPF_CORE)
return 0;