This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/51353] GCC incorrectly optimizes away assignment to return 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: Wed, 04 Jan 2012 00:37:33 +0000
- Subject: [Bug rtl-optimization/51353] GCC incorrectly optimizes away assignment to return address
- Auto-submitted: auto-generated
- References: <bug-51353-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51353
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-04 00:37:33 UTC ---
__builtin_frame_address(0) points to an address on the stack which means at the
end of the function, it can be removed. The tricks you are doing require the
use of volatile so that the compiler cannot remove it.