This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Found gcc bug while trying to correct another one



  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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]