ICE: APCS Frame & optimize-sibling-calls

Bug #1273511 reported by Takashi Igarashi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Fix Released
Undecided
Zhenqiang Chen

Bug Description

gcc-linaro-arm-linux-gnueabihf-4.8-2013.12_linux.tar.gz

------------------ test.c ---------------------
extern void baz(int);

static int i;

void bar()
{
    baz(i);
}
--------------------------------------------------
$ arm-linux-gnieabihf-gcc -O2 -g -mapcs-frame -fno-omit-frame-pointer -marm -c test.c
test.c: In function 'bar':
test.c:8:1: internal Conpiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078
 }
 ^
no stack trace because unwind library not available

Revision history for this message
Zhenqiang Chen (zhenqiang-chen) wrote :

Thanks for the bug report.

The root cause for the issue is that when enabling shrink-wrap I add some CFA_ADJUST_CFA note to make the dwarf info check work. But for APCS_FRAME, dwarf info is not fully updated.

I am fixing it. To workaround it, remove option "-g".

Changed in gcc-linaro:
status: New → In Progress
assignee: nobody → Zhenqiang Chen (zhenqiang-chen)
Changed in gcc-linaro:
milestone: none → 4.8-2014.04
status: In Progress → Fix Committed
Yvan Roux (yvan-roux)
Changed in gcc-linaro:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.