https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97060
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 49224 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49224&action=edit gcc11-pr97060.patch Actually, the DECL_EXTERNAL tests aren't probably a good idea because of the GNU extern inlines. This patch attempts to match the previous behavior where early_debug_decl was called only on FUNCTION_DECLs with gimple bodies, so the patch for those keeps setting current_function_decl to non-NULL and sets it to NULL only for the FUNCTION_DECLs for which it wouldn't be called previously and only the PR96383 changed that.