summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* Don't reduce the stack protector level given -fstack-protector.Rafael Espindola2014-05-221-3/+4
| | | | | | | | | Before -fstack-protector would always force a level of 1, even if the default was 2. Patch by Brad Smith. llvm-svn: 209479
* Unify the name of compiler-rt builtins library on Linux.Alexey Samsonov2014-05-221-3/+4
| | | | | | | | | | Call it "libclang_rt.builtins-<arch>.a" to be consistent with sanitizers/profile libraries naming. Modify Makefile and CMake build systems and Clang driver accordingly. Fixes PR19822. llvm-svn: 209474
* MachO: look for nearby tools on all MachO platforms.Tim Northover2014-05-221-8/+8
| | | | | | | | | | | | | This brings "-arch armv7m" (etc) behaviour more in line with what's expected for developers on OS X, and allows Clang to find an "ld" (for example) in the same directory instead of using the default /usr/bin/ld. Unfortunately no test because it relies on the specific place Clang is running from. rdar://problem/16427320 llvm-svn: 209437
* Revert "TMP"Tim Northover2014-05-221-8/+8
| | | | | | This reverts r209433. Sorry about that, it needs a test & better message. llvm-svn: 209435
* MachO: perform ARM ABI detection even for non-Darwin triples.Tim Northover2014-05-221-1/+1
| | | | | | | | When "-arch armv7m" is specified, we want "aapcs", for example. rdar://problem/16581138 llvm-svn: 209434
* TMPTim Northover2014-05-221-8/+8
| | | | llvm-svn: 209433
* Use stack protector strong by default on OpenBSD.Rafael Espindola2014-05-221-1/+1
| | | | | | | | | Use stack protector strong by default to match the base OS and ports/packages compiler policy. Patch by Brad Smith. llvm-svn: 209432
* Pass -gdwarf-N options to integrated assemblerOliver Stannard2014-05-191-0/+9
| | | | llvm-svn: 209124
* Driver: force restricted IT blocks for Windows on ARMSaleem Abdulrasool2014-05-181-0/+5
| | | | | | | Windows on ARM expects ARMv8 (restricted IT) conditional instructions only. Force enable the restricted IT mode via the backend option when targeting WoA. llvm-svn: 209086
* [C++11] Use 'nullptr'. Driver edition.Craig Topper2014-05-177-66/+69
| | | | llvm-svn: 209069
* InstrProf: Look for the PIC-version of the profile runtimeDuncan P. N. Exon Smith2014-05-161-1/+8
| | | | | | | | If `-shared` is specified, pull in a PIC-version of the profile runtime, which was added to compiler-rt in r208947. I'm hoping this will get the bots on my side. llvm-svn: 208948
* Eliminate DefaultImageName from the Driver constructorAlp Toker2014-05-151-2/+1
| | | | | | | | | | | | All callers were passing in "a.out" or garbage so a sensible default works fine here as a cleanup. This also brings about the possibility of adapting the value based on the driver's compatibility mode in future. The setting can still be changed via Driver::DefaultImageName as needed. llvm-svn: 208926
* clang-cl: Fall back immediately if /GR and /fallback were both passedReid Kleckner2014-05-141-1/+9
| | | | | | | None of our tests use /fallback, so this lets us gradually add RTTI support without breaking projects using /fallback. llvm-svn: 208787
* Support -masm= flag for x86 targets.Nico Weber2014-05-131-0/+11
| | | | | | | `clang -S -o - file.c -masm=att` will write assembly to stdout in at&t syntax (the default), `-masm=intel` will instead output intel style asm. llvm-svn: 208683
* [ASan] Fixup for r208610: link in asan_cxx library on WindowsAlexey Samsonov2014-05-121-6/+14
| | | | llvm-svn: 208625
* [ASan] Split static ASan runtime in two parts: asan and asan_cxx.Alexey Samsonov2014-05-121-6/+11
| | | | | | | | | | | asan_cxx containts replacements for new/delete operators, and should only be linked in C++ mode. We plan to start building this part with exception support to make new more standard-compliant. See https://code.google.com/p/address-sanitizer/issues/detail?id=295 for more details. llvm-svn: 208610
* [Driver] Do not lose already detected set of toolchain's multilibs whileSimon Atanasyan2014-05-122-33/+41
| | | | | | | | | | | | | | | | | iterating over different library path suffixes and different library versions. To find the most appropriate library for the given command line flags we iterate over a set of disk paths. Before probe each path the already detected set of multilibs are cleared. If the set of paths contains existing paths which do not satisfy command line flags or do not contain necessary libraries and object files at all we might lose found multilibs. The patch updates variables which hold detected multilibs if we really find a new multilib matches command line flags. The patch reviewed by Jon Roelofs. llvm-svn: 208523
* Driver: Don't leak the -Xarch argument when its use is incorrect.Nico Weber2014-05-111-2/+2
| | | | | | | (LLVM's lib/Option looks like it might appreciate being hit with the std::unique_ptr stick.) llvm-svn: 208505
* Wrap at 80 columns. No code change.Nico Weber2014-05-111-7/+13
| | | | llvm-svn: 208485
* [Driver] Range-based loop simplification.Simon Atanasyan2014-05-082-64/+34
| | | | llvm-svn: 208354
* [mips] Pass nan2008 info to the back-end.Matheus Almeida2014-05-071-1/+7
| | | | | | | | | | | | Summary: The initial support for NaN2008 was added to the back-end in r206396. Reviewers: atanasyan Reviewed By: atanasyan Differential Revision: http://reviews.llvm.org/D3448 llvm-svn: 208220
* Drop libgcc and default to libc++ for NetBSD/ARM on 6.99.40+.Joerg Sonnenberger2014-05-072-2/+10
| | | | | | | Don't bother with keeping the old support for x86_64 in 6.99.23+, just use a single range. Update test cases for the always-on --eh-frame-hdr. llvm-svn: 208170
* Also recognize Big Endian ARM variants.Joerg Sonnenberger2014-05-071-0/+2
| | | | llvm-svn: 208169
* Add driver support for AArch64 Fedora.Tilmann Scheller2014-05-061-2/+3
| | | | | | Reviewed by Eric Christopher. llvm-svn: 208105
* [PATCH] [ARM64] Enable alignment control option in front-end for ARM64.Kevin Qin2014-05-061-2/+10
| | | | | | | This patch is to get "-mno-unaligned-access" and "-munaligned-access" work in front-end for ARM64 target. llvm-svn: 208075
* Driver: Recognize CentOS 6 as RHEL 6.Benjamin Kramer2014-05-051-11/+9
| | | | | | Patch by Dimitry Andric! llvm-svn: 207963
* Simplify getARMCPUForMArch() and make it more consistentChristian Pirker2014-05-051-53/+39
| | | | llvm-svn: 207956
* Fix clang-cl Driver leakHans Wennborg2014-05-021-2/+3
| | | | | | | We were synthesizing new arguments from e.g. '/Tcfile.c' arguments, but didn't handle ownership correctly. llvm-svn: 207880
* [driver] Enable the slp vectorizer at -Oz.Chad Rosier2014-05-021-6/+8
| | | | | | PR19568 llvm-svn: 207858
* [ARM64/AArch64] Hook up CRC32 subtarget feature to the driverBradley Smith2014-05-021-0/+9
| | | | llvm-svn: 207841
* XCore target: fix handling of -g0 flagRobert Lytton2014-05-021-2/+3
| | | | llvm-svn: 207833
* Bitrig's standard C++ standard library changed from libstdc++ to libc++.Richard Smith2014-05-012-4/+19
| | | | | | | Also, it uses libc++abi and needs pthread. While there, fix the libc++ include path. Patch by Patrick Wildt! llvm-svn: 207813
* Android uses -fpic for arm64 as well.Logan Chien2014-04-301-0/+1
| | | | llvm-svn: 207642
* Drop non-cfi assembly support from clang.Rafael Espindola2014-04-301-16/+0
| | | | | | | | | | | | | | After this patch clang will ignore -fdwarf2-cfi-asm and -ffno-dwarf2-cfi-asm and always print assembly that uses cfi directives. In llvm, MC itself supports cfi since the end of 2010 (support started in r119972, is reported in the 2.9 release notes). In binutils the support has been around for much longer. It looks like support started to be added in May 2003. It is available in 2.15 (31-Aug-2011, 2.14 is from 12-Jun-2003). llvm-svn: 207602
* Android uses -fpic for aarch64.Logan Chien2014-04-291-0/+1
| | | | llvm-svn: 207567
* Add comments regarding isPIEDefault usage for r207520Alexey Volkov2014-04-291-0/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D2668 llvm-svn: 207521
* Pass -pie to linker when generating executable on AndroidAlexey Volkov2014-04-291-1/+4
| | | | | | | | This fixes problem with LTO on Android. Differential Revision: http://reviews.llvm.org/D2668 llvm-svn: 207520
* When Driver::generateCompilationDiagnostics is filtering the list ofPaul Robinson2014-04-281-3/+4
| | | | | | | inputs to the preprocessor, check for invalid types first because not all linker inputs have an option value to retrieve. llvm-svn: 207454
* [driver] Disable the slp vectorizer at -O0, -O1, and -Oz. This mirrors theChad Rosier2014-04-281-3/+5
| | | | | | | | behavior of the loop vectorizer, which is enabled at -O2, -O3, -O4, -Ofast and -Os. PR19568 llvm-svn: 207433
* clang-cl: /fallback only applies to C or C++ filesHans Wennborg2014-04-251-1/+2
| | | | | | We would previously hit an assert if using /fallback with an .ll file. llvm-svn: 207234
* clang-cl: pass -debug flag to the linker when compiling with debug infoHans Wennborg2014-04-251-0/+4
| | | | llvm-svn: 207233
* Revert "Reland r206934 with a hopefully fixed test"Rafael Espindola2014-04-251-1/+1
| | | | | | | This reverts commit r207155. The test was still failing. llvm-svn: 207225
* Reland r206934 with a hopefully fixed testReid Kleckner2014-04-241-1/+1
| | | | llvm-svn: 207155
* Add aarch64-linux-android triple for Android.Logan Chien2014-04-231-1/+2
| | | | llvm-svn: 206979
* This reverts commit r206934 and r206935.Rafael Espindola2014-04-231-1/+1
| | | | | | | | | | The original messages were: "Driver: Honor %INCLUDE% when built with MinGW" "Add missing test triples" The test was still failing on OS X. llvm-svn: 206973
* Driver: Honor %INCLUDE% when built with MinGWReid Kleckner2014-04-231-1/+1
| | | | | | | | | | | Users are expected to pass system includes through the INCLUDE environment variable on Windows. There's no reason to change behavior based on the toolchain used to build Clang. I didn't change the registry searching code because I'm not sure it builds with mingw and I'm not set up to test it. llvm-svn: 206934
* Driver: Avoid a duplicate path separator and clean up codeReid Kleckner2014-04-231-17/+19
| | | | llvm-svn: 206933
* Driver: Skip the -fmodules-cache-path argument in driver crash diagsJustin Bogner2014-04-221-1/+2
| | | | | | | The modules cache path shouldn't be included in crash reports, as it's a system (or run) specific directory. llvm-svn: 206922
* [ARM64] Plumb in big-endian - add arm64_be to the many switches where it was ↵James Molloy2014-04-173-3/+17
| | | | | | missing. llvm-svn: 206462
* [ARM64] Default to the 'generic' CPU, unless -arch is present for backwards ↵James Molloy2014-04-171-2/+6
| | | | | | compatibility. llvm-svn: 206461
OpenPOWER on IntegriCloud