summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAgeFilesLines
* MS ABI: Add support for the -vm{b,g,s,m,v} flagsDavid Majnemer2014-02-111-0/+27
| | | | | | | | | These flags control the inheritance model initially used by the translation unit. Differential Revision: http://llvm-reviews.chandlerc.com/D2741 llvm-svn: 201175
* XCore target: Pass through "-fverbose-asm" flag to xcc assembler.Robert Lytton2014-02-111-0/+3
| | | | llvm-svn: 201141
* [stackprotector] Add command line option -fstack-protector-strongJosh Magee2014-02-111-2/+6
| | | | | | | | | | This option has the following effects: * It adds the sspstrong IR attribute to each function within the CU. * It defines the macro __SSP_STRONG__ with the value of 2. Differential Revision: http://llvm-reviews.chandlerc.com/D2717 llvm-svn: 201120
* Revert r194097: "With this patch -Wwrite-strings is still implemented with ↵Argyrios Kyrtzidis2014-02-071-4/+7
| | | | | | | | | | | | | the terrible hack of passing -fconst-strings to -cc1" Passing or not a language option based on diagnostic settings is a bad idea, it breaks using a PCH that was compiled with different diagnostic settings. Also add a test case to make sure we don't regress. llvm-svn: 200964
* Use correct ld emulation for EABI hardware float triple on NetBSD.Joerg Sonnenberger2014-02-061-2/+4
| | | | llvm-svn: 200946
* Move -verify-pch to use VerifyJobActionBen Langmuir2014-02-061-4/+3
| | | | | | | | | Use the verify hook rather than the compile hook to represent the -verify-pch action, and move the exising --verify-debug-info action into its own subclass of VerifyJobAction. Incidentally change the name printed by -ccc-print-phases for --verify-debug-info. llvm-svn: 200938
* Add a CC1 option -verify-pchBen Langmuir2014-02-051-6/+22
| | | | | | | | | This option will: - load the given pch file - verify it is not out of date by stat'ing dependencies, and - return 0 on success and non-zero on error llvm-svn: 200884
* Fix handling of -fno-function-sections, -fno-data-sections in clang driver.Evgeniy Stepanov2014-02-031-2/+9
| | | | llvm-svn: 200685
* Handle O32/N64 ABIs for NetBSD/MIPS64. From Matt Thomas.Joerg Sonnenberger2014-02-021-0/+16
| | | | llvm-svn: 200668
* Use a switch for the emulation handling.Joerg Sonnenberger2014-02-021-8/+10
| | | | llvm-svn: 200666
* Handle compat support for EABI/old APCS compatibility on NetBSD/ARM.Joerg Sonnenberger2014-02-021-0/+17
| | | | llvm-svn: 200665
* Replace hasMipsN32ABIArg by hasMipsABIArg to make it easier to addJoerg Sonnenberger2014-02-021-8/+8
| | | | | | support for o32 and n64. llvm-svn: 200662
* Pass down -mcpu for external assembler in thumb mode, too. From Matt Thomas.Joerg Sonnenberger2014-02-021-1/+2
| | | | llvm-svn: 200661
* Minor formatting improvement.Joerg Sonnenberger2014-02-021-2/+2
| | | | llvm-svn: 200659
* Revert r200555, r200545.Evgeniy Stepanov2014-02-021-9/+0
| | | | | | | These changes make it impossible to use ARM EHABI for stack unwinding without enabling exceptions and break AddressSanitizer on ARM. llvm-svn: 200627
* Last option on -fexception for arm-disable-ehabiRenato Golin2014-01-311-3/+6
| | | | | | | Previous commit would have a following flag overriding the behaviour and not taken care of. llvm-svn: 200555
* Connect -fno-exceptions to -arm-disable-ehabiRenato Golin2014-01-311-0/+6
| | | | llvm-svn: 200545
* ARM RT libs with generic nameRenato Golin2014-01-311-3/+12
| | | | llvm-svn: 200538
* Make x86 Android default target CPUs compatible with GCC ↵Alexey Bataev2014-01-311-3/+7
| | | | | | (http://llvm-reviews.chandlerc.com/D2655) llvm-svn: 200510
* Turn on PIC by default on Android (http://llvm-reviews.chandlerc.com/D2603)Alexey Bataev2014-01-281-0/+23
| | | | llvm-svn: 200290
* Driver: support -fno-debug-types-section to override -fdebug-types-sectionDavid Blaikie2014-01-271-1/+2
| | | | llvm-svn: 200236
* [Mips] Change default CPU for MIPS 32/64 targets. Now they are ↵Simon Atanasyan2014-01-271-2/+2
| | | | | | mips32r2/mips64r2 respectively. llvm-svn: 200222
* [AArch64] Add -mgeneral_regs_only option.Amara Emerson2014-01-231-4/+6
| | | | llvm-svn: 199904
* MachO embedded: default to soft float without issuing warningTim Northover2014-01-231-0/+4
| | | | | | | | | | | | | This is a simpler rule, broadly in line with previous Darwin (which chose between "soft" and "softfp") but probably safer. In practice the only real reason for "softfp" is ABI compatibility, not usually an issue on limited chips like these, so anyone who wanted hard-float should already be saying so. That's my story and I'm sticking to it. rdar://problem/15887493 llvm-svn: 199896
* Improve x86 android support, add x86_64 android targetAlexey Bataev2014-01-231-4/+7
| | | | llvm-svn: 199875
* Driver: Suppression support for -Wa,--compress-debug-sectionsDavid Blaikie2014-01-221-1/+2
| | | | | | (to go with existing suppression of -Wa,-compress-debug-sections) llvm-svn: 199822
* ObjectiveC driver. reinstate -fno-objc-legacy-dispatch behavior Fariborz Jahanian2014-01-201-3/+4
| | | | | | when the deployment target is 10.5. // rdar://15852259 llvm-svn: 199682
* Driver support for -fdebug-types-sectionsDavid Blaikie2014-01-181-1/+4
| | | | | | | | | Using backend-option like a few other debug codegen flags. I believe Eric Christopher's working at porting those over to something nicer such as an API level CodeGenOptions or the like, so this can be improved along with that work. llvm-svn: 199535
* Use switch statements in preparation for adding more architectures.Joerg Sonnenberger2014-01-181-2/+7
| | | | llvm-svn: 199529
* Driver: Stub -Wa,-compress-debug-sections support for integrated-as with a ↵David Blaikie2014-01-171-0/+12
| | | | | | suppressable warning llvm-svn: 199454
* MachO: use *-*-*-macho for MachO embedded targets.Tim Northover2014-01-161-142/+39
| | | | | | | | | | | | Previously we had bodged together some hacks mapping MachO embedded targets (i.e. mainly ARM v6M and v7M) to the "*-*-darwin-eabi" triple. This is incorrect in both details (they don't run Darwin and they're not EABI in any real sense). This commit appropriates the existing "MachO" environment for the purpose instead. llvm-svn: 199367
* Remove support for armv7f slice. <rdar://problem/12478440>Bob Wilson2014-01-151-4/+2
| | | | | | This was never used for anything so we should just get rid of it. llvm-svn: 199336
* Remove the -cxx-abi command-line flag.Hans Wennborg2014-01-141-4/+0
| | | | | | | | | | | | | | | This makes the C++ ABI depend entirely on the target: MS ABI for -win32 triples, Itanium otherwise. It's no longer possible to do weird combinations. To be able to run a test with a specific ABI without constraining it to a specific triple, new substitutions are added to lit: %itanium_abi_triple and %ms_abi_triple can be used to get the current target triple adjusted to the desired ABI. For example, if the test suite is running with the i686-pc-win32 target, %itanium_abi_triple will expand to i686-pc-mingw32. Differential Revision: http://llvm-reviews.chandlerc.com/D2545 llvm-svn: 199250
* Remove a temporary workaround that is no longer relevant.Bob Wilson2014-01-141-20/+3
| | | | llvm-svn: 199176
* clang-cl: Ignore /fallback when not actually compiling (PR18456)Hans Wennborg2014-01-131-1/+2
| | | | | | For example, don't fall back in /P (preprocess) mode. llvm-svn: 199153
* MIPS and SPARC assemblers both take the -KPIC flag.Jakob Stoklund Olesen2014-01-121-5/+12
| | | | llvm-svn: 199034
* Select the UltraSPARC instruction set when invoking the assembler.Jakob Stoklund Olesen2014-01-111-0/+2
| | | | llvm-svn: 199012
* Use the right dynamic linker for SPARC Linux executables.Jakob Stoklund Olesen2014-01-101-1/+4
| | | | llvm-svn: 198923
* Give the linker the right ELF type for SPARC targets.Jakob Stoklund Olesen2014-01-101-0/+4
| | | | llvm-svn: 198912
* Pass -32/-64 to the assembler when building for sparc/sparc64.Jakob Stoklund Olesen2014-01-101-0/+4
| | | | llvm-svn: 198911
* Sort all the #include lines with LLVM's utils/sort_includes.py whichChandler Carruth2014-01-071-1/+1
| | | | | | | encodes the canonical rules for LLVM's style. I noticed this had drifted quite a bit when cleaning up LLVM, so wanted to clean up Clang as well. llvm-svn: 198686
* Implement a new -fstandalone-debug option. rdar://problem/15685848Adrian Prantl2014-01-071-2/+2
| | | | | | | | | | | | | | It controls everything that -flimit-debug-info used to, plus the vtable type optimization. The old -fno-limit-debug-info option is now an alias to -fstandalone-debug and vice versa. Standalone is the default on Darwin until dtrace is updated to work with non-standalone debug info (rdar://problem/15758808). Note: I kept the LimitedDebugInfo name in CodeGenOptions::DebugInfoKind because NoStandaloneDebugInfo sounded even more confusing. llvm-svn: 198655
* Driver: Accept -fprofile-instr-use and -fprofile-instr-generateJustin Bogner2014-01-061-0/+15
| | | | | | These flags will be used for instrumentation based PGO. llvm-svn: 198639
* Remove a tab that snuck in.Roman Divacky2014-01-021-1/+1
| | | | llvm-svn: 198312
* In the FreeBSD assembler driver, inform the sparc assembler that we're producingRoman Divacky2014-01-021-0/+13
| | | | | | PIC code. llvm-svn: 198311
* LIBRARY_PATH environment variable should only be supported on a native compiler.Richard Barton2013-12-171-1/+3
| | | | llvm-svn: 197490
* Support EABIHF environment on ARM.Joerg Sonnenberger2013-12-161-0/+4
| | | | llvm-svn: 197406
* Avoid temporary std::string.Rafael Espindola2013-12-121-4/+3
| | | | llvm-svn: 197160
* Don't return a pointer to a temporary std::string's c_str.Rafael Espindola2013-12-121-3/+4
| | | | llvm-svn: 197157
* Simple refactoring to eliminate single-use local variableBernard Ogden2013-12-121-3/+1
| | | | llvm-svn: 197154
OpenPOWER on IntegriCloud