summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename Darwin_X86 toolchain to just Darwin, this can support all platforms.Daniel Dunbar2009-09-041-4/+0
| | | | llvm-svn: 81016
* Add basic support for -pthread.Daniel Dunbar2009-09-031-0/+2
| | | | | | - Patch by David Chisnall, with PCH and Darwin support mixed in. llvm-svn: 80883
* Add driver support for -emit-ast and AST compilation steps.Daniel Dunbar2009-09-011-2/+20
| | | | | | - <rdar://problem/7185031> Add 'clang' option '-emit-ast' llvm-svn: 80678
* Updated GNU runtime non-fragile ABI.David Chisnall2009-08-311-0/+5
| | | | | | | Added -fconstant-string-class= option. Added __has_feature() test for non-fragile ABI. llvm-svn: 80591
* PR4766: Don't pass -static to 'as' on x86_64 on Darwin.Daniel Dunbar2009-08-241-3/+3
| | | | | | Also, do pass -static even with -dynamic on i386. llvm-svn: 79948
* Second half of, clang, AuroraUX toolchain support.Edward O'Callaghan2009-08-221-0/+129
| | | | llvm-svn: 79713
* Fix -fno-omit-frame-pointer bug Eli noticed.Benjamin Kramer2009-08-051-2/+2
| | | | llvm-svn: 78233
* Translate -mcmodel=X to -code-model X and pass it to clang-cc. Patch by ↵Benjamin Kramer2009-08-051-0/+5
| | | | | | Pawel Worach! llvm-svn: 78190
* Add support for the -fno-omit-frame-pointer option. Patch by Roman Divacky!Benjamin Kramer2009-08-051-1/+2
| | | | llvm-svn: 78188
* Driver/OpenBSD: Improve ld options.Daniel Dunbar2009-08-031-2/+18
| | | | | | - Patch by Jonathan Gray! llvm-svn: 77935
* Add beginnigs of rtti generation, wire up more of -fno-exceptions.Mike Stump2009-07-311-1/+15
| | | | llvm-svn: 77751
* Have 'clang --analyze' run syntactic static analysis security checks.Ted Kremenek2009-07-241-0/+1
| | | | llvm-svn: 76996
* Remove -ftraditional option, which gcc doesn't actually support. Make Eli Friedman2009-07-141-4/+6
| | | | | | | | 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. llvm-svn: 75690
* Introduce the notion of "Relocatable" precompiled headers, which are builtDouglas Gregor2009-07-071-0/+3
| | | | | | | | | | | | 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>. llvm-svn: 74885
* Driver: Add Source argument for Commands to hold the Action which caused aDaniel Dunbar2009-07-011-14/+14
| | | | | | | Command to be generated, to support more advanced diagnostics. - No functionality change. llvm-svn: 74627
* OpenBSD support.Daniel Dunbar2009-06-291-0/+112
| | | | | | - Patch by Jonathan Gray! llvm-svn: 74453
* Add stack protector support to clang. This generates the 'ssp' and 'sspreq'Bill Wendling2009-06-281-0/+12
| | | | | | | | 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. llvm-svn: 74405
* Forward -C and -CC to clang.Daniel Dunbar2009-06-081-1/+10
| | | | | | - <rdar://problem/6945384> Driver should pass down -C and -CC llvm-svn: 73087
* PR4016: Forward -fno-show-source-location to clang.Daniel Dunbar2009-06-081-1/+4
| | | | llvm-svn: 73082
* Set function Attribute::NoImplicitFloat appropriately.Devang Patel2009-06-051-1/+1
| | | | llvm-svn: 72961
* Add driver support for -fsigned-char/-funsigned-char.Eli Friedman2009-06-051-0/+10
| | | | llvm-svn: 72930
* forward -fno-color-diagnostics to clang-cc.Torok Edwin2009-06-041-0/+3
| | | | llvm-svn: 72856
* Driver: Support -mllvm; this just forwards options to clang-cc.Daniel Dunbar2009-06-031-0/+1
| | | | llvm-svn: 72780
* This patch adds support for sender-aware dispatch in Objective-C for the GNU ↵Fariborz Jahanian2009-05-221-0/+1
| | | | | | | | | | 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. llvm-svn: 72275
* Don't warn about -funit-at-a-time, and reject -fno-unit-at-a-time.Daniel Dunbar2009-05-221-1/+9
| | | | | | | | | | - 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. llvm-svn: 72272
* Don't rely on getArchName() to return a constant string reference.Daniel Dunbar2009-05-221-11/+14
| | | | llvm-svn: 72241
* Add --analyzer-no-default-checks and --analyzer-output options.Daniel Dunbar2009-05-221-13/+19
| | | | llvm-svn: 72238
* Remove -fprintf-source-range-info from the Driver (this was renamed)Daniel Dunbar2009-05-181-1/+0
| | | | llvm-svn: 72061
* Driver: Emit an unsupported error on -iframework.Daniel Dunbar2009-05-131-1/+2
| | | | llvm-svn: 71698
* Tweak x86 -mcpu defaults.Daniel Dunbar2009-05-061-0/+5
| | | | | | | | | - Default to yonah on Darwin (to get SSE3). - Default to Pentium4 (32-bit) and x86-64 (64-bit) on non-Darwin. Welcome to the 21st century. llvm-svn: 71069
* Improve handling of (X86) target features.Daniel Dunbar2009-05-061-51/+47
| | | | | | | | | | | | | | | | | | | | | - This is a WIP... - This adds -march= handling to the driver, and fixes the defaulting of -mcpu on Darwin (which was using the wrong test). Instead of handling -m{sse, ...} in the driver, pass them to clang-cc as -target-feature [+-]name In clang-cc, communicate with the (clang) target to discover the legal features of a target, and the features which are enabled based on -mcpu. This is currently hardcoded just enough to not be a feature regression, we need to get this information from the backend's TableGen information somehow. This is used to construct the full list of features which are being used, which is in turn used to initialize the predefines. llvm-svn: 71061
* Add -fobjc-tight-layout.Daniel Dunbar2009-05-041-0/+1
| | | | | | | | | | | | | | | | | | | - This implements gcc style Objective-C interface layout (I think). Currently it is always off, there is no functionality change unless this is passed. For the curious, the deal is that gcc lays out the fields of a subclass as if they were part of the superclass. That is, the subclass fields immediately follow the super class fields instead of being padded to the alignment of the superclass structure. - Currently gcc uses the tight layout in 32-bit and 64-bit modes, and llvm-gcc uses it in 32-bit only, for reasons which aren't clear yet. We probably want to switch to matching gcc, once this makes it through testing... my hope is that we can also fix llvm-gcc in order to maintain compatibility between the compilers. llvm-svn: 70827
* Driver: When using the generic gcc tool, pass -m32 or -m64 if weDaniel Dunbar2009-05-021-1/+10
| | | | | | | | | recognize the architecture. - This is an attempt to force gcc to the write target. - PR4094. llvm-svn: 70647
* Driver: Generate an error when trying to pass an LLVM bc input to aDaniel Dunbar2009-05-021-2/+22
| | | | | | non-Darwin linker (sorry Gold + LTO-plugin users). llvm-svn: 70641
* DragonFly ToolChain definition for driver.Daniel Dunbar2009-05-021-0/+156
| | | | | | - Patch by Alex Hornung! llvm-svn: 70635
* Implement -fmessage-length=N, which word-wraps diagnostics to N columns. Douglas Gregor2009-05-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Also, put a line of whitespace between the diagnostic and the source code/caret line when the start of the actual source code text lines up (or nearly lines up) with the most recent line of the diagnostic. For example, here it's okay for the last line of the diagnostic to be (vertically) next to the source line, because there is horizontal whitespace to separate them: decl-expr-ambiguity.cpp:12:16: error: function-style cast to a builtin type can only take one argument typeof(int)(a,5)<<a; However, here is a case where we need the vertical separation (since there is no horizontal separation): message-length.c:10:46: warning: incompatible pointer types initializing 'void (int, float, char, float)', expected 'int (*)(int, float, short, float)' int (*fp1)(int, float, short, float) = f; This is part one of <rdar://problem/6711348>. llvm-svn: 70578
* Make sure to pass the same options to the static analyzer as theDaniel Dunbar2009-04-291-140/+140
| | | | | | | compiler. - Code generation options may still affect the language... llvm-svn: 70393
* With -ccc-pch-is-pch, always treat precompiled inputs as PCH,Daniel Dunbar2009-04-281-1/+1
| | | | | | | | regardless of extension. - Otherwise we can't expect that just plugging in -ccc-pch-is-pch will work. llvm-svn: 70318
* Driver: Add -std-default= option.Daniel Dunbar2009-04-261-1/+16
| | | | | | | | | - This can be used to supply a default value for -std=; the idea is that this can be used in conjunction with CCC_ADD_ARGS or QA_OVERRIDE_GCC3_OPTIONS to change the default without having to modify the build system. llvm-svn: 70102
* Driver: -mkernel disables default use of unwind tables (although IDaniel Dunbar2009-04-251-1/+2
| | | | | | don't yet understand where this is happening in llvm-gcc). llvm-svn: 70012
* Driver: -mkernel and -fapple-kext imply -mno-red-zone.Daniel Dunbar2009-04-251-1/+3
| | | | llvm-svn: 70010
* Don't run dsymutil when making a fat executable direct source.Daniel Dunbar2009-04-241-1/+7
| | | | | | | | | | | | | | - Otherwise, we will end up with stray .dSYM files which don't get lipo'ed or removed. - Ideally we would run dsymutil on the result, but we don't have the infrastructure for that yet. Note that gcc doesn't handle this case either. - <rdar://problem/6809621> [driver] clang leaves .dSYM files lying around in tmp. llvm-svn: 69951
* Call ld, not collect2.Daniel Dunbar2009-04-231-1/+1
| | | | | | - <rdar://problem/6517382> [driver] call ld directly llvm-svn: 69938
* rename -fprint-source-range-info -> -fdiagnostics-print-source-range-info.Chris Lattner2009-04-211-0/+1
| | | | | | Temporarily accept both of them, I'll rip out the old one after awhile. llvm-svn: 69662
* Forward f[no-]dollars-in-identifiers to clang, when specified.Daniel Dunbar2009-04-191-2/+12
| | | | llvm-svn: 69549
* Forward -fno-diagnostics-fixit-info to clang-cc.Daniel Dunbar2009-04-191-0/+5
| | | | llvm-svn: 69546
* Preliminary PCH support in the driverDouglas Gregor2009-04-181-15/+40
| | | | llvm-svn: 69410
* Added -print-ivar-layout option. No change in functionalityFariborz Jahanian2009-04-171-0/+1
| | | | | | yet. llvm-svn: 69346
* Pass -fdiagnostics-show-option to clang-cc by default.Daniel Dunbar2009-04-161-0/+5
| | | | | | - <rdar://problem/6796848> implement -fdiagnostics-show-option llvm-svn: 69276
* Driver: Forward -W* to clang, it can handle all these itself now.Daniel Dunbar2009-04-161-4/+2
| | | | | | Remove clang_W_Group and clang_ignored_W_Group. llvm-svn: 69261
OpenPOWER on IntegriCloud