https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108887
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Honza, one possibility would be to add_cgraph_removal_hook for the duration of analyze_functions which would update first_analyzed and remove it at the end. Or do we have some way to mark a symtab node for deferred removal, instead of removing it right away?