[LLVMbugs] [Bug 21362] New: clang emits <stdin> pseudo-filename in dependency files

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Oct 23 12:33:22 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: roland at hack.frob.com
                CC: dschuff at google.com, kcc at google.com,
                    llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141023/3453287f/attachment.html>


More information about the llvm-bugs mailing list