This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[egcs-19980531] Optimization bug persists
- To: egcs-bugs at cygnus dot com, egcs at cygnus dot com
- Subject: [egcs-19980531] Optimization bug persists
- From: Hyman Rosen <hymie at prolifics dot com>
- Date: Tue, 2 Jun 1998 18:49:23 -0400
Egcs continues to have this optimization bug. It appears in both places
I've tried, Linux and Solaris. The following code should print "OK".
When compiled with -O2 or better, it prints nothing.
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;
}