This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/53859] New: ICE when calculate insn latency for armv7e-m arch in O2 level
- From: "zhuolin.liu at arm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Jul 2012 07:03:20 +0000
- Subject: [Bug c/53859] New: ICE when calculate insn latency for armv7e-m arch in O2 level
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53859
Bug #: 53859
Summary: ICE when calculate insn latency for armv7e-m arch in
O2 level
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zhuolin.liu@arm.com
I cross built a compiler from recent trunk code for arm-none-eabi target. When
use this compiler to compile following code for armv7e-m arch, I got an
internal compiler error.
My code is simple as:
void bar (int,int,char* ,int);
void foo (char c)
{
bar (1,2,&c,3 );
}
ICE is triggered by command:
build@sha-pdsh-build:$ arm-none-eabi-gcc -mthumb -march=armv7e-m -O2 -c test.c
test.c: In function 'foo':
test.c:13:1: internal compiler error: Segmentation fault
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
After I change my code to:
void bar (int,int,char* ,int);
static void foo (char c)
{
bar (1,2,&c,3 );
}
This ICE is gone.