This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Found gcc bug while trying to correct another one
- To: Martin Kahlert <martin dot kahlert at mchp dot siemens dot de>
- Subject: Re: Found gcc bug while trying to correct another one
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Tue, 14 Jul 1998 02:27:33 -0600
- cc: egcs-bugs at cygnus dot com
- Reply-To: law at cygnus dot com
In message <199806051335.PAA28713@keksy.mchp.siemens.de>you write:
> Hi,
> i'm new to gcc-hacking but tried to figure out, what causes this
> bug: (-O2 has to be used)
>
> #include <stdio.h>
>
> int main(int argc,const char *argv[])
> {
> int i;
> for(i=3;i<10;i++);
> if(i==10)
> puts("OK");
> else
> printf("not ok: %d != 10\n",i);
> return 0;
> }
Just in case nobody responded -- this bug has been fixed.
jeff