------- Additional Comments From Jean-pierre dot vial at wanadoo dot fr  
2005-07-26 06:36 -------
(In reply to comment #1)
> I cannot reproduce it on 20050725.  What options are you using to create the
executable.
> 
> I tried with -O0, -O1, -O2, and -O3 and no success.

no bug with -O0 or -O1
bug with -O2 and -O3
incidentally, if the code is modified as  
unsigned char c,d;
  d=128;
  for (c=127;c<130;c++){
  printf("test : (char) %d <= 128 result %d\n",c,c<=128);
  printf("test : (char) %d < 128 result %d\n",c,c<128);
everything works fine

I am presently re-compiling   version 20050725 in case of
hardware bug during my first compilation of the compiler.
I will see if this fixes the problem.
  }


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23068

Reply via email to