[llvm-bugs] [Bug 42345] New: DW_TAG_label for asm can have wrong source location

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 20 11:39:55 PDT 2019


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

            Bug ID: 42345
           Summary: DW_TAG_label for asm can have wrong source location
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MC
          Assignee: unassignedbugs at nondot.org
          Reporter: paul_robinson at playstation.sony.com
                CC: llvm-bugs at lists.llvm.org

Noticed in passing while messing with other debug-info stuff lately:

For compiling a .s file with the -g option, we emit DW_TAG_label entries
for labels in the assembler source. The source locations for these will
always use the physical line in the .s file for DW_AT_decl_line, even if
there are #line directives in the file.  When we produce the .debug_line
section (implicit .loc directives) we use the info from #line if it's there.

This is easily seen if you look at llvm/test/MC/ELF/debug-hash-file.s
where the label's DW_AT_decl_file uses the filespec from the #line but
the DW_AT_decl_line is from the physical file.

-- 
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/20190620/75d6bc7f/attachment.html>


More information about the llvm-bugs mailing list