[llvm-bugs] [Bug 44210] New: llvm-mc chokes on .file directives generated by clang -S

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 3 09:51:36 PST 2019


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

            Bug ID: 44210
           Summary: llvm-mc chokes on .file directives generated by clang
                    -S
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: labath at google.com
                CC: cmtice at google.com, echristo at gmail.com,
                    jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com

I think this example says it all

=====
$ echo "void foo(){}" > test.c
$ clang -gmlt -gdwarf-5 ./test.c -c -o a.o # everything OK here
$ clang -gmlt -gdwarf-5 ./test.c -S -o - | llvm-mc -filetype=obj -o a.o -
-dwarf-version=5
<stdin>:10:7: error: unassigned file number in '.loc' directive
        .loc    1 1 0                   # ./test.c:1:0
                ^
<stdin>:19:7: error: unassigned file number in '.loc' directive
        .loc    1 1 12 prologue_end     # ./test.c:1:12
=====


This is kind of related to pr44170, as the trigger for it is pretty subtle
(it's the "./" part -- see that bug for details).

-- 
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/20191203/e8c6cfd6/attachment.html>


More information about the llvm-bugs mailing list