public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: sirl@gcc.gnu.org To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, veillard@redhat.com, wbrack@mmm.com.hk Subject: Re: optimization/3387: GCC 3.0 optimisation -O2 -fPIC produces incorrect code Date: Sun, 09 Sep 2001 10:44:00 -0000 [thread overview] Message-ID: <20010909174430.13057.qmail@sourceware.cygnus.com> (raw) Synopsis: GCC 3.0 optimisation -O2 -fPIC produces incorrect code State-Changed-From-To: open->feedback State-Changed-By: sirl State-Changed-When: Sun Sep 9 10:44:30 2001 State-Changed-Why: With current gcc-3_0-branch this testcase seems to produce correct code, see below. Can you please verify that the current gcc-3_0-branch works for you in the original context too? .file "xml2bug.c" .text .align 16 .globl bug .type bug,@function bug: pushl %ebp movl %esp, %ebp pushl %edi pushl %esi pushl %ebx subl $20, %esp call .LPR0 addl $_GLOBAL_OFFSET_TABLE_, %ebx movl 8(%ebp), %edi leal 12(%ebp), %esi pushl %esi pushl %edi call f1@PLT addl $16, %esp testl %eax, %eax je .L3 subl $8, %esp pushl %esi pushl %edi call f2@PLT addl $16, %esp testl %eax, %eax je .L3 .L1: leal -12(%ebp), %esp popl %ebx popl %esi popl %edi popl %ebp ret .p2align 4,,7 .L3: subl $8, %esp pushl %esi pushl %edi call f2@PLT xorl %eax, %eax jmp .L1 .Lfe1: .size bug,.Lfe1-bug .LPR0: movl (%esp), %ebx ret .ident "GCC: (GNU) 3.0.2 20010909 (prerelease)" http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3387&database=gcc
next reply other threads:[~2001-09-09 10:44 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-09-09 10:44 sirl [this message] -- strict thread matches above, loose matches on Subject: below -- 2001-09-12 14:24 sirl 2001-06-22 19:56 William M. Brack 2001-06-22 17:56 wbrack
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=20010909174430.13057.qmail@sourceware.cygnus.com \ --to=sirl@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ --cc=veillard@redhat.com \ --cc=wbrack@mmm.com.hk \ /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).