| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
(It's also allowed with /EP, but we haven't implemented that option yet.)
llvm-svn: 210695
|
|
|
|
|
|
|
| |
MSVC doesn't have an option to enable TBAA, so make -fstrict-aliasing
and -fno-strict-aliasing available in clang-cl.
llvm-svn: 205924
|
|
|
|
|
|
| |
Note that /Gy no longer implies -fdata-sections.
llvm-svn: 205716
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 204736
|
|
|
|
|
|
|
|
|
|
| |
/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
|
|
|
|
|
|
|
|
| |
/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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
This is an undocumented, but reportedly widely used flag.
We don't support it, but should be able to parse it.
llvm-svn: 201588
|
|
|
|
|
|
|
|
|
| |
These flags control the inheritance model initially used by the
translation unit.
Differential Revision: http://llvm-reviews.chandlerc.com/D2741
llvm-svn: 201175
|
|
|
|
|
|
| |
We don't currently support this option, but we should be able to parse it.
llvm-svn: 199787
|
|
|
|
| |
llvm-svn: 197827
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 194523
|
|
|
|
| |
llvm-svn: 194502
|
|
|
|
|
|
| |
We don't support these options, but should at least parse them.
llvm-svn: 193702
|
|
|
|
|
|
| |
Patch by Jeff Muizelaar.
llvm-svn: 193642
|
|
|
|
| |
llvm-svn: 192465
|
|
|
|
|
|
| |
This was just broken.
llvm-svn: 192405
|
|
|
|
|
|
| |
And add a test to check that they work.
llvm-svn: 192402
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Patch by Jeff Muizelaar, with added test case.
llvm-svn: 191442
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 190832
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
We previously ignored /wd<n>, but I think we can ignore the rest too.
llvm-svn: 190819
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
it works in the CL flavor driver.
llvm-svn: 190040
|
|
|
|
| |
llvm-svn: 189882
|
|
|
|
|
|
| |
been working since r188331.
llvm-svn: 188790
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 188685
|
|
|
|
| |
llvm-svn: 188126
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Differential Revision: http://llvm-reviews.chandlerc.com/D1328
llvm-svn: 188027
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
> 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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
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
|