https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114480
--- Comment #26 from rguenther at suse dot de <rguenther at suse dot de> --- On Mon, 8 Apr 2024, douglas.boffey at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114480 > > --- Comment #25 from Douglas Boffey <douglas.boffey at gmail dot com> --- > (In reply to rguent...@suse.de from comment #24) > > dumpbin /headers executable.exe > > ... > C00000 size of stack reserve OK, so that's the expected 12MB we adjust the stack reserve to. It's odd that you run into stack exhaustion (or maybe you don't and instead run out of other memory). I've now tried GCC 11.4 as you reportedly used on x86_64-linux and can compile the testcase successfully with that using 2GB memory and 75s compile-time. Stack usage itself isn't measured but 8MB were enough. GCC 13 runs out of (8MB) stack for me.