summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Driver/Obj-C: Be compatible with GCC behavior in that -fno-exceptions *does not*Daniel Dunbar2011-03-171-19/+10
| | | | | | disable Obj-C exceptions. llvm-svn: 127836
* Driver/Darwin: These are command line options, not target features.Daniel Dunbar2011-03-171-2/+2
| | | | llvm-svn: 127820
* Driver/Darwin: Suppress spurious warning about -force_cpusubtype_ALL.Daniel Dunbar2011-03-171-1/+2
| | | | llvm-svn: 127819
* Driver/Darwin/ARM: Kernel/kext code has more strict alignment requirements.Daniel Dunbar2011-03-171-4/+14
| | | | llvm-svn: 127815
* Driver/ARM: Match GCC behavior in that -msoft-float disables NEON, despite thisDaniel Dunbar2011-03-171-0/+7
| | | | | | not being consistent at all with other parts of the GCC implementation. llvm-svn: 127777
* Re-enable the IdempotentOperations checker for --analyze, and put it and the ↵Ted Kremenek2011-03-121-1/+2
| | | | | | DeadStores checker into the "deadcode" group. llvm-svn: 127531
* If called as *cpp or *cpp-[^-]*, run only the preprocessor. If noJoerg Sonnenberger2011-03-061-2/+2
| | | | | | | input is specified, use stdin implicitly. Based on a patch from Roman Divacky. llvm-svn: 127137
* Fix driver for thumb-capable ARM hosts, from Mikko Lehtonen!Douglas Gregor2011-03-061-3/+7
| | | | llvm-svn: 127128
* build: Allow disabling movt/movw from build, for testing purposes.Daniel Dunbar2011-03-021-0/+6
| | | | llvm-svn: 126810
* Driver/Darwin: Be bug compatible with GCC and ignore -pg on ARM.Daniel Dunbar2011-03-011-3/+6
| | | | llvm-svn: 126767
* The default CPU on FreeBSD for i386 should be i486, not pentium4.Roman Divacky2011-03-011-0/+5
| | | | | | Patch by Dimitry Andric! llvm-svn: 126763
* For linking on FreeBSD, don't add a hardcoded "-L/usr/lib", butRoman Divacky2011-03-011-7/+7
| | | | | | | | | | | retrieve the library paths from the ToolChain object instead. Copy the relevant code from linuxtools::Link::ConstructJob(), and replace the std::string stuff with llvm::StringRef, while we're here. Patch by Dimitry Andric! llvm-svn: 126757
* Implement -mrtd which sets the StdCall calling convention to be the defaultRoman Divacky2011-03-011-0/+3
| | | | | | one. llvm-svn: 126756
* Disable more warnings so that it is safe to useRafael Espindola2011-03-011-0/+8
| | | | | | | CC="clang -use-gold-plugin -emit-llvm" CXX="clang++ -use-gold-plugin -emit-llvm" llvm-svn: 126740
* Don't warn about "clang -use-gold-plugin -c ...". With this users can sayRafael Espindola2011-02-281-0/+2
| | | | | | | CC="clang -use-gold-plugin" CFLAGS=-emit-llvm ../configure... and not be hit with a warning for each .c file. llvm-svn: 126713
* [analyzer] Remove '-analyzer-check-objc-mem' flag, the nominee for best ↵Argyrios Kyrtzidis2011-02-281-4/+0
| | | | | | misnomer award. llvm-svn: 126676
* Make -fobjc-nonfragile-abi and -fgnu-runtime imply -fblocks (unless ↵David Chisnall2011-02-281-1/+4
| | | | | | -fno-blocks is specified), because this combination of flags defines an Objective-C runtime that includes a blocks runtime. llvm-svn: 126654
* Fix a tiny goof in the Driver's logic which caused the explicit presenceChandler Carruth2011-02-281-1/+1
| | | | | | | | of -fexceptions to disably C++ exceptions. The correct code was in the ObjC branch, this just mirrors that logic on the C++ side of things. Thanks to John Wiegley for pointing this out. llvm-svn: 126640
* Add a -fcxx-exceptions flag to the frontend, which can be used to enableAnders Carlsson2011-02-281-21/+74
| | | | | | | | | | C++ exceptions, even when exceptions have been turned off using -fno-exceptions. Make the -fobjc-exceptions flag do the same thing, but for Objective-C exceptions. C++ and Objective-C exceptions can also be disabled using -fno-cxx-excptions and -fno-objc-exceptions. llvm-svn: 126630
* [analyzer] Move the DeadStores checker out of the 'core' package.Argyrios Kyrtzidis2011-02-281-0/+2
| | | | | | | -Now it gets enabled with '-analyzer-checker=DeadStores'. -The driver passes the above flag by default. llvm-svn: 126612
* Factor code out into a helper function, ↵Anders Carlsson2011-02-281-11/+20
| | | | | | shouldUseExceptionTablesForObjCExceptions. llvm-svn: 126601
* Make clang -cc1 disable Objective-C exceptions by default, and add a ↵Anders Carlsson2011-02-221-4/+4
| | | | | | | | -fobjc-exceptions flag to turn them on. Update all tests accordingly. llvm-svn: 126177
* Pass the right linker flag in openbsd::Link::ConstructJob,Chris Lattner2011-02-211-1/+1
| | | | | | patch by Matthew Dempsky! llvm-svn: 126133
* Add a new ObjCExceptions member variable to LangOptions. This controls ↵Anders Carlsson2011-02-191-0/+5
| | | | | | whether Objective-C exceptions are enabled or not (they are by default). llvm-svn: 126061
* [analyzer] '-analyzer-check-objc-mem' can go through the llvm/clang codebase ↵Argyrios Kyrtzidis2011-02-191-7/+4
| | | | | | without crashing; enable it for C++. llvm-svn: 126026
* Driver/Darwin: Support -Wl, with -Xarch_. This doesn't work naturally because ofDaniel Dunbar2011-02-191-0/+4
| | | | | | the special way we model "linker input" arguments. llvm-svn: 126023
* [analyzer] Use the new registration mechanism on the ↵Argyrios Kyrtzidis2011-02-171-11/+0
| | | | | | | | | | | | | non-path-sensitive-checkers: DeadStoresChecker ObjCMethSigsChecker ObjCUnusedIvarsChecker SizeofPointerChecker ObjCDeallocChecker SecuritySyntaxChecker llvm-svn: 125779
* Triple::MinGW64 is deprecated and removed. We can use Triple::MinGW32 instead.NAKAMURA Takumi2011-02-171-2/+1
| | | | | | No one uses *-mingw64. mingw-w64 is represented as {i686|x86_64}-w64-mingw32. llvm-svn: 125742
* Fix whitespace.NAKAMURA Takumi2011-02-171-3/+3
| | | | llvm-svn: 125741
* [analyzer] Use the new registration mechanism on the IdempotentOperationChecker.Argyrios Kyrtzidis2011-02-151-1/+0
| | | | llvm-svn: 125611
* [analyzer] Use the new registration mechanism on some of the internal ↵Argyrios Kyrtzidis2011-02-151-0/+7
| | | | | | | | | | | | | checks. These are: StackAddrLeakChecker ObjCAtSyncChecker UnixAPIChecker MacOSXAPIChecker The rest have/create implicit dependencies between checkers and need to be handled differently. llvm-svn: 125559
* [analyzer] Overhauling of the checker registration mechanism.Argyrios Kyrtzidis2011-02-141-1/+3
| | | | | | | | | | | | | | -Checkers will be defined in the tablegen file 'Checkers.td'. -Apart from checkers, we can define checker "packages" that will contain a collection of checkers. -Checkers can be enabled with -analyzer-checker=<name> and disabled with -analyzer-disable-checker=<name> e.g: Enable checkers from 'cocoa' and 'corefoundation' packages except the self-initialization checker: -analyzer-checker=cocoa -analyzer-checker=corefoundation -analyzer-disable-checker=cocoa.SelfInit -Introduces CheckerManager and CheckerProvider. CheckerProviders get the set of checker names to enable/disable and register them with the CheckerManager which will be the entry point for all checker-related functionality. Currently only the self-initialization checker takes advantage of the new mechanism. llvm-svn: 125503
* Add braces to quiet a gcc warning.Matt Beaumont-Gay2011-02-101-1/+2
| | | | llvm-svn: 125309
* Adjust the object files to be linked in when mcount profilingRoman Divacky2011-02-101-7/+33
| | | | | | is specified in the FreeBSD linker driver. llvm-svn: 125285
* Implement mcount profiling, enabled via -pg.Roman Divacky2011-02-101-7/+5
| | | | llvm-svn: 125282
* Driver/Frontend: Wire up -mregparm=.Daniel Dunbar2011-02-091-0/+5
| | | | llvm-svn: 125201
* Add better support for ARM EABI triples.Bob Wilson2011-02-041-10/+22
| | | | | | Patch by Renato Golin! llvm-svn: 124878
* Driver: Fix spurious warning (from -cc1) about unused -fapple-kext on C inputs.Daniel Dunbar2011-02-041-1/+1
| | | | llvm-svn: 124875
* build: Add support for DISABLE_DEFAULT_STRICT_ALIASING, which does what oneDaniel Dunbar2011-02-041-3/+3
| | | | | | might expect. llvm-svn: 124848
* clang: Add support for a CC_PRINT_HEADERS environment variable, which mirrorsDaniel Dunbar2011-02-021-0/+5
| | | | | | | 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-021-0/+152
| | | | 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
* 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
* Replace all uses of PathV1::exists with PathV2::fs::exists.Michael J. Spencer2011-01-101-3/+5
| | | | 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
OpenPOWER on IntegriCloud