https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71937
--- Comment #11 from Markus Trippelsdorf <trippels at gcc dot gnu.org> --- The excessive memory usage only happens when compiling without optimizations. Using -O1 it stays below 2 GB, but takes minutes to finish.