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, 14 Dec 2011 23:28:00 +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
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-14 23:28:00 UTC ---
I think this should be:
*(((volatile void **)__builtin_frame_address(0))+1) = exc;
GCC thinks it does not alias thing which is why it is removing it.