http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59690
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >It seems to think that the frame-allocated "x" is global memory. No it thinks it has already escaped the function because right now escape analysis is not flow sensitive.