[llvm-bugs] [Bug 36636] New: Assembling file with debug info does the wrong thing
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Mar 7 11:58:18 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36636
Bug ID: 36636
Summary: Assembling file with debug info does the wrong thing
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
This was given as a reason for reverting r326839:
$ cat q.c
void g() {}
$ clang -S q.c -g
$ clang -g -c q.s
q.s:9:2: error: file number already allocated
.file 1 "/tmp/test" "q.c"
^
However, the behavior without that patch is that the .debug_line section
gives "q.s" as file 1, not "q.c". (using gcc instead of clang here will
put "q.c" in the .debug_line section.) So, LLVM's behavior was broken to
begin with.
--
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/20180307/8ef62826/attachment.html>
More information about the llvm-bugs
mailing list