https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114206
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #60885|0 |1 is obsolete| | --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 60886 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60886&action=edit Simplier testcase but kinda of more complex case to handle This one also fails at -Os. GCC knows that &b[0] does not escape via g but then tail call happens.