[llvm-bugs] [Bug 48093] New: --save-temps generates invalid command lines when reading from stdin or files whose names start with hyphens
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Nov 5 17:01:29 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=48093
Bug ID: 48093
Summary: --save-temps generates invalid command lines when
reading from stdin or files whose names start with
hyphens
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
Testcase:
$ echo 'int main() {}' | clang -x c++ - -o tmp.o --save-temps
error: unknown argument: '-.ii'
It looks like the driver is not properly escaping filenames that might be
confused for command-line arguments to subtools.
Similarly:
$ touch -- -.c
$ clang ./-.c --save-temps
error: unknown argument: '-.i'
--
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/20201106/ad5a431e/attachment.html>
More information about the llvm-bugs
mailing list