https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96383
--- Comment #20 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
lang_hooks.finalize_early_debug_info ?
In the default definition move there just the
/* Emit early debug for reachable functions, and by consequence,
locally scoped symbols. */
struct cgraph_node *cnode;
FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (cnode)
(*debug_hooks->early_global_decl) (cnode->decl);
and for c-family do what you were testing?
