c/4359
Reichelt
reichelt@igpm.rwth-aachen.de
Wed Sep 19 07:42:00 GMT 2001
Hi,
I was able to reproduce the problem on an IRIR 6.5 computer with
gcc 3.0.2 20010903 (prerelease). It might be target-dependant,
since everything works fine with gcc 3.0 on i686-pc-linux-gnu.
Here is a smaller testcase which triggers the bug with -O3 *and* -O2:
void e();
void f()
{
int i, j;
switch (j) {
case 2:
case 3:
case 5:
case 6:
break;
case 4:
i = i && j;
break;
default:
e();
}
}
(Just compile with "gcc -O2 -c" or "gcc -O3 -c".)
By the way, the bug seems to be a regression from 2.95.3.
Greetings,
Volker Reichelt
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4359&database=gcc
More information about the Gcc-bugs
mailing list