[LLVMbugs] [Bug 23641] New: Debug info with wrong source line info is written into ELF by llc with options -code-model=large -disable-fp-elim

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 22 13:52:57 PDT 2015


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

            Bug ID: 23641
           Summary: Debug info with wrong source line info is written into
                    ELF by llc with options -code-model=large
                    -disable-fp-elim
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: yuri at tsoft.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 14376
  --> https://llvm.org/bugs/attachment.cgi?id=14376&action=edit
all.ll file

Please run the script 'run' on the attached 'all.ll', and observe in all.asm
how the function _ZN3com4xxxx10HelloWorld4mainEP13Xxxxxxxxxxxxx has a span of
0x0030-0x0044. 

Now observe how the same function is define in line number info in all.dwarf:

> <pc>        [row,col] NS BB ET PE EB IS= DI= uri: "filepath"
> 0x00000010  [  18, 0] NS uri: "/usr/home/xxxx/a/b/a.rr"
> 0x00000014  [  20,20] NS PE
> 0x00000020  [  21, 0] NS
> 0x00000024  [  23,20] NS PE
> 0x00000030  [   8, 0] NS
> 0x00000034  [   0, 5] NS PE
> 0x00000040  [  17,43] NS
> 0x00000044  [  17,43] NS ET

It shows that the same function span is only 0x0030-0x0034, and something else
begins at 0x0040, when 0x0040 is in reality inside of that same function.

-- 
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/20150522/a6b94abb/attachment.html>


More information about the llvm-bugs mailing list