This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23068] [4.1 Regression] errors in comparison operator < for char
- From: "Jean-pierre dot vial at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jul 2005 06:36:55 -0000
- Subject: [Bug tree-optimization/23068] [4.1 Regression] errors in comparison operator < for char
- References: <20050726052519.23068.Jean-pierre.vial@wanadoo.fr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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