summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* Remove caseless switch.Benjamin Kramer2010-04-081-7/+3
| | | | llvm-svn: 100770
* add a new driver-level -ferror-limit=412 option, which causes clang to stopChris Lattner2010-04-071-0/+6
| | | | | | | | | | | | | | | | | emitting diagnostics after it has produced that many errors. Give this a default value of 20 which produces plenty of errors for people to fix before recompiling but not so many that their entire console scrolls away when the compiler gets confused. The experience looks like this: $ clang foo.c <tons of crap> foo.c:102:3: error: unknown type name 'somethingbad' somethingbad x; ^ fatal error: too many errors emitted, stopping now 36 warnings and 20 errors generated. llvm-svn: 100689
* Driver: Add a Tool::hasGoodDiagnostics hook, and use it to simplify logic forDaniel Dunbar2010-04-062-5/+6
| | | | | | | | deciding when we need to emit an extra "command failed" diagnostic. - This also fixes the case where we were emitting that extra diagnostics, even when using clang w/ the integrated assembler, which has good diagnostics. llvm-svn: 100529
* Driver: Add support for a CLANGXX_IS_PRODUCTION build variable, which enableDaniel Dunbar2010-04-011-2/+4
| | | | | | Clang++ support, even in "Production" mode (for testing purposes). llvm-svn: 100119
* add support for -MQ flag to quote targets in dependency file,Chris Lattner2010-03-291-6/+52
| | | | | | PR6661, patch by Ori Avtalion! llvm-svn: 99821
* Driver/Darwin: Support CCC_ENABLE_NEW_DARWIN_TOOLCHAIN as an environmentDaniel Dunbar2010-03-261-4/+6
| | | | | | | override to enable use of the DarwinClang tool chain on all platforms (not just ARM). llvm-svn: 99660
* Implement support for -nostdc++. Fixes PR6446.Douglas Gregor2010-03-241-0/+2
| | | | llvm-svn: 99417
* Disable the emission of frontend warnings (not errors) under --analyze.Ted Kremenek2010-03-221-0/+5
| | | | | | Fixes <rdar://problem/7405601>. llvm-svn: 99222
* Sort calls to add_clang_library()Kovarththanan Rajaratnam2010-03-221-1/+1
| | | | llvm-svn: 99191
* Add very limited support for GCC's '-B' flag. This allows us to support unusualChandler Carruth2010-03-221-0/+20
| | | | | | toolchain configurations and is a small step toward FreeBSD support. llvm-svn: 99159
* Driver: Fix thinkos that prevented Clang from picking the right deploymentDaniel Dunbar2010-03-201-2/+2
| | | | | | target when both {MACOSX,IPHONEOS}_DEPLOYMENT_TARGET were set. llvm-svn: 99055
* Driver: Support CC_PRINT_OPTIONS, used for logging the compile commands (in ↵Daniel Dunbar2010-03-202-6/+32
| | | | | | -v style) to a file. llvm-svn: 99054
* Driver: Fix -### to quote shell special characters, following gcc.Daniel Dunbar2010-03-201-4/+15
| | | | llvm-svn: 99053
* Driver: Fix a number of -fapple-kext issues:Daniel Dunbar2010-03-201-5/+13
| | | | | | | | | | | | | - Disable RTTI. - Disable use of __cxa_atexit. - Disable unwind tables. - Enable freestanding mode. Also, honor -fhosted correctly. <rdar://problem/7515383> C++ support: -fapple-kext not honored llvm-svn: 99041
* C++: Add support for -fno-use-cxa-atexit.Daniel Dunbar2010-03-201-0/+5
| | | | | | | | - So much typing, so little gain... Also, rename the __cxx_global_initialization function just to match llvm-gcc. llvm-svn: 99039
* Driver: Allow Render{Separate,Joined} option flags on JoinedOrSeparate ↵Daniel Dunbar2010-03-202-7/+8
| | | | | | | | option types. Also, simplify/fix SeparateArg::render with forced join. llvm-svn: 99022
* Driver: Fix possible crash when targetting an unknown (unsupported) DarwinDaniel Dunbar2010-03-202-0/+8
| | | | | | platform, e.g. ppc. llvm-svn: 99016
* Make -faccess-control and -fno-access-control driver options.John McCall2010-03-171-0/+6
| | | | llvm-svn: 98703
* Driver: Fix forwarding of -fno-lax-vector-conversions.Daniel Dunbar2010-03-161-1/+6
| | | | llvm-svn: 98639
* Driver: Free Action objects.Daniel Dunbar2010-03-112-3/+8
| | | | llvm-svn: 98263
* Driver: Free synthesized derived arguments.Daniel Dunbar2010-03-111-7/+14
| | | | llvm-svn: 98262
* Driver: Free jobs in JobList and PipedJob instances.Daniel Dunbar2010-03-111-0/+10
| | | | llvm-svn: 98261
* Fix -Wsign-compare warnings reported by clang++.Ted Kremenek2010-03-101-3/+3
| | | | llvm-svn: 98174
* Remove redundant semicolonDouglas Gregor2010-03-081-1/+1
| | | | llvm-svn: 97930
* Don't produce debug info when given -g. Fixes PR6529.Rafael Espindola2010-03-071-1/+3
| | | | llvm-svn: 97897
* add TCE target support, patch by Pekka J!Chris Lattner2010-03-044-0/+130
| | | | llvm-svn: 97746
* Add in some more MIPS command line options.Eric Christopher2010-03-022-0/+72
| | | | | | Patch by Oleksandr Tymoshenko! llvm-svn: 97544
* Driver: Allow driver title (for --help) to be overridden by clients.Daniel Dunbar2010-02-251-2/+3
| | | | llvm-svn: 97106
* Unconditionally support block introspection data in a new field at the endBlaine Garst2010-02-231-1/+0
| | | | | | | | | | | | | | | of the block descriptor field. This field is the ObjC style @encode signature of the implementation function, and was to this point conditionally provided in the block literal data structure. That provisional support is removed. Additionally, eliminate unused enumerations for the block literal flags field. The first shipping ABI unconditionally set (1<<29) but this bit is unused by the runtime, so the second ABI will unconditionally have (1<<30) set so that the runtime can in fact distinguish whether the additional data is present or not. llvm-svn: 96989
* Enable -mconstructor-aliases by default on non-darwin platforms.John McCall2010-02-191-0/+5
| | | | | | The linker bug holding this back is Darwin-specific. llvm-svn: 96655
* PR5803: clang++: Treat untyped 'C' inputs as C++.Daniel Dunbar2010-02-172-0/+27
| | | | | | | - Patch by Andrzej K. Haczewski, with a tweak by me to emit a 'deprecated' diagnostic when we do this. We'll see what zee users say. llvm-svn: 96511
* Driver: Tweak freebsd::Link, by Roman Divacky.Daniel Dunbar2010-02-171-2/+4
| | | | llvm-svn: 96469
* Raise the responsibility for passing -disable-llvm-verifier in NDEBUG buildsJohn McCall2010-02-131-0/+5
| | | | | | | to the driver, and support it in CodeGenOptsToArgs(). Note that this changes the default behavior of clang -cc1 to always run the verifier. llvm-svn: 96077
* Driver: Fix clang -ccc-no-clang -x c++-header foo.h on Darwin.Daniel Dunbar2010-02-111-1/+2
| | | | llvm-svn: 95876
* Driver: Add -rewrite-objc, which is an interface to clang -cc1 -rewrite-objc.Daniel Dunbar2010-02-112-3/+23
| | | | llvm-svn: 95849
* Driver: Fix infinite loop and wrong message on invalid -ccc-clang-arch argument.Daniel Dunbar2010-02-111-4/+2
| | | | llvm-svn: 95848
* Switch to using -fsjlj-exceptions instead of hard-coding it. Notably, this fixesDaniel Dunbar2010-02-103-0/+11
| | | | | | | calls to the UnwindResumeOrRethrow function for C++/Obj-C exception handling, for Darwin ARM. llvm-svn: 95787
* Add support for threadsafe statics, and make them the default (matching gcc).Anders Carlsson2010-02-061-0/+5
| | | | | | Daniel, I'd appreciate a review of the driver/cc1 parts. llvm-svn: 95508
* Rename -cc1 option '-checker-cfref' to '-analyzer-check-objc-mem'.Ted Kremenek2010-02-051-1/+1
| | | | llvm-svn: 95348
* Rename -cc1 option '-warn-objc-missing-dealloc' to ↵Ted Kremenek2010-02-051-1/+1
| | | | | | '-analyzer-check-objc-missing-dealloc'. llvm-svn: 95347
* Rename -cc1 option '-warn-objc-methodsigs' to '-analyzer-check-objc-methodsigs'.Ted Kremenek2010-02-051-1/+1
| | | | llvm-svn: 95346
* Rename -cc1 option '-warn-objc-unused-ivars' to ↵Ted Kremenek2010-02-051-1/+1
| | | | | | '-analyzer-check-objc-unused-ivars'. llvm-svn: 95345
* Rename -cc1 option '-warn-dead-stores' to '-analyzer-check-dead-stores'.Ted Kremenek2010-02-051-1/+1
| | | | llvm-svn: 95343
* Rename -cc1 option '-warn-security-syntactic' to ↵Ted Kremenek2010-02-051-1/+1
| | | | | | '-analyzer-check-security-syntactic'. llvm-svn: 95342
* Driver: Add -[no-]integrated-as for clang.Daniel Dunbar2010-02-033-14/+44
| | | | | | | | | | | | | | | | | | | | - Requires backend support, which only exists for i386--darwin currently. No 'as' required: -- ddunbar@ozzy:tmp$ cat t.c int main() { return 42; } ddunbar@ozzy:tmp$ clang -m32 -integrated-as t.c ddunbar@ozzy:tmp$ ./a.out; echo $? 42 ddunbar@ozzy:tmp$ -- The random extra whitespace is how you know its working! :) llvm-svn: 95194
* Driver/Darwin: Don't error/warn on conflicting deployment targets. ApparentlyDaniel Dunbar2010-02-021-5/+14
| | | | | | this is still a popular thing to do. llvm-svn: 95093
* Driver/Darwin: Darwin uses -fobjc-legacy-dispatch on ARM.Daniel Dunbar2010-02-012-1/+6
| | | | llvm-svn: 95006
* Driver/Frontend: Add support for -fobjc-legacy-dispatch, not yet used.Daniel Dunbar2010-02-011-1/+13
| | | | llvm-svn: 95004
* Simplify.Daniel Dunbar2010-01-301-2/+1
| | | | llvm-svn: 94929
* Use StringRef instead of returning a temporary std::string.Benjamin Kramer2010-01-301-1/+1
| | | | | | | | | | | This fixes a really nasty bug in Darwin::getDarwinArchName where we were going StringRef -> temporary std::string -> StringRef (and return the dead StringRef). The StringRefs from Triple live as long as the Triple itself, that should be long enough. Hopefully 2 of 4 MSVC buildbot failures are gone now. llvm-svn: 94892
OpenPOWER on IntegriCloud