https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117033
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|GCC trunk emits larger code |GCC trunk emits larger code
|at -Oz compared to -O2 |at -Os compared to -O2
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The difference between -Os and -Oz for GCC is just some recent (ok, it came in
GCC 12) x86 only backend differences and in this case -Os shows the issue too.
GCC original definition of -Os for powerpc was the reason why Apple added -Oz
(and clang copied Apple here).