summaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAge
...
* Connect -fno-exceptions to -arm-disable-ehabiRenato Golin2014-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200545 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM RT libs with generic nameRenato Golin2014-01-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200538 91177308-0d34-0410-b5e6-96231b3b80d8
* Make x86 Android default target CPUs compatible with GCC ↵Alexey Bataev2014-01-31
| | | | | | (http://llvm-reviews.chandlerc.com/D2655) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200510 91177308-0d34-0410-b5e6-96231b3b80d8
* Turn on PIC by default on Android (http://llvm-reviews.chandlerc.com/D2603)Alexey Bataev2014-01-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200290 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: support -fno-debug-types-section to override -fdebug-types-sectionDavid Blaikie2014-01-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200236 91177308-0d34-0410-b5e6-96231b3b80d8
* [Mips] Change default CPU for MIPS 32/64 targets. Now they are ↵Simon Atanasyan2014-01-27
| | | | | | mips32r2/mips64r2 respectively. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200222 91177308-0d34-0410-b5e6-96231b3b80d8
* [AArch64] Add -mgeneral_regs_only option.Amara Emerson2014-01-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199904 91177308-0d34-0410-b5e6-96231b3b80d8
* MachO embedded: default to soft float without issuing warningTim Northover2014-01-23
| | | | | | | | | | | | | 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199896 91177308-0d34-0410-b5e6-96231b3b80d8
* Improve x86 android support, add x86_64 android targetAlexey Bataev2014-01-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199875 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Suppression support for -Wa,--compress-debug-sectionsDavid Blaikie2014-01-22
| | | | | | (to go with existing suppression of -Wa,-compress-debug-sections) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199822 91177308-0d34-0410-b5e6-96231b3b80d8
* ObjectiveC driver. reinstate -fno-objc-legacy-dispatch behavior Fariborz Jahanian2014-01-20
| | | | | | | when the deployment target is 10.5. // rdar://15852259 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199682 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver support for -fdebug-types-sectionsDavid Blaikie2014-01-18
| | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199535 91177308-0d34-0410-b5e6-96231b3b80d8
* Use switch statements in preparation for adding more architectures.Joerg Sonnenberger2014-01-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199529 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Stub -Wa,-compress-debug-sections support for integrated-as with a ↵David Blaikie2014-01-17
| | | | | | suppressable warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199454 91177308-0d34-0410-b5e6-96231b3b80d8
* MachO: use *-*-*-macho for MachO embedded targets.Tim Northover2014-01-16
| | | | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199367 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove support for armv7f slice. <rdar://problem/12478440>Bob Wilson2014-01-15
| | | | | | This was never used for anything so we should just get rid of it. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199336 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the -cxx-abi command-line flag.Hans Wennborg2014-01-14
| | | | | | | | | | | | | | | 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199250 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove a temporary workaround that is no longer relevant.Bob Wilson2014-01-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199176 91177308-0d34-0410-b5e6-96231b3b80d8
* clang-cl: Ignore /fallback when not actually compiling (PR18456)Hans Wennborg2014-01-13
| | | | | | For example, don't fall back in /P (preprocess) mode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199153 91177308-0d34-0410-b5e6-96231b3b80d8
* MIPS and SPARC assemblers both take the -KPIC flag.Jakob Stoklund Olesen2014-01-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199034 91177308-0d34-0410-b5e6-96231b3b80d8
* Select the UltraSPARC instruction set when invoking the assembler.Jakob Stoklund Olesen2014-01-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@199012 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the right dynamic linker for SPARC Linux executables.Jakob Stoklund Olesen2014-01-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198923 91177308-0d34-0410-b5e6-96231b3b80d8
* Give the linker the right ELF type for SPARC targets.Jakob Stoklund Olesen2014-01-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198912 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass -32/-64 to the assembler when building for sparc/sparc64.Jakob Stoklund Olesen2014-01-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198911 91177308-0d34-0410-b5e6-96231b3b80d8
* Sort all the #include lines with LLVM's utils/sort_includes.py whichChandler Carruth2014-01-07
| | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198686 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement a new -fstandalone-debug option. rdar://problem/15685848Adrian Prantl2014-01-07
| | | | | | | | | | | | | | 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198655 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Accept -fprofile-instr-use and -fprofile-instr-generateJustin Bogner2014-01-06
| | | | | | These flags will be used for instrumentation based PGO. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198639 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove a tab that snuck in.Roman Divacky2014-01-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198312 91177308-0d34-0410-b5e6-96231b3b80d8
* In the FreeBSD assembler driver, inform the sparc assembler that we're producingRoman Divacky2014-01-02
| | | | | | | PIC code. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198311 91177308-0d34-0410-b5e6-96231b3b80d8
* LIBRARY_PATH environment variable should only be supported on a native compiler.Richard Barton2013-12-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197490 91177308-0d34-0410-b5e6-96231b3b80d8
* Support EABIHF environment on ARM.Joerg Sonnenberger2013-12-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197406 91177308-0d34-0410-b5e6-96231b3b80d8
* Avoid temporary std::string.Rafael Espindola2013-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197160 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't return a pointer to a temporary std::string's c_str.Rafael Espindola2013-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197157 91177308-0d34-0410-b5e6-96231b3b80d8
* Simple refactoring to eliminate single-use local variableBernard Ogden2013-12-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197154 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor duplicate functionsBernard Ogden2013-12-12
| | | | | | | | | | getARMCPU and getLLVMArchSuffixForARM existed as very similar functions in both ToolChain.cpp and Tools.cpp. Create a single implementation of each in Tools.cpp, eliminate the duplicate and share via Tools.h. Creates an 'arm' namespace in Tools.h to be used by any ARM-targetting tools. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197153 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix -mthumb resetting of target cpuBernard Ogden2013-12-12
| | | | | | | | Passing -mthumb with no explicit CPU on the command line resulted in target CPU changing from the architecture default to arm7tdmi. Now it does not. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197151 91177308-0d34-0410-b5e6-96231b3b80d8
* Darwin-embedded: find correct libclang_rt for embedded targets.Tim Northover2013-12-12
| | | | | | | | | | | | This refactors some of the Darwin toolchain classification to give a more solid distinction between the three primary Darwin platforms (OS X, IOS and IOS simulator) so that a 4th choice can be added temporarily: embedded MachO targets. Longer term, this support will be factored out into a separate class and no longer classified as "darwin-eabi", but the refactoring should still be useful. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197148 91177308-0d34-0410-b5e6-96231b3b80d8
* [objcmt] Transfer '-objcmt-migrate-designated-init' from the driver to cc1 ↵Argyrios Kyrtzidis2013-12-11
| | | | | | invocation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196993 91177308-0d34-0410-b5e6-96231b3b80d8
* style fixDavid Fang2013-12-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196982 91177308-0d34-0410-b5e6-96231b3b80d8
* darwin asm driver: suppress -Q for -no-integrated-as on darwin<11David Fang2013-12-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196981 91177308-0d34-0410-b5e6-96231b3b80d8
* [Driver] Rename '-objcmt-white-list-dir-path' option to ↵Argyrios Kyrtzidis2013-12-10
| | | | | | '-objcmt-whitelist-dir-path' and add an alias for now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196944 91177308-0d34-0410-b5e6-96231b3b80d8
* Extend assembler handling for NetBSD/MIPS to pass down the correct ABI,Joerg Sonnenberger2013-12-08
| | | | | | | architecture and PIC flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196720 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass correct flags to assembler and linker for OpenBSD on AMD64, PowerPCJoerg Sonnenberger2013-12-07
| | | | | | | and MIPS64. From Brad Smith. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196630 91177308-0d34-0410-b5e6-96231b3b80d8
* Added support for mcpu kraitAna Pazos2013-12-06
| | | | | | | | | | | | | | | - krait processor currently modeled with the same features as A9. - Krait processor additionally has VFP4 (fused multiply add/sub) and hardware division features enabled. - krait has currently the same Schedule model as A9 - krait cpu flag is not recognized by the GNU assembler yet, it is replaced with march=armv7-a to avoid a lower march from being used. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196618 91177308-0d34-0410-b5e6-96231b3b80d8
* For NetBSD, use arm1176jzf-s as default CPU for ARMv6.Joerg Sonnenberger2013-12-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196538 91177308-0d34-0410-b5e6-96231b3b80d8
* Pass down the target CPU to the system assembler for NetBSD/ARM.Joerg Sonnenberger2013-12-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196532 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix assertion failure left over from changes to move away from "darwin" triples.Bob Wilson2013-12-05
| | | | | | | | I happened to notice this while trying to write a test for an iOS simulator target. I suspect we just missed this when we added separate "macosx" and "ios" triples instead of the generic "darwin" OS. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196527 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a tranche of comment, test and doc typosAlp Toker2013-12-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196510 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Factor gold support out into a functionAlp Toker2013-12-02
| | | | | | | | | AddGoldPlugin() is the same on gnutools and freebsd so avoid the copy-and-paste duplicate code. No change in functionality. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196096 91177308-0d34-0410-b5e6-96231b3b80d8
* [Mips] Pass -mmsa option to the assembler.Simon Atanasyan2013-11-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@195756 91177308-0d34-0410-b5e6-96231b3b80d8