This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Optimizer Bug
- To: Martin Kahlert <martin dot kahlert at mchp dot siemens dot de>
- Subject: Re: Optimizer Bug
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Tue, 05 May 1998 13:17:30 -0400
- Cc: egcs-bugs at cygnus dot com
Martin Kahlert <martin.kahlert@mchp.siemens.de> said:
> /*
> Hi,
> This is a problem with gcc-2.8*, and egcs-2.91.15:
> Try 'gcc -O2 -o bug bug.c' versus
> 'gcc -o bug bug.c'
> and run ./bug
> System is linux-2.0.33
> (was reported on gnu.gcc.bug-newsgroup)
> */
>
> #include <stdio.h>
> int main(int argc,const char *argv[])
> {
> int i;
> for (i=1;i<100;i++);
> if (i==100)
> printf("OK\n");
> return 0;
> }
Still broken (egcs-19980502, --enable-{shared,threads,haifa},
i586-pc-linux-gnu)
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile +56 32 672616