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 optimization/11210] optimizer drops conditional with typecast from signed to unsigned char


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.


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