public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53859] New: ICE when calculate insn latency for armv7e-m arch in O2 level
@ 2012-07-05  7:03 zhuolin.liu at arm dot com
  2012-07-06 16:22 ` [Bug target/53859] " Greta.Yorsh at arm dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: zhuolin.liu at arm dot com @ 2012-07-05  7:03 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-12  9:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-05  7:03 [Bug c/53859] New: ICE when calculate insn latency for armv7e-m arch in O2 level zhuolin.liu at arm dot com
2012-07-06 16:22 ` [Bug target/53859] " Greta.Yorsh at arm dot com
2012-07-10 12:26 ` gretay at gcc dot gnu.org
2012-07-11  1:04 ` zhuolin.liu at arm dot com
2012-07-11  8:42 ` gretay at gcc dot gnu.org
2012-07-12  9:45 ` ramana at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).