summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/cl-outputs.c
Commit message (Collapse)AuthorAgeFilesLines
* Driver must return non-zero code on errors in command lineSerge Pavlov2017-05-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is recommit of r302775, reverted in r302777 due to a fail in clang-tidy. Original mesage is below. Now if clang driver is given wrong arguments, in some cases it continues execution and returns zero code. This change fixes this behavior. The fix revealed some errors in clang test set. File test/Driver/gfortran.f90 added in r118203 checks forwarding gfortran flags to GCC. Now driver reports error on this file, because the option -working-directory implemented in clang differs from the option with the same name implemented in gfortran, in clang the option requires argument, in gfortran does not. In the file test/Driver/arm-darwin-builtin.c clang is called with options -fbuiltin-strcat and -fbuiltin-strcpy. These option were removed in r191435 and now clang reports error on this test. File arm-default-build-attributes.s uses option -verify, which is not supported by driver, it is cc1 option. Similarly, the file split-debug.h uses options -fmodules-embed-all-files and -fmodule-format=obj, which are not supported by driver. Other revealed errors are mainly mistypes. Differential Revision: https://reviews.llvm.org/D33013 llvm-svn: 303756
* Reverted r302775Serge Pavlov2017-05-111-2/+2
| | | | llvm-svn: 302777
* Driver must return non-zero code on errors in command lineSerge Pavlov2017-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now if clang driver is given wrong arguments, in some cases it continues execution and returns zero code. This change fixes this behavior. The fix revealed some errors in clang test set. File test/Driver/gfortran.f90 added in r118203 checks forwarding gfortran flags to GCC. Now driver reports error on this file, because the option -working-directory implemented in clang differs from the option with the same name implemented in gfortran, in clang the option requires argument, in gfortran does not. In the file test/Driver/arm-darwin-builtin.c clang is called with options -fbuiltin-strcat and -fbuiltin-strcpy. These option were removed in r191435 and now clang reports error on this test. File arm-default-build-attributes.s uses option -verify, which is not supported by driver, it is cc1 option. Similarly, the file split-debug.h uses options -fmodules-embed-all-files and -fmodule-format=obj, which are not supported by driver. Other revealed errors are mainly mistypes. Differential Revision: https://reviews.llvm.org/D33013 llvm-svn: 302775
* clang-cl: Make /Fo apply also when using -fltoHans Wennborg2016-10-041-0/+1
| | | | llvm-svn: 283258
* clang-cl: Use the .obj file extension also in LTO modeHans Wennborg2016-10-041-0/+1
| | | | llvm-svn: 283257
* Erase REQUIRES: shell-preserves-root from remaining tests, see r242312.þYaron Keren2015-07-151-3/+0
| | | | llvm-svn: 242323
* Revert r239213: "clang-cl: Implement /GL in terms of -flto."Hans Wennborg2015-06-131-6/+0
| | | | | | | Reverting until it's easier to use this in a real-world build, e.g. when the linker can handle it. llvm-svn: 239656
* clang-cl: Ignore the /o option when /P is specified.Greg Bedwell2015-06-091-13/+6
| | | | | | | | | This matches the cl.exe behavior (tested with 18.00.31101). In order to specify an output file for /P, use the /Fi option instead. Differential Revision: http://reviews.llvm.org/D10313 llvm-svn: 239393
* clang-cl: Implement /GL in terms of -flto.Peter Collingbourne2015-06-061-0/+6
| | | | | | | | No documentation yet; the linker needs more work. Differential Revision: http://reviews.llvm.org/D10270 llvm-svn: 239213
* clang-cl: Allow /Fo without an argument (PR21589)Hans Wennborg2014-11-171-6/+15
| | | | | | | | | | When it's used without an argument, the default file name is used. The same goes for /Fe. Also, allow using /Fo, /Fa and /Fe with multiple inputs if they don't have an argument. llvm-svn: 222164
* test/Driver/cl-outputs.c: tweak some check prefixes; NFC.Hans Wennborg2014-11-171-26/+26
| | | | | | These tests deal with the /o option; rename to better reflect that. llvm-svn: 222157
* clang-cl: Add support for the /o option for object files, executables, and ↵Ehsan Akhgari2014-09-111-0/+147
| | | | | | | | | | | | | | | | | | | | | | | | | preprocessor output Summary: cl.exe recognizes /o as a deprecated and undocumented option similar to /Fe. This patch adds support for this option to clang-cl for /Fe, /Fo and /Fi. It also ensures that the last option among /o and /F* wins, if both specified. This is required at least for building autoconf based software, since autoconf uses -o to specify the executable output. This fixes http://llvm.org/PR20894. Test Plan: The patch includes automated tests. Reviewers: rnk Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5308 llvm-svn: 217615
* Add support for the /Fi argument to clang-cl (PR20036)Hans Wennborg2014-06-171-0/+8
| | | | | | | | Patch by Ehsan Akhgari! Differential Revision: http://reviews.llvm.org/D4143 llvm-svn: 211081
* clang-cl: Support /P and /E (preprocess to file or stdout)Hans Wennborg2013-12-201-0/+4
| | | | llvm-svn: 197827
* clang-cl: diagnose setting asm listing filename with multiple inputsHans Wennborg2013-10-181-0/+2
| | | | llvm-svn: 193006
* clang-cl: Add support for asm listings (/FA and /Fa)Hans Wennborg2013-10-171-0/+15
| | | | | | | | | | This adds support for outputing the assembly to a file during compilation. It does this by changing the compilation pipeling to not use the integrated assembler, and keep the intermediate assembler file. Differential Revision: http://llvm-reviews.chandlerc.com/D1946 llvm-svn: 192902
* clang-cl: Don't warn about overriding /MD with /MT, /Fo with another /Fo, etc.Hans Wennborg2013-09-181-2/+0
| | | | | | | | | | | | | | | | I put in the warnings because MSVC has them, but I don't think they're very useful. Clang does not warn about overriding flags in general, e.g. it's perfectly fine to have -fomit-frame-pointer followed by -fno-omit-frame-pointer. We should focus on warning where things get confusing, such as with the /TP and /TC options. In "clang-cl /TC a.c /TP b.cc", the user might not realize that the /TP flag will apply to both files, and we warn about that. Differential Revision: http://llvm-reviews.chandlerc.com/D1718 llvm-svn: 190964
* clang-cl: Support building DLLs (PR17083)Hans Wennborg2013-09-101-6/+36
| | | | | | | | This adds driver support for building DLLs (the /LD and /LDd flags). It basically does two things: runtime selection and passing -dll and -implib to the linker. llvm-svn: 190428
* clang-cl: Use .obj as extension for unnamed object files (PR17095)Hans Wennborg2013-09-051-0/+3
| | | | | | | | We already use .obj as extension when the user provides a stem file name (via /Fo), but were failing in the most basic case when the file name is based on the input file. llvm-svn: 190071
* clang-cl: Consolidate tests for /Fo and /Fe into cl-outputs.cHans Wennborg2013-08-121-0/+59
llvm-svn: 188213
OpenPOWER on IntegriCloud