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: Optimizer Bug


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



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