<html>
<head>
<base href="http://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 --- - clang emits <stdin> pseudo-filename in dependency files"
href="http://llvm.org/bugs/show_bug.cgi?id=21362">21362</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>clang emits <stdin> pseudo-filename in dependency files
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</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>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>roland@hack.frob.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dschuff@google.com, kcc@google.com, llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>When generating dependency files, only actual file names should be emitted.
Clang emits the "<stdin>" token in dependency files when compiling "-x c -".
That non-filename should only be used in error messages, not in places where an
actual file name is mandatory.
clang version 3.6.0 (218707)
Target: x86_64-unknown-linux-gnu
$ echo 'void foo (void) {}' | clang -c -o foo.o -x c - -MD -MP -MF foo.o.d -MT
foo.o
$ cat foo.o.d
foo.o: <stdin>
$ echo 'void foo (void) {}' | gcc -c -o foo.o -x c - -MD -MP -MF foo.o.d -MT
foo.o
$ cat foo.o.d
foo.o: /usr/include/stdc-predef.h
/usr/include/stdc-predef.h:
$</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>