https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88793
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Florian Weimer from comment #5) > (In reply to Alexander Monakov from comment #3) > > (-Os is not "minimize size at all costs"). > > Bug 88809 comment 1 says the exact opposite. 8-/ And the manual says: It also performs further optimizations designed to reduce code size. Also see the thread at: https://gcc.gnu.org/ml/gcc/2017-08/msg00280.html