https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105930
--- Comment #18 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Of course, size comparisons of -O2 code aren't the most important, for -O2 it is more important how fast the code is. When comparing -Os -m32 -mno-mmx -mno-sse, the numbers are sub on %esp 412 2564 2620 2564 fn size in B 27535 20508 35036 20416 .s lines 5816 3590 7251 3544 So in the -Os case, the patched functions are both smaller and fewer instructions (significantly so), but compared to gcc 11 still significantly higher stack usage).