summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a limit on the depth of the template instantiation backtraceDouglas Gregor2010-04-201-0/+6
| | | | | | | | | | | | | | | | we will print with each error that occurs during template instantiation. When the backtrace is longer than that, we will print N/2 of the innermost backtrace entries and N/2 of the outermost backtrace entries, then skip the middle entries with a note such as: note: suppressed 2 template instantiation contexts; use -ftemplate-backtrace-limit=N to change the number of template instantiation entries shown This should eliminate some excessively long backtraces that aren't providing any value. llvm-svn: 101882
* Add support for '-fgnu-keywords' and '-fasm' to Clang's driver. They are notChandler Carruth2010-04-171-0/+10
| | | | | | | | implemented precisely the same as GCC, but the distinction GCC makes isn't useful to represent. This allows parsing code which uses GCC-specific keywords ('asm', etc.) without parsing in a fully GNU mode. llvm-svn: 101667
* Driver: Add missing claim() for -mllvm options.Daniel Dunbar2010-04-171-0/+2
| | | | llvm-svn: 101618
* Tidy up comment.Daniel Dunbar2010-04-151-4/+3
| | | | llvm-svn: 101357
* Driver/Frontend: Add support for -mllvm, which forwards options to the LLVM ↵Daniel Dunbar2010-04-151-1/+11
| | | | | | | | option parser. - Note that this is a behavior change, previously -mllvm at the driver level forwarded to clang -cc1. The driver does a little magic to make sure that '-mllvm -disable-llvm-optzns' works correctly, but other users will need to be updated to use -Xclang. llvm-svn: 101354
* add haiku support, patch by Paul Davey!Chris Lattner2010-04-111-0/+5
| | | | llvm-svn: 100982
* Driver: Only add extra -L paths on darwin if they exist. Unfortunately, thisDaniel Dunbar2010-04-101-6/+15
| | | | | | | | means it isn't really possible to write the test case for this code, but this is the kind of thing that really requires testing against the installed compiler anyway. llvm-svn: 100935
* Driver: Ignore -fobjc-gc and -fobjc-gc-only for platforms which don't ↵Daniel Dunbar2010-04-103-2/+22
| | | | | | support them. llvm-svn: 100930
* Driver/Darwin/x86: When linking, incorporate -L paths based on the path whereDaniel Dunbar2010-04-101-0/+7
| | | | | | | | | Clang is installed. This is designed to match gcc, and is important when installed in a non-standard location. - This is gross, but no worse than ever. It will die when we finally move to the compiler-rt based toolchain, any day now. llvm-svn: 100915
* Turn access control on by default in the driver.John McCall2010-04-091-2/+2
| | | | llvm-svn: 100882
* Turn access control on by default in -cc1.John McCall2010-04-091-4/+4
| | | | | | | | Remove -faccess-control from -cc1; add -fno-access-control. Make the driver pass -fno-access-control by default. Update a bunch of tests to be correct under access control. llvm-svn: 100880
* 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
OpenPOWER on IntegriCloud