[Bug c/11805] New: [H8300] ICE
shrinivasa at kpitcummins dot com
gcc-bugzilla@gcc.gnu.org
Tue Aug 5 10:43: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=11805
Summary: [H8300] ICE
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: shrinivasa at kpitcummins dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: h8300-unknown-coff
Test case:
unsigned char foo(unsigned char ch)
{
if( (0x01 & ch) > 0)
return 1;
}
Above test code gives internal compiler error if compiled with option -O2 in
3.3 branch for h8300 coff tool chain(all targhets).
This error is not observed in 3.4 branch.
If we remove, " > 0" from test code, program gets compiled with -O2 option and
also if we use any nonzero number instead of 0 then also it gets compiled
successfully with -O2 option.
More information about the Gcc-bugs
mailing list