------- 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