public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: bangerth@dealii.org To: fjh@cs.mu.oz.au, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, mercury@cs.mu.oz.au, nobody@gcc.gnu.org Subject: Re: optimization/7887: [3.3 regression] Missing label with -O2 -fpic Date: Fri, 06 Dec 2002 12:49:00 -0000 [thread overview] Message-ID: <20021206204904.15464.qmail@sources.redhat.com> (raw) Old Synopsis: Undefined labels with -O2 -fpic breaks Mercury bootstrap New Synopsis: [3.3 regression] Missing label with -O2 -fpic State-Changed-From-To: open->analyzed State-Changed-By: bangerth State-Changed-When: Fri Dec 6 12:49:04 2002 State-Changed-Why: Here's a much much simpler example: ----------------------------- void foo(int * d11, int d22, int d33) { switch (d22 & 3) { case 0: { switch (d33) { case 0: *d11 = 1; break; case 1: *d11 = 1; break; case 2: *d11 = 1; break; case 3: *d11 = 1; break; case 4: *d11 = 1; break; } break; } case 1: { switch (d33) { case 0: *d11 = 1; break; case 1: *d11 = 1; break; case 2: *d11 = 1; break; case 3: *d11 = 1; break; case 4: *d11 = 1; break; } } } } int main() { return 0; } ---------------------------- With present mainline I get on an x86-linux: tmp/g> /home/bangerth/bin/gcc-3.3-pre/bin/gcc -O2 -fpic bug.c /tmp/ccJZAgrn.o: In function `.L18': /tmp/ccJZAgrn.o(.text+0x45): undefined reference to `.L10' collect2: ld returned 1 exit status It worked with 2.95 and 3.2.2pre, so is a regression. I've seen a number of other reports about missing labels, maybe this is a related case. Regards Wolfgang http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7887
next reply other threads:[~2002-12-06 20:49 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-12-06 12:49 bangerth [this message] 2003-02-13 18:42 zlomek
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=20021206204904.15464.qmail@sources.redhat.com \ --to=bangerth@dealii.org \ --cc=fjh@cs.mu.oz.au \ --cc=gcc-bugs@gcc.gnu.org \ --cc=gcc-gnats@gcc.gnu.org \ --cc=gcc-prs@gcc.gnu.org \ --cc=mercury@cs.mu.oz.au \ --cc=nobody@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).