https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88809
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Alexander Monakov from comment #0) > Therefore I suggest we don't use rep-scasb for inline strlen anymore by > default (we currently do at -Os). This is in part motivated by PR 88793 and > the Redhat bug referenced from there. Is it smaller to call a function or inline it? -Os is really truely optimize for size no matter what. I know non-embedded folks don't like that and it is also the reason why Apple added -Oz (a similar thing to this -Os issue but on PowerPC where the string instructions are used).