https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97637
--- Comment #2 from Christer Solskogen <christer.solskogen at gmail dot com> --- You are correct. I've replaced Ofast with O2 (but it doesn't seem to matter that much) - with the default inline-unit-growth the binary gets 5% bigger. With inline-unit-growth=20 the binary gets 5%~ smaller. So that helped!