This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/30047] Corrupt return value in specific context
- From: "gcc at david dot osborn dot name" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2008 20:01:46 -0000
- Subject: [Bug target/30047] Corrupt return value in specific context
- References: <bug-30047-13405@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from gcc at david dot osborn dot name 2008-06-08 20:01 -------
Created an attachment (id=15738)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15738&action=view)
compiler output
This shows bad code being generated. The return value (12345) gets pushed into
eax on line 77, and then is subsequently overwritten for a call to
__Unwind_SjLj_Unregister. Line 85 was added by me to show how to recover the
return value.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30047