http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60264

            Bug ID: 60264
           Summary: ARM ICE in dwarf2out_frame_debug_adjust_cfa, at
                    dwarf2cfi.c:1090
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chrbr at gcc dot gnu.org

Created attachment 32164
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32164&action=edit
testcase

compiling the attached case with 
-O2 -mapcs -mfloat-abi=hard 

we have the epilogue

    fldmfdd    ip!, {d8}    @ 31    *vfp_pop_multiple_with_writeback    [length
= 4] frame_related_p
    sub    sp, fp, #12    @ 33    *arm_addsi3/12    [length = 4]
    ldmia    sp, {fp, sp, lr}    @ 34    *ldm3_ia    [length = 4]
frame_related_p

Notice fldmfdd sets the cfa reg to IP, and the ldmia expects SP. This crashes
with -g on this assertion.

Reply via email to