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 target/47998] New: ICE of -O2


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.


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