This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/66795] Incorrect and missed optimizations of __builtin_frame_address
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 18 Jul 2016 00:18:46 +0000
- Subject: [Bug rtl-optimization/66795] Incorrect and missed optimizations of __builtin_frame_address
- Auto-submitted: auto-generated
- References: <bug-66795-4@http.gcc.gnu.org/bugzilla/>
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.