https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88793
Alexander Monakov <amonakov at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amonakov at gcc dot gnu.org --- Comment #1 from Alexander Monakov <amonakov at gcc dot gnu.org> --- (In reply to Florian Weimer from comment #0) > However, optimizing for size is a very big hammer and causes substantial > performance issues on i386 and x86-64 due to string function inlining. As a > result, the cold attribute is only suitable for code that is basically never > executed. For other cases, like repeated execution which only happens in an > unlikely configuration, it is inappropriate. Can you please clarify exactly what issues? If you mean inline 'rep stosb/movsb', their overhead is on the order of 30 cycles, and I don't see what is inappropriate about it.