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: unassignedb...@nondot.org
Reporter: lab...@google.com
CC: cmt...@google.com, echri...@gmail.com,
jdevliegh...@apple.com, keith.wal...@arm.com,
llvm-bugs@lists.llvm.org,
paul_robin...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs