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 c/53859] New: ICE when calculate insn latency for armv7e-m arch in O2 level


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.


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