http://llvm.org/bugs/show_bug.cgi?id=21362
Bug ID: 21362
Summary: clang emits <stdin> pseudo-filename in dependency
files
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
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:
$
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs