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: "nkeynes at deadcoderemoval dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 15 Dec 2011 02:14:48 +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 #2 from Nathan Keynes <nkeynes at deadcoderemoval dot net> 2011-12-15 02:14:48 UTC ---
Testing this out,
*(((volatile void **)__builtin_frame_address(0))+1) = exc;
still does not work in 4.4.6 and 4.5.3, but
*(((void * volatile *)__builtin_frame_address(0))+1) = exc;
does work correctly.