From: Cupertino Miranda Date: Wed, 8 Nov 2023 18:23:22 +0000 (+0000) Subject: bpf: Delayed the removal of the parser enum plugin handler. X-Git-Tag: basepoints/gcc-15~4220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=61e060c4dcea3ac6369031753781c9b04dedb637;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/config/bpf/core-builtins.cc b/gcc/config/bpf/core-builtins.cc index a224847d5d91..2ba78d7aed2e 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;