This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/47998] New: ICE of -O2
- From: "ysato at users dot sourceforge.jp" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 5 Mar 2011 16:49:47 +0000
- Subject: [Bug target/47998] New: ICE of -O2
- Auto-submitted: auto-generated
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.