https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78972
--- Comment #8 from Andrew M. <liquidsun at gmail dot com> --- (In reply to Andrew Pinski from comment #7) > One thing to try is -fno-tree-ter. Stack sizes for -fno-tree-ter: 4.9.4: 272 bytes 5.1-5.4: 288 bytes 6.1-6.3: 560 bytes 7: 560 bytes Performance improves a lot with -fno-tree-ter with 5.x going back to 4.9 levels, and 6.x being somewhere inbetween 4.9 and 6.x without -f-no-tree-ter.