c/4359

Otto Skrove Bagge otto@ii.uib.no
Wed Sep 19 08:52: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.

That sounds reasonable; I haven't had any trouble with this on GNU/Linux.
I've also had unconfirmed reports of successful builds on Solaris and
powerpc-apple-darwin1.0.

I also suspect that it might be outputting wrong code for -O2 -- compiling with
gcc 3.0 (IRIX) introduces a bug in the program which isn't there when compiled
with gcc 2.95.2 (IRIX) or with gcc version 3.0.1 20010811 (Debian prerelease)
for i386-linux.  This problem does not occur when compiling without 
optimisation.

>Here is a smaller testcase which triggers the bug with -O3 *and* -O2:

Yes, that seems to do it...

-otto



More information about the Gcc-bugs mailing list