This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/11210] optimizer drops conditional with typecast from signed to unsigned char
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2003 13:27:37 -0000
- Subject: [Bug optimization/11210] optimizer drops conditional with typecast from signed to unsigned char
- References: <20030616151237.11210.guido@clagi.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11210
ebotcazou@gcc.gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned@gcc.gnu.org |ebotcazou@gcc.gnu.org
------- Additional Comments From ebotcazou@gcc.gnu.org 2003-06-17 13:27 -------
The cast operations are illegally thrown away. The workaround is to remove the
casts in the lhs of the comparisons, after of course casting the constants to
'char'. This is implementation-defined for '130' but should work with any
version of GCC.