summaryrefslogtreecommitdiff
path: root/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAge
...
* Incremental improvement to logic determining whether we emit unwind tables orDaniel Dunbar2009-09-16
| | | | | | | not. - PR4932. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82021 91177308-0d34-0410-b5e6-96231b3b80d8
* Support -mabi= for clang/ARM.Daniel Dunbar2009-09-14
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81734 91177308-0d34-0410-b5e6-96231b3b80d8
* Swizzle the target triple based on -mthumb, and update clang-cc to recognizeDaniel Dunbar2009-09-11
| | | | | | thumb-foo-bar as an ARM target. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81497 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial handling of -m{soft-float,hard-float,float-abi=} for ARM.Daniel Dunbar2009-09-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81471 91177308-0d34-0410-b5e6-96231b3b80d8
* Move X86 handling of -m[no-]soft-float and -m[no-]red-zone into ↵Daniel Dunbar2009-09-10
| | | | | | AddX86TargetArgs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81470 91177308-0d34-0410-b5e6-96231b3b80d8
* Change getLLVMArchNameForARM to just get the suffix.Daniel Dunbar2009-09-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81469 91177308-0d34-0410-b5e6-96231b3b80d8
* Add code to mangle the triple for LLVM on ARM.Daniel Dunbar2009-09-10
| | | | | | - I think we should get rid of this distinction though, but I need to discuss with the interested parties. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81435 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't pass -fno-builtin-str{cat,cpy} to clang-cc, I forget we don't support ↵Daniel Dunbar2009-09-10
| | | | | | that yet. PR4941. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81430 91177308-0d34-0410-b5e6-96231b3b80d8
* ARM: Pass -mcpu to clang-cc based on -march= and -mcpu=.Daniel Dunbar2009-09-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81429 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement Darwin/ARM behavior for defaulting to -fno-builtin-str{cat,cpy}.Daniel Dunbar2009-09-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81425 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a check that -static is not used with -dynamic or -mdynamic-no-pic.Daniel Dunbar2009-09-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81421 91177308-0d34-0410-b5e6-96231b3b80d8
* Factor out CheckPreprocessing options to share between Clang/CC1 tools.Daniel Dunbar2009-09-10
| | | | | | Also, fix forwarding of -C/-CC to cc1. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81420 91177308-0d34-0410-b5e6-96231b3b80d8
* Move Clang X86 cpu/feature argument translation into AddX86TargetArgs.Daniel Dunbar2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81390 91177308-0d34-0410-b5e6-96231b3b80d8
* Change Get{File,Program}Path to return an std::string (instead of a sys::Path).Daniel Dunbar2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81389 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove gratuitous use of c_str().Daniel Dunbar2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81388 91177308-0d34-0410-b5e6-96231b3b80d8
* Use Twine concatenation instead of llvm::format.Daniel Dunbar2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81387 91177308-0d34-0410-b5e6-96231b3b80d8
* Simplify.Daniel Dunbar2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81386 91177308-0d34-0410-b5e6-96231b3b80d8
* Use AddDarwinArch for passing arch name to assembler.Daniel Dunbar2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81368 91177308-0d34-0410-b5e6-96231b3b80d8
* Add DarwinTool base class for all Darwin tools, and move AddDarwin[Sub]Arch ↵Daniel Dunbar2009-09-09
| | | | | | there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81367 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove tabs, and whitespace cleanups.Mike Stump2009-09-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81346 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove FIXMEs for pedantically-gcc-bug-compatible behavior.Daniel Dunbar2009-09-08
| | | | | | | | - We aren't going to fix these since they haven't caused problems in practice. - Similarly, don't forward -object to Darwin ld. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81224 91177308-0d34-0410-b5e6-96231b3b80d8
* Merge libgcc spec changes for darwin::Link::ConstructJob.Daniel Dunbar2009-09-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81022 91177308-0d34-0410-b5e6-96231b3b80d8
* Tweak darwin::Link::AddLinkArgs.Daniel Dunbar2009-09-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81021 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement darwin::Link::AddDarwinArch for ARM.Daniel Dunbar2009-09-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81020 91177308-0d34-0410-b5e6-96231b3b80d8
* Darwin: Pass -iphoneos-version-min to ld when building for ARM.Daniel Dunbar2009-09-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81019 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename Darwin_X86 toolchain to just Darwin, this can support all platforms.Daniel Dunbar2009-09-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81016 91177308-0d34-0410-b5e6-96231b3b80d8
* Add basic support for -pthread.Daniel Dunbar2009-09-03
| | | | | | - Patch by David Chisnall, with PCH and Darwin support mixed in. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80883 91177308-0d34-0410-b5e6-96231b3b80d8
* Add driver support for -emit-ast and AST compilation steps.Daniel Dunbar2009-09-01
| | | | | | - <rdar://problem/7185031> Add 'clang' option '-emit-ast' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80678 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated GNU runtime non-fragile ABI.David Chisnall2009-08-31
| | | | | | | | | Added -fconstant-string-class= option. Added __has_feature() test for non-fragile ABI. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80591 91177308-0d34-0410-b5e6-96231b3b80d8
* PR4766: Don't pass -static to 'as' on x86_64 on Darwin.Daniel Dunbar2009-08-24
| | | | | | | Also, do pass -static even with -dynamic on i386. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79948 91177308-0d34-0410-b5e6-96231b3b80d8
* Second half of, clang, AuroraUX toolchain support.Edward O'Callaghan2009-08-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@79713 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix -fno-omit-frame-pointer bug Eli noticed.Benjamin Kramer2009-08-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78233 91177308-0d34-0410-b5e6-96231b3b80d8
* Translate -mcmodel=X to -code-model X and pass it to clang-cc. Patch by ↵Benjamin Kramer2009-08-05
| | | | | | Pawel Worach! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78190 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for the -fno-omit-frame-pointer option. Patch by Roman Divacky!Benjamin Kramer2009-08-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@78188 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver/OpenBSD: Improve ld options.Daniel Dunbar2009-08-03
| | | | | | | - Patch by Jonathan Gray! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77935 91177308-0d34-0410-b5e6-96231b3b80d8
* Add beginnigs of rtti generation, wire up more of -fno-exceptions.Mike Stump2009-07-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77751 91177308-0d34-0410-b5e6-96231b3b80d8
* Have 'clang --analyze' run syntactic static analysis security checks.Ted Kremenek2009-07-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76996 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove -ftraditional option, which gcc doesn't actually support. Make Eli Friedman2009-07-14
| | | | | | | | | | using -traditional and -traditional-cpp with clang an error because it's unsupported in clang and causes a significant change in the semantics of the language. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75690 91177308-0d34-0410-b5e6-96231b3b80d8
* Introduce the notion of "Relocatable" precompiled headers, which are builtDouglas Gregor2009-07-07
| | | | | | | | | | | | | | with a particular system root directory and can be used with a different system root directory when the headers it depends on have been installed. Relocatable precompiled headers rewrite the file names of the headers used when generating the PCH file into the corresponding file names of the headers available when using the PCH file. Addresses <rdar://problem/7001604>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74885 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Add Source argument for Commands to hold the Action which caused aDaniel Dunbar2009-07-01
| | | | | | | | Command to be generated, to support more advanced diagnostics. - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74627 91177308-0d34-0410-b5e6-96231b3b80d8
* OpenBSD support.Daniel Dunbar2009-06-29
| | | | | | | - Patch by Jonathan Gray! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74453 91177308-0d34-0410-b5e6-96231b3b80d8
* Add stack protector support to clang. This generates the 'ssp' and 'sspreq'Bill Wendling2009-06-28
| | | | | | | | | function attributes. There are predefined macros that are defined when stack protectors are used: __SSP__=1 with -fstack-protector and __SSP_ALL__=2 with -fstack-protector-all. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74405 91177308-0d34-0410-b5e6-96231b3b80d8
* Forward -C and -CC to clang.Daniel Dunbar2009-06-08
| | | | | | | - <rdar://problem/6945384> Driver should pass down -C and -CC git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73087 91177308-0d34-0410-b5e6-96231b3b80d8
* PR4016: Forward -fno-show-source-location to clang.Daniel Dunbar2009-06-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73082 91177308-0d34-0410-b5e6-96231b3b80d8
* Set function Attribute::NoImplicitFloat appropriately.Devang Patel2009-06-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72961 91177308-0d34-0410-b5e6-96231b3b80d8
* Add driver support for -fsigned-char/-funsigned-char.Eli Friedman2009-06-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72930 91177308-0d34-0410-b5e6-96231b3b80d8
* forward -fno-color-diagnostics to clang-cc.Torok Edwin2009-06-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72856 91177308-0d34-0410-b5e6-96231b3b80d8
* Driver: Support -mllvm; this just forwards options to clang-cc.Daniel Dunbar2009-06-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72780 91177308-0d34-0410-b5e6-96231b3b80d8
* This patch adds support for sender-aware dispatch in Objective-C for the GNU ↵Fariborz Jahanian2009-05-22
| | | | | | | | | | | runtime, when compiled with -fobjc-sender-dependent-dispatch. This is used in AOP, COP, implementing object planes, and a few other things. Patch by David Chisnall. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72275 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't warn about -funit-at-a-time, and reject -fno-unit-at-a-time.Daniel Dunbar2009-05-22
| | | | | | | | | | | - We could just warn about -fno-unit-at-a-time, but in practice people using it probably aren't going to get what they want out of clang. Also, use "clang" specified error for unsupported things instead of driver unsupported error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72272 91177308-0d34-0410-b5e6-96231b3b80d8