https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87039
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Actually, I think this got broken with PR78363 r244892. Before that the early_global_decl hooks are only called on the functions when all the functions are lowered and thus the BLOCKs moved.