https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119705
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- >From the profile it looks like using that much memory (creating that much garbage) is the main issue, due to GC that always eats at compile-time.