<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Wrong .file directive generated by -S"
href="https://llvm.org/bugs/show_bug.cgi?id=29003">29003</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Wrong .file directive generated by -S
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>hjl.tools@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>On Linux, I got
[hjl@gnu-6 tmp]$ cat x.c
void
foo ()
{
}
[hjl@gnu-6 tmp]$ cat y.c
#include "x.c"
[hjl@gnu-6 tmp]$ clang -S -O2 y.c -g
[hjl@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@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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>