[Bug target/47998] New: ICE of -O2
ysato at users dot sourceforge.jp
gcc-bugzilla@gcc.gnu.org
Sat Mar 5 16:49:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47998
Summary: ICE of -O2
Product: gcc
Version: 4.5.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ysato@users.sourceforge.jp
Target: h8300-elf
$ cat ice-test.c
unsigned char buf[2048];
unsigned char *ptr;
void test(void)
{
ptr = buf + (32 - 1);
ptr -= (unsigned long)ptr % 32;
}
$ h8300-elf-gcc-4.5.3 -mh -mint32 -g -O2 -S ice-test.c
ice-test.c: In function ‘test’:
ice-test.c:8:1: internal compiler error: in gen_lowpart_general, at
rtlhooks.c:59
-O0 or -O1 is no problem.
More information about the Gcc-bugs
mailing list