https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100962
Georg-Johann Lay <gjl at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #5 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
The code is optimized fine with -Os.
With -Og, you can expect less optimized code. For the provided code and -Og,
you can improve code quality by means of -mstrict-X (where I am not sure
whether it would be appropriate to have -mstrict-X as the default).