https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102527
Bug ID: 102527 Summary: [12 regression] out of memory compiling insn-emit.c Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: aldyh at gcc dot gnu.org Target Milestone: --- Host: i386-pc-solaris2.11 Target: i386-pc-solaris2.11 Build: i386-pc-solaris2.11 Between 20210927 (rev dd11aab6463880c35d942c4a4fd346fdaeeb8e72) and 20210928 (rev a11052d98db2f2a61841f0c5ee84de4ca1b3e296), 32-bit Solaris/x86 bootstrap broke compiling insn-emit.c in stage 2: cc1plus: out of memory allocating 65536 bytes after a total of 2747670528 bytes make[3]: *** [Makefile:1136: insn-emit.o] Error 1 Comparing to the cc1plus memory consumption in the working configuration, memory usage has almost quadrupled from ca. 750 MB to ca. 2.6 GB. A reghunt identified this patch as the culprit: commit 0288527f47cec6698b31ccb3210816415506009e Author: Aldy Hernandez <al...@redhat.com> Date: Tue Sep 21 10:27:53 2021 +0200 Replace VRP threader with a hybrid forward threader. sparc-sun-solaris2.11 isn't affected, neither is i686-pc-linux-gnu. Compiling with -fmem-report doesn't produce anything in the failing case.