[llvm-bugs] [Bug 29003] New: Wrong .file directive generated by -S
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 16 08:13:24 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=29003
Bug ID: 29003
Summary: Wrong .file directive generated by -S
Product: new-bugs
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: hjl.tools at gmail.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
On Linux, I got
[hjl at gnu-6 tmp]$ cat x.c
void
foo ()
{
}
[hjl at gnu-6 tmp]$ cat y.c
#include "x.c"
[hjl at gnu-6 tmp]$ clang -S -O2 y.c -g
[hjl at gnu-6 tmp]$ gcc -c y.s
y.s: Assembler messages:
y.s:8: Error: junk at end of line, first unrecognized character is `"'
[hjl at gnu-6 tmp]$
The bad line is
.file 1 "." "x.c"
>From GNU assembler manual:
When emitting DWARF2 line number information, '.file' assigns filenames
to the '.debug_line' file name table. The syntax is:
.file FILENO FILENAME
The FILENO operand should be a unique positive integer to use as the
index of the entry in the table. The FILENAME operand is a C string
literal.
--
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/20160816/e339c07a/attachment.html>
More information about the llvm-bugs
mailing list