This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11805] New: [H8300] ICE
- From: "shrinivasa at kpitcummins dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Aug 2003 10:43:01 -0000
- Subject: [Bug c/11805] New: [H8300] ICE
- 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=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.