https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98555
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-01-06 Status|UNCONFIRMED |NEW Version|unknown |10.2.0 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Due to "undefined behavior" of course means this isn't unexpected (you have to expect anything there). For the literally written function, sure. Did you actually run into this for a relevant case? [for QOI/security/whatever we probably want to at least emit a ret instruction]