https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81443
--- Comment #9 from Joshua Kinard <kumba at gentoo dot org> --- (In reply to Eric Botcazou from comment #8) > > FWIW, reversing PR59461 (some manual edits required) on gcc-7_1_0-release > > compiles cleanly, which is the first time that's happened on this machine > > under N32. Successful builds on this machine take about 8 hours. Fail > > builds....~3-4 hours. It's during stage2-bubble when compiling genrecog.c > > will bail out, claiming no more virtual memory (2GB RAM + 3GB of swap). > > Can you invoke the problematic command manually and add -save-temps to it? > This will give you a .i file, then gzip it and attach it to the PR. Yup, I'll attach that in a moment. I also have the 'genrecog.s' file, if needed. I'll also add that it takes the command about 20-25mins to fail, which is very abnormal. This machine might be old, but the CPUs are 600MHz, and they can still chew through some of the largest C/C++ source files in under a minute in most cases. So it seems like something in the stage2-bubble xgcc/xg++ gets stuck in a loop and consumes additional memory with each iteration until it hits some kind of boundary and bails.