[llvm-bugs] [Bug 38561] New: DWARF CFI assertion for cfi_restores when regnum is out of range.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Aug 14 05:29:57 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38561

            Bug ID: 38561
           Summary: DWARF CFI assertion for cfi_restores when regnum is
                    out of range.
           Product: new-bugs
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: iains-llvm at btconnect.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20712
  --> https://bugs.llvm.org/attachment.cgi?id=20712&action=edit
Use DW_CFA_restore_extended when needed.

the current code for cfi_restore is not checking the register number (it needs
to fit into 6 bits)

with larger register numbers an assertion is fired when we try to output the
fragment.  it's likely wrong in places for many targets but doesn't fire
because the total size of the integer is < 8b

patch checks the reg number and uses the DW_CFA_restore_extended where needed.

No testsuite changes ( :( )

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180814/421319a3/attachment.html>


More information about the llvm-bugs mailing list