http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60857
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is invalid as what is happening is you get a push of the old pc when a call happens and that is crashing. In the return 0 case, it just does an add and subtract so you don't actually use the stack. You need to increase the stack limit via ulimit.