http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58818
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> --- You cannot depend on those being the correct locations in memory for the arguments. With -O2, the code could be inlined which is what is happening in your case.