summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/cl-options.c
Commit message (Collapse)AuthorAgeFilesLines
...
* clang-cl: accept the /C option with /P (PR19978)Hans Wennborg2014-06-111-2/+9
| | | | | | (It's also allowed with /EP, but we haven't implemented that option yet.) llvm-svn: 210695
* clang-cl: Disable TBAA by default for MSVC compatibilityReid Kleckner2014-04-091-0/+8
| | | | | | | MSVC doesn't have an option to enable TBAA, so make -fstrict-aliasing and -fno-strict-aliasing available in clang-cl. llvm-svn: 205924
* clang-cl: make /Gw map to -fdata-sectionsDavid Majnemer2014-04-071-2/+6
| | | | | | Note that /Gy no longer implies -fdata-sections. llvm-svn: 205716
* Add clang-cl alias to allow users to disable c4005Reid Kleckner2014-04-041-0/+4
| | | | | | | | If we ever want three or more aliases, at that point we should put MSVC warning ids in DiagnosticGroups.td. We can use that to support #pragma warning. llvm-svn: 205598
* Try to fix the cl-options.c test on ARM botsHans Wennborg2014-03-281-5/+7
| | | | | | | | | | | | | | | The test was failing because clang-cl changes the default triple to target MSVC-style Win32. This is kind of wonky, but hasn't been a problem until we started warning: warning: unknown platform, assuming -mfloat-abi=soft Some of the tests in cl-options.c were running with -Werror, causing them to fail. Fixing this by FileCheck-ifying those tests instead of using -Werror. llvm-svn: 205049
* clang-cl: make /Gy imply -fdata-sections in addition to -ffunction-sectionsHans Wennborg2014-03-251-0/+2
| | | | llvm-svn: 204736
* Driver: Map /Gy to -ffunction-sectionsDavid Majnemer2014-03-231-2/+6
| | | | | | | | | | /Gy is equivalent to -ffunction-sections. /Gy- is equivalent to -fno-function-sections. Currently, LLVM doesn't do anything interesting with -ffunction-sections under WinCOFF. llvm-svn: 204564
* Driver: cleanup /vd2 testDavid Majnemer2014-03-231-1/+3
| | | | | | | | /vd2 is not ignored anymore, remove it from the ignored list. Add a test to ensure that it does the right thing. llvm-svn: 204563
* clang-cl: use -fno-rtti by defaultHans Wennborg2014-02-251-0/+6
| | | | | | | Generating RTTI in the MS ABI is currently not supported, and the failures are confusing to users, so let's disable it by default for now. llvm-svn: 202178
* clang-cl: Parse the /d2Zi+ flag (PR18728)Hans Wennborg2014-02-181-0/+1
| | | | | | | This is an undocumented, but reportedly widely used flag. We don't support it, but should be able to parse it. llvm-svn: 201588
* MS ABI: Add support for the -vm{b,g,s,m,v} flagsDavid Majnemer2014-02-111-4/+18
| | | | | | | | | These flags control the inheritance model initially used by the translation unit. Differential Revision: http://llvm-reviews.chandlerc.com/D2741 llvm-svn: 201175
* clang-cl: make /Zp a Joined option (PR18503)Hans Wennborg2014-01-221-0/+1
| | | | | | We don't currently support this option, but we should be able to parse it. llvm-svn: 199787
* clang-cl: Support /P and /E (preprocess to file or stdout)Hans Wennborg2013-12-201-4/+4
| | | | llvm-svn: 197827
* clang-cl: Make the driver parse all(?) msvc flagsHans Wennborg2013-11-151-12/+109
| | | | | | | | | | | Even if we don't support a flag, we should be able to parse it to provide a better error message than the current default "error: no such file or directory: '/foo'" (which we should probably also tweak, btw). This also tries to clean up the test file a bit. llvm-svn: 194837
* clang-cl: parse the /Yc flag (PR17895)Hans Wennborg2013-11-121-1/+1
| | | | llvm-svn: 194523
* clang-cl: parse the /GT optionHans Wennborg2013-11-121-1/+1
| | | | llvm-svn: 194502
* clang-cl: Parse the /arch, /Yu and /Fp options (PR17736)Hans Wennborg2013-10-301-0/+1
| | | | | | We don't support these options, but should at least parse them. llvm-svn: 193702
* Add support for the separate version of /FI.Rafael Espindola2013-10-291-0/+3
| | | | | | Patch by Jeff Muizelaar. llvm-svn: 193642
* clang-cl: Mark /FA and /Fa as unsupported optionsHans Wennborg2013-10-111-0/+1
| | | | llvm-svn: 192465
* clang-cl: simplify the -m32 -m64 testHans Wennborg2013-10-101-4/+1
| | | | | | This was just broken. llvm-svn: 192405
* clang-cl: Expose the -m32 and -m64 command-line optionsHans Wennborg2013-10-101-0/+7
| | | | | | And add a test to check that they work. llvm-svn: 192402
* clang-cl: ignore the /sdl[-] flagHans Wennborg2013-10-081-0/+1
| | | | | | | In cl.exe, this flag turns some warnings into errors and adds some codegen security checks. I don't think we intend to support this. llvm-svn: 192201
* clang-cl: Add /FI (forced include) as an alias for -includeReid Kleckner2013-09-261-3/+6
| | | | | | Patch by Jeff Muizelaar, with added test case. llvm-svn: 191442
* clang-cl: ignore ths /GS- flagHans Wennborg2013-09-171-1/+1
| | | | | | | | The /GS- flag is used to turn off run-time buffer security checks (/GS). Since no such checks are enabled in the first place, I think we should just ignore this flag. llvm-svn: 190900
* cl-options.c just use touch to create that .obj fileHans Wennborg2013-09-171-1/+1
| | | | llvm-svn: 190832
* Fix test/Driver/cl-options.c testHans Wennborg2013-09-171-1/+1
| | | | | | | | | The test builds an object file to be able to get into linking mode with a valid obj file on the command-line. Using clang-cl for this, which targets win32, caused problems on some buildbots, so just use regular clang. llvm-svn: 190829
* clang-cl: ignore compile-only options in link-only invocations.Hans Wennborg2013-09-171-0/+10
| | | | | | | | | | | Previously we would warn about unused arguments such as /MD when linking. Clang already has logic to ignore compile-only options, e.g. for -D and -U. This patch extends that to include clang-cl's compile-only options too. Also, some clang-cl options should always be ignored. Doing this earlier means they get ignored both for compilation and link-only invocations. llvm-svn: 190825
* clang-cl: ignore all /w<foo> optionsHans Wennborg2013-09-161-1/+1
| | | | | | We previously ignored /wd<n>, but I think we can ignore the rest too. llvm-svn: 190819
* clang-cl: parse (but don't support) the /o flagHans Wennborg2013-09-091-0/+1
| | | | | | | | | | | | | | | | Apparently folks run into this (PR17097). The flag is not supported by MSVC either, but we should parse it so we don't get confused when it occurs. This changes the clang-cl output for "clang-cl /c /o foo.obj" from: clang-cl.exe: error: no such file or directory: '/o' clang-cl.exe: error: no such file or directory: 'foo.obj' to: clang-cl.exe: warning: argument unused during compilation: '/o bajs.obj' llvm-svn: 190323
* clang-cl: ignore /RTC options (PR17129)Hans Wennborg2013-09-061-2/+2
| | | | | | | | I don't think Clang intends to implement this functionality. ASan should be used instead. Since /RTC is often passed by default from MSBuild, ignore the option to avoid bloating the output. llvm-svn: 190202
* Support suppressing unused arguments warnings as a core option so thatChandler Carruth2013-09-051-0/+4
| | | | | | it works in the CL flavor driver. llvm-svn: 190040
* clang-cl: Make -W a core option so we can adjust clang warnings.Reid Kleckner2013-09-031-0/+4
| | | | llvm-svn: 189882
* clang/test/Driver/cl-options.c: Remove the feature "clang-driver". It has ↵NAKAMURA Takumi2013-08-201-2/+0
| | | | | | been working since r188331. llvm-svn: 188790
* clang-cl: Ignore the /wd n flag for disabling a warningReid Kleckner2013-08-191-1/+1
| | | | | | | | Clang doesn't have a table mapping cl.exe to clang warnings. While some warnings like -Wsign-compare exist in both compilers, the majority do not correspond and should usually be ignored. llvm-svn: 188732
* clang-cl: Add /MP[n] to the list of unsupported and ignored flagsReid Kleckner2013-08-191-1/+1
| | | | | | | This flag tells cl.exe to use up to n processes to compile the provided source files. I have no plans to implement this in clang. llvm-svn: 188729
* clang-cl: Expose the -Xclang optionHans Wennborg2013-08-191-0/+6
| | | | llvm-svn: 188685
* clang/test/Driver/cl-options.c: Suppress this on cygming due to -fno-builtin.NAKAMURA Takumi2013-08-101-0/+2
| | | | llvm-svn: 188126
* clang-cl: Support /showIncludesHans Wennborg2013-08-091-1/+4
| | | | | | | | | | This option prints information about #included files to stderr. Clang could already do it, this patch just teaches the existing code about the /showIncludes style and adds the flag. Differential Revision: http://llvm-reviews.chandlerc.com/D1333 llvm-svn: 188037
* clang-cl: Map /Oi[-] to -f[no-]builtinHans Wennborg2013-08-081-1/+7
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D1328 llvm-svn: 188027
* clang-cl: Support the run-time selection options (/MD, /MT et al.)Hans Wennborg2013-08-081-1/+1
| | | | | | | | | | | | These flags set some preprocessor macros and injects a dependency on the runtime library into the object file, which later is picked up by the linker. This also adds a new CC1 flag for adding a dependent library. Differential Revision: http://llvm-reviews.chandlerc.com/D1315 llvm-svn: 187945
* clang-cl: Implement support for the /Fo optionHans Wennborg2013-08-061-1/+1
| | | | | | | | | This implements support for the /Fo option, which is used to set the filename or output dir for object files. Differential Revision: http://llvm-reviews.chandlerc.com/D1302 llvm-svn: 187820
* clang-cl: Implement the /Tc, /TC, /Tp and /TP options.Hans Wennborg2013-08-061-1/+1
| | | | | | | | | These are used to specify source files, and whether to treat source files as C or C++. Differential Revision: http://llvm-reviews.chandlerc.com/D1290 llvm-svn: 187760
* Re-commit r187637: "clang-cl: add more options"Hans Wennborg2013-08-021-6/+90
| | | | | | | | | | | | | | > This adds a bunch of options to clang-cl. Notably, this includes > all the options that get passed when doing a default build of a > command-line project with msbuild.exe in Debug and Release modes, > and I believe all flags from Reid's original patch. The original commit was reverted in r187640 after it broke the Mac build. This should now be fixed, by Clang r187668, LLVM r187675, and putting a -- before %s in the test. llvm-svn: 187679
* Revert r187537 "clang-cl: add more options"Hans Wennborg2013-08-021-87/+6
| | | | | | | | | It broke the "phase1 - sanity" buildbot. Reverting until we can figure out what's going on. And Eric says it broke all current Mac builds actually. llvm-svn: 187640
* clang-cl: add more optionsHans Wennborg2013-08-021-6/+87
| | | | | | | | | | | This adds a bunch of options to clang-cl. Notably, this includes all the options that get passed when doing a default build of a command-line project with msbuild.exe in Debug and Release modes, and I believe all flags from Reid's original patch. Differential Revision: http://llvm-reviews.chandlerc.com/D1264 llvm-svn: 187637
* clang-cl: add the /c, /W0 and /W1 optionsHans Wennborg2013-07-311-0/+10
This adds a few more clang-cl options. It also exposes two core clang options to the clang-cl mode: we need to be able to claim --driver_mode so it doesn't show up as unused in cl mode, and we need -### for tests. Differential Revision: http://llvm-reviews.chandlerc.com/D1232 llvm-svn: 187527
OpenPOWER on IntegriCloud