https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106499
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |memory-hog --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > -flto-partition=none I suspect this is not in an infinite loop but rather the amount of memory required for all of the IR and meta-data is huge which means you are now swapping. I suspect -flto-partition=none should/cannot not be used here really.