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]
Other format: [Raw text]

[Bug tree-optimization/23068] [4.1 Regression] errors in comparison operator < for char


------- 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


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