public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gcc at david dot osborn dot name" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/30047] Corrupt return value in specific context
Date: Sun, 08 Jun 2008 20:02:00 -0000	[thread overview]
Message-ID: <20080608200146.24984.qmail@sourceware.org> (raw)
In-Reply-To: <bug-30047-13405@http.gcc.gnu.org/bugzilla/>



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


  parent reply	other threads:[~2008-06-08 20:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-02  7:29 [Bug libstdc++/30047] New: " spam at david dot osborn dot name
2008-06-08 19:56 ` [Bug target/30047] " gcc at david dot osborn dot name
2008-06-08 20:02 ` gcc at david dot osborn dot name [this message]
     [not found] <bug-30047-4@http.gcc.gnu.org/bugzilla/>
2011-04-12 19:44 ` ktietz at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080608200146.24984.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).