https://sourceware.org/bugzilla/show_bug.cgi?id=31654

            Bug ID: 31654
           Summary: gas: Bad SFrame information when assembling with
                    listing
           Product: binutils
           Version: 2.43 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: jremus at linux dot ibm.com
  Target Milestone: ---

The assembler generates bad SFrame information when assembling the following
CFI directive sequence with option "-Wa,-a" to generate a listing on a SFrame
enabled target that uses FP and RA tracking:

.cfi_offset <fp-regno>, <fp-offset>
.cfi_offset <ra-regno>, <ra-offset> 

This causes multiple SFrame FREs for the same PC start address to be generated.

The reason is that with listings enabled there is an additional DWARF
DW_CFA_advance_loc CFI instruction with zero advance between both DW_CFA_offset
instructions, that the DWARF .eh_frame generator is able to process correctly,
but causes the .sframe generator to choke.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to