From af5fd6a4d5db63a2b064ffa0e82e541c1cff2e7c Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Fri, 22 Aug 2014 19:29:30 +0000 Subject: Fix PR17239 by changing the semantics of the RemainingArgsClass Option kind This patch aims at fixing PR17239. This bug happens because the /link (clang-cl.exe argument) is marked as "consume all remaining arguments". However, when inside a response file, /link should only consume all remaining arguments inside the response file where it is located, not the entire command line after expansion. The LLVM side of the patch will change the semantics of the RemainingArgsClass kind to always consume only until the end of the response file when the option originally came from a response file. There are only two options in this class: dash dash (--) and /link. This is the Clang side of the patch in http://reviews.llvm.org/D4899 Reviewered By: rafael, rnk Differential Revision: http://reviews.llvm.org/D4900 Patch by Rafael Auler! llvm-svn: 216281 --- clang/test/Driver/cc1-response-files.c | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 clang/test/Driver/cc1-response-files.c (limited to 'clang/test/Driver/cc1-response-files.c') diff --git a/clang/test/Driver/cc1-response-files.c b/clang/test/Driver/cc1-response-files.c new file mode 100644 index 00000000000..f47e6448a6c --- /dev/null +++ b/clang/test/Driver/cc1-response-files.c @@ -0,0 +1,2 @@ +// RUN: %clang @%S/Inputs/cc1-response.txt -fsyntax-only -disable-llvm-optzns +int main() {} -- cgit v1.2.3