[Bug optimization/11210] optimizer drops conditional with typecast from signed to unsigned char
ebotcazou@gcc.gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jun 17 13:27:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list