public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "amodra at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/44075] New: __builtin_eh_return miscompiled Date: Tue, 11 May 2010 09:47:00 -0000 [thread overview] Message-ID: <bug-44075-1057@http.gcc.gnu.org/bugzilla/> (raw) At any optimisation level other than -O0, it seems that __builtin_eh_return loses its handler arg. For -m32 -O2 -S the following: long offset; void *handler; void foo (void) { __builtin_eh_return (offset, handler); } compiles to: foo: stwu 1,-32(1) lis 9,offset@ha mflr 0 stw 0,36(1) stw 3,16(1) stw 4,20(1) stw 5,24(1) stw 6,28(1) lwz 10,offset@l(9) lwz 0,36(1) lwz 3,16(1) lwz 4,20(1) lwz 5,24(1) mtlr 0 lwz 6,28(1) addi 1,1,32 add 1,1,10 blr -- Summary: __builtin_eh_return miscompiled Product: gcc Version: 4.4.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: amodra at gmail dot com GCC target triplet: powerpc*-*-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44075
next reply other threads:[~2010-05-11 9:47 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-05-11 9:47 amodra at gmail dot com [this message] 2010-05-12 11:40 ` [Bug target/44075] " amodra at gmail dot com 2010-05-14 0:35 ` amodra at gcc dot gnu dot org 2010-05-17 13:41 ` bergner at gcc dot gnu dot org 2010-06-04 4:57 ` amodra at gcc dot gnu dot org 2010-06-04 4:57 ` amodra at gcc dot gnu dot org 2010-06-04 4:58 ` amodra at gcc dot gnu dot org 2010-06-04 4:59 ` amodra at gmail dot com
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=bug-44075-1057@http.gcc.gnu.org/bugzilla/ \ --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: linkBe 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).