summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver
Commit message (Collapse)AuthorAgeFilesLines
* Add support for dynamic ASan runtime (on Linux) to Clang driver.Alexey Samsonov2014-04-011-1/+34
| | | | | | Based on http://llvm-reviews.chandlerc.com/D3043 by Yuri Gribov! llvm-svn: 205310
* Fix up compression related test casesDavid Blaikie2014-04-013-9/+13
| | | | | | | | | Fallout from r205261, ensure it doesn't matter how we disable compressed debug info, even if zlib is missing and that we warn when we don't have zlib and don't warn when we do, all while silently suppressing these tests on the systems they weren't intended for... llvm-svn: 205271
* Warn when requesting compress-debug-sections and zlib is not availableDavid Blaikie2014-03-311-0/+4
| | | | | | | Another shot in the dark, since I do have zlib installed. Will be watching the bots for fallout. llvm-svn: 205265
* Remove unused diagnostic + dead test for it.Benjamin Kramer2014-03-311-5/+0
| | | | llvm-svn: 205220
* ARM64: initial clang support commit.Tim Northover2014-03-294-0/+33
| | | | | | | | | | | This adds Clang support for the ARM64 backend. There are definitely still some rough edges, so please bring up any issues you see with this patch. As with the LLVM commit though, we think it'll be more useful for merging with AArch64 from within the tree. llvm-svn: 205100
* 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
* Revert "Link in profile library on Linux using --whole-archive"Duncan P. N. Exon Smith2014-03-281-5/+2
| | | | | | This reverts commit r205012. llvm-svn: 205022
* Link in profile library on Linux using --whole-archiveAlexey Samsonov2014-03-281-2/+5
| | | | llvm-svn: 205012
* Add ARM big endian Target (armeb, thumbeb)Christian Pirker2014-03-281-0/+51
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D3096 llvm-svn: 205008
* Use the new Windows environment for target detectionSaleem Abdulrasool2014-03-271-1/+1
| | | | | | | | | This follows the LLVM change to canonicalise the Windows target triple spellings. Rather than treating each Windows environment as a single entity, the environments are now modelled properly as an environment. This is a mechanical change to convert the triple use to reflect that change. llvm-svn: 204978
* Support for -Wa,-compress-debug-sections.David Blaikie2014-03-271-6/+3
| | | | | | Also, while I'm here, support -nocompress-debug-sections too. llvm-svn: 204959
* ARM: be more flexible about how --mhwdiv is accepted.Tim Northover2014-03-261-0/+5
| | | | | | Patch by Gabor Ballabas. llvm-svn: 204807
* Fix an logic error in the clang driver preventing crtfastmath.o from linking ↵Benjamin Kramer2014-03-251-1/+22
| | | | | | | | | | | | | | when -Ofast is used without -ffast-math In gcc using -Ofast forces linking of crtfastmath.o. In the current clang crtfastmath.o is only linked when -ffast-math/-funsafe-math-optimizations passed. It can lead to performance issues, when using only -Ofast without explicit -ffast-math (I faced with it). My patch fixes inconsistency with gcc behaviour and also introduces few tests on it. Patch by Zinovy Nis! Differential Revision: http://llvm-reviews.chandlerc.com/D3114 llvm-svn: 204742
* clang-cl: make /Gy imply -fdata-sections in addition to -ffunction-sectionsHans Wennborg2014-03-251-0/+2
| | | | llvm-svn: 204736
* clang-cl: Forward /Gy or /Gy- when falling back to cl.exeHans Wennborg2014-03-251-2/+4
| | | | llvm-svn: 204723
* Update the parameters passed to the assembler and linker forWill Schmidt2014-03-241-0/+18
| | | | | | | | | | the PPC64LE target. Specifically: (assembler) adds/uses -mppc64 -mlittle-endian (linker) adds/uses elf64lppc Testcase included. llvm-svn: 204626
* 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
* Kill deprecated -fbounds-checking flagAlexey Samsonov2014-03-212-14/+3
| | | | llvm-svn: 204436
* [msan] -fsanitize-memory-track-origins=[level] flag and docs.Evgeniy Stepanov2014-03-201-2/+21
| | | | | | | | | This change turns -fsanitize-memory-track-origins into -fsanitize-memory-track-origins=[level] flag (keeping the old one for compatibility). Possible levels are 0 (off), 1 (default) and 2 (incredibly detailed). See docs (part of this patch) for more info. llvm-svn: 204346
* Kill -faddress-sanitizer, -fthread-sanitizer and -fcatch-undefined-behavior ↵Alexey Samsonov2014-03-203-24/+7
| | | | | | | | | flags. These flags are deprecated since at least Clang 3.3. Users should instead use -fsanitize= with appropriate values. llvm-svn: 204330
* clang/test/Driver/sanitizer-ld.c: Tweak to accept dos path.NAKAMURA Takumi2014-03-181-1/+1
| | | | llvm-svn: 204138
* Add support for sanitizers arguments on FreeBSDViktor Kutuzov2014-03-181-0/+23
| | | | llvm-svn: 204129
* AArch64_be specific clang target settingsChristian Pirker2014-03-141-0/+10
| | | | llvm-svn: 203918
* [Modules] Emit the module file paths as dependencies of the PCH when we are ↵Argyrios Kyrtzidis2014-03-141-0/+10
| | | | | | | | | | | building one. This is because the PCH is tied to the module files, if one of the module files changes or gets removed the build system should re-build the PCH file. rdar://16321245 llvm-svn: 203885
* Always use --eh-frame-hdr on NetBSD, even for -static.Joerg Sonnenberger2014-03-131-10/+10
| | | | llvm-svn: 203742
* Add an option -fmodules-validate-system-headersBen Langmuir2014-03-121-0/+5
| | | | | | | | When enabled, always validate the system headers when loading a module. The end result of this is that when these headers change, we will notice and rebuild the module. llvm-svn: 203630
* Driver: Support -gmlt as an alias for -gline-tables-onlyDavid Blaikie2014-03-111-0/+2
| | | | llvm-svn: 203603
* [Mips] Check all MIPS toolchains to find the one that best meets commandSimon Atanasyan2014-03-0416-0/+28
| | | | | | | | | | line arguments and directories tree. The old toolchain selection heuristics worked incorrectly when user has a reduced MIPS toolchain supports the O32 ABI only. Patch reviewed by Jonathan Roelofs, David Majnemer. llvm-svn: 202873
* Update tests for addition of patch level to LLVM versionTom Stellard2014-03-031-9/+9
| | | | llvm-svn: 202721
* Add support for OpenBSD SPARC assembler.Rafael Espindola2014-02-281-0/+6
| | | | | | Patch by Brad Smith. llvm-svn: 202462
* Add -mcrbits/-mno-crbits to control the PowerPC CR-bit-tracking featureHal Finkel2014-02-281-0/+6
| | | | | | | The backend currently enables CR-bit tracking by default at -O2 and higher. These flags allow the user to override that default. llvm-svn: 202453
* Pass the sparc architecture variant to the assembler.Roman Divacky2014-02-251-0/+1
| | | | llvm-svn: 202179
* 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
* Give sparcv9 the ability to set the target cpu. Change it from acceptingRoman Divacky2014-02-251-7/+11
| | | | | | | -march which doesnt exist on sparc gcc to -mcpu. While here adjust a few tests to not write an unused temporary file. llvm-svn: 202177
* Add a driver option -ivfsoverlayBen Langmuir2014-02-251-0/+5
| | | | | | | Reads the description of a virtual filesystem from a file and overlays it over the real file system. llvm-svn: 202176
* Respect ToolChain::isPIEDefault() in constructing link job on Linux and FreeBSD.Alexey Samsonov2014-02-251-0/+2
| | | | | | Partially based on http://llvm-reviews.chandlerc.com/D2644 by Viktor Kutuzov. llvm-svn: 202150
* Suppress clang/test/Driver/clang_f_opts.c for targeting cygming since ↵NAKAMURA Takumi2014-02-251-0/+2
| | | | | | r202058 is incompatible to gcc driver. llvm-svn: 202093
* Implement -fno-short-wcharRichard Barton2014-02-241-0/+7
| | | | llvm-svn: 202058
* Add driver test for multiple preprocessor inputsAlp Toker2014-02-242-2/+8
| | | | | | | | | Fix an unintentional stdin read in the darwin-asan-nofortify.c test and replace it with an explicit test for multiple -E inputs passed to the driver. Noticed while working on the in-process driver patch. llvm-svn: 202007
* clang: add -f{no-,}integrate-as as consistent parametersSaleem Abdulrasool2014-02-231-0/+11
| | | | | | | | The integrated assembler is a feature. This makes the new flags the default option, and the previous versions aliases. Ideally, at some point the aliases would be entirely removed. llvm-svn: 201963
* Remove support for the QA_OVERRIDE_GCC3_OPTIONS environment variable.Bob Wilson2014-02-231-2/+0
| | | | | | | | | | In r199283 I switched the name of this variable to CCC_OVERRIDE_OPTIONS, but I kept some code to continue recognizing the old name temporarily. As far as I know, the only use of this was for some internal testing at Apple, and we've now switched to use the new name. If anyone else is still using this and needs more time to switch names, I guess we'll find out! <rdar://problem/15821425> llvm-svn: 201962
* clang: forward -no-integrated-as from the driverSaleem Abdulrasool2014-02-221-0/+19
| | | | | | | | | | | | | | Forward the -no-integrated-as option to -cc1 rather than simply invoking the appropriate tool. This is useful since this option has been overloaded to permit disabling of parsing inline assembly at the MC layer. This re-applies the previous version of the patch with a renaming of the driver option to the public name rather than the internal name (-target vs -triple). The actual failure is fixed separately of an overly aggressive negative pattern match in the MIPS driver tests. It also fixes the incorrect test for targets that have the integrated assembler disabled by default. llvm-svn: 201960
* test: fix MIPS driver testsSaleem Abdulrasool2014-02-221-7/+7
| | | | | | | | | | The tests attempt to validate the invocation of the assembler program with the integrated assembler disabled. However, the match pattern for the negative tests are lax and will match both the driver invocation as well as the assembler invocation. Make the tests more strict by ensuring that we only match the assembler invocation. llvm-svn: 201959
* Revert "clang: forward -no-integrated-as from the driver"Saleem Abdulrasool2014-02-221-19/+0
| | | | | | This seems to break a MIPS test. Revert until I figure out the root cause. llvm-svn: 201954
* clang: forward -no-integrated-as from the driverSaleem Abdulrasool2014-02-221-0/+19
| | | | | | | | Forward the -no-integrated-as option to -cc1 rather than simply invoking the appropriate tool. This is useful since this option has been overloaded to permit disabling of parsing inline assembly at the MC layer. llvm-svn: 201952
* Default to ARMv5e for NetBSD/EABI, ARMv4 for APCS.Joerg Sonnenberger2014-02-211-10/+21
| | | | llvm-svn: 201894
* Add support for FPv4-SP to the clang driverOliver Stannard2014-02-211-0/+8
| | | | | | | | | | | | | Added two new options for -mfpu when targetting ARM: * fpv4-sp-d16 * fp4-sp-d16 The first is the same spelling as gcc. The lack of a leading `v' is correct, this is consistent with ARM's documentation and gcc's spelling of the option. llvm-svn: 201846
* Fix an assertion failure when invoking dsymutil.Bob Wilson2014-02-211-0/+3
| | | | | | | | | There is no bound architecture for the dsymutil action in the driver. Trying to check various properties of the target will cause an assertion failure because the target doesn't get initialized without a bound architecture. <rdar://problem/16111555> llvm-svn: 201830
* Get rid of obsolete addProfileRT(), generalize the relevant ↵Alexey Samsonov2014-02-201-0/+9
| | | | | | addProfileRTLinux() to all OS llvm-svn: 201789
OpenPOWER on IntegriCloud