https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109927
--- Comment #4 from Stan Johnson <userm57 at yahoo dot com> --- Adding more swap space doesn't help. The latest Gentoo update attempted to merge gcc-13.1.1_p20230520, and it failed while compiling gimple-match.cc in stage2. The error message is "virtual memory exhausted: Cannot allocate memory". Here are some memory details just before the failure: ./work/build/./prev-gcc/cc1plus VSZ=920260 RSS=632200 /usr/m68k-unknown-linux-gnu/bin/as VSZ=265260 RSS=258608 There is still swap space available: # cat /proc/swaps Filename Type Size Used Priority /dev/sda7 partition 524284 225008 -2 /dev/sda8 partition 524284 0 -3