https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99600
Bug ID: 99600 Summary: [11 regression] out of memory for simple test case (x86 -march=atom) Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: arnd at linaro dot org Target Milestone: --- Testing random Linux kernel builds with gcc-11 killed my box before I had a reasonable "ulimit -d" limit set when it filled up 384GB of memory. I have now set a limit and managed to produce a small test case: $ ulimit -S -d 1000000 # one gigabyte $ gcc-11 -O2 -march=atom test.c virtual memory exhausted: Cannot allocate memory $ cat test.c char a; char b; long c; long d() { if (a ) c = b == 1 ? 1 << 3 : 1 << 2; else c = 0; return 0 ; } $ gcc-11 --version gcc-11 (Ubuntu 11-20210310-1ubuntu1) 11.0.1 20210310 (experimental) [master revision 8dc225d311e:2453ef06221:5987d8a79cda1069c774e5c302d5597310270026]