public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: optimization/7887: [3.3 regression] Missing label with -O2 -fpic
@ 2003-02-13 18:42 zlomek
0 siblings, 0 replies; 2+ messages in thread
From: zlomek @ 2003-02-13 18:42 UTC (permalink / raw)
To: fjh, gcc-bugs, gcc-prs, mercury, nobody, tromey
Synopsis: [3.3 regression] Missing label with -O2 -fpic
State-Changed-From-To: analyzed->closed
State-Changed-By: zlomek
State-Changed-When: Thu Feb 13 18:42:10 2003
State-Changed-Why:
Bug fix has been checked in.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7887
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: optimization/7887: [3.3 regression] Missing label with -O2 -fpic
@ 2002-12-06 12:49 bangerth
0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-12-06 12:49 UTC (permalink / raw)
To: fjh, gcc-bugs, gcc-prs, mercury, nobody
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-13 18:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-13 18:42 optimization/7887: [3.3 regression] Missing label with -O2 -fpic zlomek
-- strict thread matches above, loose matches on Subject: below --
2002-12-06 12:49 bangerth
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).