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: unassignedclangb...@nondot.org
          Reporter: richard-l...@metafoo.co.uk
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to