[Bug target/105930] [12/13 Regression] Excessive stack spill generation on 32-bit x86

torvalds@linux-foundation.org gcc-bugzilla@gcc.gnu.org
Sun Jun 12 17:30:50 GMT 2022


--- Comment #10 from Linus Torvalds <torvalds@linux-foundation.org> ---
(In reply to Roger Sayle from comment #7)
> Investigating.  Adding -mno-stv the stack size reduces from 2612 to 428 (and
> on godbolt the number of assembler lines reduces from 6952 to 6203).

So now that I actually tried that, '-mno-stv' does nothing for me. I still see
a frame size of 2620.

I wonder what the difference in our setups is. I tested with plain gcc-12.1.1
from Fedora 36, maybe you tested with current trunk or something?

Anyway, it seems -mno-stv isn't the solution at least for the released version

More information about the Gcc-bugs mailing list