[egcs-19980525] Optimization bug still present
Jeffrey A Law
law@cygnus.com
Sun Jun 28 01:05:00 GMT 1998
In message <199805262113.RAA13717@calumny.jyacc.com>you write:
> The following C code, compiled with optimization, fails to print "OK":
>
> int main(int c, char **v)
> {
> extern int printf(char *, ...);
> int i;
> for (i = 1; i < 100; i++)
> ;
> if (i == 100)
> printf("OK\n");
> return 0;
> }
I don't remember ever seeing a response for this one -- this bug has
been fixed.
Sorry if it's a dup. Going through some of my old bug reports.
jeff
More information about the Gcc-bugs
mailing list