summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* clang: Add support for a CC_PRINT_HEADERS environment variable, which mirrorsDaniel Dunbar2011-02-022-2/+8
| | | | | | | CC_PRINT_OPTIONS and can be used to get some out-of-band information on header usage from a build. llvm-svn: 124751
* Add NetBSD target support. Patch by Joerg Sonnenberger.Benjamin Kramer2011-02-026-0/+306
| | | | llvm-svn: 124736
* Turn on -momit-leaf-frame-pointer by default on all non-Darwin platforms.Nick Lewycky2011-02-021-2/+3
| | | | | | Fixes PR9121! llvm-svn: 124718
* Add support for x86-64 Mandriva 2010.2. Reported by 'rindolf' on IRC!Nick Lewycky2011-02-011-0/+3
| | | | llvm-svn: 124699
* Basic support for -mms-bitfields, from Carl Norum!Douglas Gregor2011-02-011-0/+4
| | | | llvm-svn: 124661
* Add hardcoded -L/usr/lib after all -L options to the FreeBSD linkerRoman Divacky2011-01-301-0/+1
| | | | | | | | invocation. This mimics what gcc does and fixes libtool check for libraries. llvm-svn: 124558
* [analyzer] Enable the self-init checker under command-line option ↵Argyrios Kyrtzidis2011-01-261-0/+1
| | | | | | | | '-analyzer-check-objc-self-init' which by default is enabled by the driver for '--analyze'. llvm-svn: 124266
* improve compatibility with GCC: when generating the ".d" filename to useChris Lattner2011-01-161-1/+1
| | | | | | | and the filename has multiple .'s in it, use the last. For example, "foo.bar.cpp" should produce "foo.bar.d" not "foo.d". Patch by Johan Boule in PR8391 llvm-svn: 123576
* Driver: tweak handling of '--analyze' to invokeTed Kremenek2011-01-141-10/+25
| | | | | | | | | | analyzer -cc1 options that are tailored to the input type. If the input type is "C++", we should only run the dead stores checker (for now). Similarly, checks specific to Objective-C should only run on Objective-C Code. llvm-svn: 123481
* optimize out a temporary sys::PathChris Lattner2011-01-131-3/+2
| | | | llvm-svn: 123359
* replace all uses of PathV1::IsSymlink with PathV2::is_symlink.Michael J. Spencer2011-01-121-1/+2
| | | | llvm-svn: 123344
* Driver: Change -dumpversion to return a GCC compatible answer.Daniel Dunbar2011-01-121-1/+7
| | | | | | - See comment for why. llvm-svn: 123296
* Replace all uses of PathV1::exists with PathV2::fs::exists.Michael J. Spencer2011-01-103-39/+70
| | | | llvm-svn: 123150
* Add all options needed to support -fapple-kext. wip.Fariborz Jahanian2011-01-071-3/+17
| | | | llvm-svn: 122987
* Fold -fobjc-nonfragile-abi2 into -fobjc-nonfragile-abi.Fariborz Jahanian2011-01-041-4/+1
| | | | | | // rdar://8818375 llvm-svn: 122831
* Remove stray emacs mode markers in all these files that was causing emacs toNick Lewycky2010-12-3113-14/+14
| | | | | | | open them in fundamental-mode instead of c++-mode. Also twiddle whitespace for consistency in ToolChains.cpp. llvm-svn: 122646
* Add -fobjc-default-synthesized-properties flagTed Kremenek2010-12-232-0/+13
| | | | | | | | | | | | to allow us to explicitly control whether or not Objective-C properties are default synthesized. Currently this feature only works when using the -fobjc-non-fragile-abi2 flag (so there is no functionality change), but we can now turn off this feature without turning off all the features coupled with -fobjc-non-fragile-abi2. llvm-svn: 122519
* Fix PR8639 by making the "argument unused during compilation" less ↵Rafael Espindola2010-12-202-22/+16
| | | | | | | | agressive. Now we don't warn if an argument is not used because it is shadowed by a subsequent argument. llvm-svn: 122281
* Replace all uses of PathV1::get{Basename,Dirname,Suffix} with their PathV2 ↵Michael J. Spencer2010-12-181-12/+7
| | | | | | equivalents. llvm-svn: 122140
* Replace all uses of PathV1::getLast with PathV2::filename.Michael J. Spencer2010-12-182-12/+10
| | | | llvm-svn: 122117
* Going back to the drawing board with these two awful hacks.Eric Christopher2010-12-171-4/+1
| | | | llvm-svn: 122096
* Fix spelling.Michael J. Spencer2010-12-171-1/+1
| | | | llvm-svn: 122088
* Replace all uses of PathV1::isAbsolute with PathV2::is_{absolute,relative}.Michael J. Spencer2010-12-171-4/+6
| | | | llvm-svn: 122087
* Horrible hack for systems that use -dumpversion with clang to expect versionsEric Christopher2010-12-171-1/+4
| | | | | | that match gcc versions. Eew. llvm-svn: 122080
* MemoryBuffer API update.Michael J. Spencer2010-12-161-18/+10
| | | | llvm-svn: 121956
* Use error_code instead of std::string* for MemoryBuffer.Michael J. Spencer2010-12-091-4/+6
| | | | llvm-svn: 121378
* Driver: M and MM should be grouped together, <rdar://problem/8744831>.Daniel Dunbar2010-12-082-5/+3
| | | | llvm-svn: 121284
* Remove stray emacs mode marker.Nick Lewycky2010-12-011-1/+1
| | | | llvm-svn: 120554
* Driver, Frontend: add CUDA language supportPeter Collingbourne2010-12-011-0/+2
| | | | llvm-svn: 120544
* Handle -nostartfiles.Rafael Espindola2010-12-011-8/+11
| | | | llvm-svn: 120528
* Merge System into Support.Michael J. Spencer2010-11-294-6/+6
| | | | llvm-svn: 120297
* Add missing else.Rafael Espindola2010-11-281-1/+1
| | | | llvm-svn: 120231
* Forward the -fno-elide-constructor argument to clang -cc1. Fixes PR8652.Anders Carlsson2010-11-211-0/+6
| | | | llvm-svn: 119915
* Check for gcc 4.3.4.Rafael Espindola2010-11-191-1/+1
| | | | llvm-svn: 119839
* Driver/Darwin: Don't pass -demangle to an iOS linker, which may not understandDaniel Dunbar2010-11-191-1/+7
| | | | | | it. llvm-svn: 119809
* add support for the i686-pc-linux-gnu triple (used by Gentoo x86)Nuno Lopes2010-11-191-0/+2
| | | | llvm-svn: 119807
* Driver: Ignore -force_cpusubtype_ALL.Daniel Dunbar2010-11-191-0/+3
| | | | llvm-svn: 119803
* Use hasErrorOccurred() instead of getNumErrors() where it makes sense.Argyrios Kyrtzidis2010-11-181-2/+2
| | | | llvm-svn: 119746
* Refactoring of Diagnostic class.Argyrios Kyrtzidis2010-11-181-1/+1
| | | | | | | | | | | -Move the stuff of Diagnostic related to creating/querying diagnostic IDs into a new DiagnosticIDs class. -DiagnosticIDs can be shared among multiple Diagnostics for multiple translation units. -The rest of the state in Diagnostic object is considered related and tied to one translation unit. -Have Diagnostic point to the SourceManager that is related with. Diagnostic can now accept just a SourceLocation instead of a FullSourceLoc. -Reflect the changes to various interfaces. llvm-svn: 119730
* -Rename -Wargument-larger-than -> -Wlarge-by-value-copyArgyrios Kyrtzidis2010-11-181-4/+4
| | | | | | | | | -Improve the diagnostic message -Add some comments Suggestions by Chris. llvm-svn: 119594
* Introduce option -Wargument-larger-than[=N] which warns about function ↵Argyrios Kyrtzidis2010-11-171-0/+9
| | | | | | | | | | definitions if they take by-value or return by-value any POD that is larger than some threshold (default is 64 bytes). Implements rdar://8548050. llvm-svn: 119583
* Implement -pie.Rafael Espindola2010-11-171-6/+19
| | | | llvm-svn: 119577
* Don't warn aboutRafael Espindola2010-11-171-0/+3
| | | | | | | clang -w -c foo.s Helps with the gdb testsuite. llvm-svn: 119574
* Don't warn about -w not being used in a link. Necessary to get saneRafael Espindola2010-11-171-0/+3
| | | | | | results in the gdb testsuite. llvm-svn: 119552
* Silence warning for "clang -O2 -O0 -c foo.c -o foo.o.Rafael Espindola2010-11-171-0/+3
| | | | | | Fixes PR8607. llvm-svn: 119498
* Add support for distros that like x86_64-unknown-linux-gnu.Rafael Espindola2010-11-171-0/+2
| | | | llvm-svn: 119425
* Fixes PR8611.Rafael Espindola2010-11-151-0/+3
| | | | | | | | Silence warning about -g not being used during linking. I couldn't find any change in behavior in gcc liking when given -g. Please open another bug if I missed something. llvm-svn: 119166
* Add driver support for Ubuntu 9.10.Zhongxing Xu2010-11-151-4/+10
| | | | llvm-svn: 119137
* Driver: Support -Oz as an alias for -Os.Daniel Dunbar2010-11-131-0/+4
| | | | llvm-svn: 119003
* Add support for -nostdlib in the linux toolchain.Rafael Espindola2010-11-121-50/+54
| | | | llvm-svn: 118878
OpenPOWER on IntegriCloud