https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66795
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> --- The code below is invalid as __builtin_frame_address is only for reading from the current frame. Also -O2 enables -fomit-frame-pointer which might cause the frame pointer to go away.