summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove the SystemZ backend.Dan Gohman2011-10-241-3/+0
| | | | llvm-svn: 142879
* Have -fms-no-extensions turn off -fms-compatibilityDouglas Gregor2011-10-241-2/+6
| | | | llvm-svn: 142798
* lib/Driver/Tools.cpp: Use PathV2::is_absolute() to add ↵NAKAMURA Takumi2011-10-221-1/+1
| | | | | | -fdebug-compilation-dir. pwd[0] might not be '/' on Win32 hosts. llvm-svn: 142720
* Take DW_AT_comp_dir from $PWD when it's present and starts with a '/'. This isNick Lewycky2011-10-211-0/+10
| | | | | | | closer to what GCC does, except that GCC also checks that the inodes for $PWD and '.' match. llvm-svn: 142633
* Frontend: Support -iframework.Daniel Dunbar2011-10-181-4/+0
| | | | llvm-svn: 142418
* Wire up support for the controlling the extended dwarf .file directive. WithNick Lewycky2011-10-171-0/+15
| | | | | | | r142300 but not this patch, clang -S may emit .s files that assemblers other than llvm-mc can't parse. llvm-svn: 142301
* Implement -static-libstdc++ for linux.Rafael Espindola2011-10-171-0/+6
| | | | llvm-svn: 142290
* Implement -static-libgcc on linux and refactor the code responsible for addingRafael Espindola2011-10-171-31/+27
| | | | | | libgcc to the link line into a helper function. llvm-svn: 142269
* Use Triple.isOSDarwin() instead of comparing against Triple::Darwin.Bob Wilson2011-10-141-13/+14
| | | | | | | | | There are now separate Triple::MacOSX and Triple::IOS values for the OS so comparing against Triple::Darwin will fail to match those. Note that I changed the expected output for the Driver/rewrite-objc.m test, which had previously not been passing Darwin-specific options with the macosx triple. llvm-svn: 141944
* Rename -Wc++0x-compat, -Wc++0x-extensions and -Wc++0x-narrowing from c++0x toRichard Smith2011-10-131-1/+3
| | | | | | | c++11. The old names are kept for backwards-compatibility. Patch by Ahmed Charles! Names for backwards-compatible DiagGroups removed by me. llvm-svn: 141913
* The Objective-C rewriter uses the fragile ABI, always.Douglas Gregor2011-10-121-1/+3
| | | | llvm-svn: 141795
* Driver: Add support for a new -nostdlibinc option.Daniel Dunbar2011-10-111-0/+2
| | | | | | | | | | | | - This disables the system include directories, but not the compiler builtin directories. Useful for projects that want to use things like the intrinsic headers, but are otherwise freestanding. - I'm willing to reconsider the option naming, I also considered providing an explicit -builtinc (which would match -nobuiltininc), but this is more consistent with existing options. llvm-svn: 141692
* Frontend: Replace -nostdinc by -nostdsysteminc (which is just system includeDaniel Dunbar2011-10-111-3/+8
| | | | | | paths). The -nostdinc behavior is now -nostdsysteminc + -nobuiltininc. llvm-svn: 141691
* Link in Scrt1.o instead of crt1.o when -pie is specified.Roman Divacky2011-10-101-2/+4
| | | | llvm-svn: 141573
* [arcmt] Ignore linking errors when doing ARC migration, rdar://10247606Argyrios Kyrtzidis2011-10-071-0/+12
| | | | llvm-svn: 141434
* More cleanup using StringSwitch.Chad Rosier2011-10-071-65/+35
| | | | llvm-svn: 141373
* Remove DISABLE_ARM_DARWIN_USE_MOVT ifdefs. Radar 9456730.Bob Wilson2011-10-061-8/+0
| | | | llvm-svn: 141320
* Add -Wlanguage-extension-token option for ext_token_used warning.Ivan Krasin2011-10-061-0/+1
| | | | llvm-svn: 141268
* Driver & AST: Implement support for -fpack-struct and -fpack-struct= commandDaniel Dunbar2011-10-051-0/+12
| | | | | | | line options. - <rdar://problem/10120602>, PR9631 llvm-svn: 141211
* [driver] Improve r141053 by only emitting the warning if the original inputChad Rosier2011-10-041-15/+1
| | | | | | | was assembly. Otherwise, something like -save-temps causes the integrated assembler to warn. llvm-svn: 141127
* [driver] Improve r141053 by only emitting the warning if the original inputChad Rosier2011-10-041-2/+12
| | | | | | | was assembly. Otherwise, something like -save-temps causes the integrated assembler to warn. llvm-svn: 141055
* [driver] Emit a warning if the user has requested debug information and we'reChad Rosier2011-10-041-1/+5
| | | | | | | using the integrated assembler. rdar://10216353 llvm-svn: 141053
* Make -fobjc-nonfragile-abi the -cc1 default, since it's theJohn McCall2011-10-021-3/+3
| | | | | | | | | | | | | | | | | | | increasingly prevailing case to the point that new features like ARC don't even support the fragile ABI anymore. This required a little bit of reshuffling with exceptions because a check was assuming that ObjCNonFragileABI was only being set in ObjC mode, and that's actually a bit obnoxious to do. Most, though, it involved a perl script to translate a ton of test cases. Mostly no functionality change for driver users, although there are corner cases with disabling language-specific exceptions that we should handle more correctly now. llvm-svn: 140957
* Remove the conditional that avoided passing the Objective-C runtime ↵David Chisnall2011-09-301-74/+72
| | | | | | specification flags to cc1. This fixes PR10369 (__builtin_NSStringMakeConstantString() selecting the wrong runtime in C / C++ code and crashing, although it doesn't fix the problem that instantiating the Mac runtime for non-Darwin targets was crashing.) llvm-svn: 140853
* Check for GCC paths that have the target triple in them. This is required ↵David Chisnall2011-09-271-18/+2
| | | | | | for a lot of cross-compile toolchains. Also add some slightly better support for -B. llvm-svn: 140645
* Make necessary changes in AddMIPSTargetArgs for targeting Mips64. Enable use ofAkira Hatanaka2011-09-261-16/+52
| | | | | | | -mcpu. llvm-svn: 140562
* Switch assert(0/false) llvm_unreachable.David Blaikie2011-09-231-1/+1
| | | | llvm-svn: 140367
* Add support for CPATH and friends.Benjamin Kramer2011-09-221-0/+49
| | | | | | | | | | | | This moves the existing code for CPATH into the driver and adds the environment lookup and path splitting there. The paths are then passed down to cc1 with -I options (CPATH), added after the normal user-specified include dirs. Language specific paths are passed via -LANG-isystem and the actual filtering is performed in the frontend. I tried to match GCC's behavior as close as possible Fixes PR8971. llvm-svn: 140341
* Add case labels for Mips64 architectures.Akira Hatanaka2011-09-211-0/+2
| | | | llvm-svn: 140226
* [driver] Default to arm mode when using the integrated assembler.Chad Rosier2011-09-201-1/+2
| | | | | | rdar://10125227 llvm-svn: 140179
* As per discussion with Doug Gregor on the IRC channel, introduce a new ↵Francois Pichet2011-09-171-0/+5
| | | | | | | | | | | | compiler switch: -fms-compatility. Microsoft specific tweaking will now fall into 2 categories: - fms-extension: Microsoft specific extensions that should never change the meaning of an otherwise well formed code. Currently map to LangOptions::Microsoft. (To be clearer, I am planning to change the name to LangOptions::MicrosoftExt). - fms-compatibility: Really a MSVC emulation mode. Map to LangOptions::MicrosoftMode. Can change the meaning of an otherwise standard conformant program. llvm-svn: 139978
* Pass -fmodule-cache-path along to -cc1 properlyDouglas Gregor2011-09-171-1/+0
| | | | llvm-svn: 139977
* Add an experimental flag -fauto-module-import that automatically turnsDouglas Gregor2011-09-151-0/+2
| | | | | | | #include or #import direcctives of framework headers into module imports of the corresponding framework module. llvm-svn: 139860
* Teach the driver to always pass down a module cache path. If none isDouglas Gregor2011-09-141-0/+15
| | | | | | | supplied, use something derived from the system's temporary directory. Depends on LLVM r139725. llvm-svn: 139726
* Treat the weak export of block runtime symbols as a deployment-targetJohn McCall2011-09-091-0/+4
| | | | | | | | feature akin to the ARC runtime checks. Removes a terrible hack where IR gen needed to find the declarations of those symbols in the translation unit. llvm-svn: 139404
* [driver] i386 kext preprocessor jobs also need their unsupported options Chad Rosier2011-09-081-0/+2
| | | | | | | filtered. This happenis when -save-temps is specified. <rdar://problem/10088387> llvm-svn: 139269
* Enable -fdelayed-template-parsing by default on Win32.Francois Pichet2011-09-011-2/+3
| | | | | | I had to force -fno-delayed-template-parsing on some Index tests because delayed template parsing will change the output of some tests. llvm-svn: 138942
* objective-c: this patch (re)introduces objective-c's default propertyFariborz Jahanian2011-08-311-6/+0
| | | | | | | | | | synthesis. This new feature is currently placed under -fobjc-default-synthesize-properties option and is off by default pending further testing. It will become the default feature soon. // rdar://8843851 llvm-svn: 138913
* [driver] When generating temporary files allow a prefix to be added. In manyChad Rosier2011-08-261-2/+2
| | | | | | | | cases we want the prefix to be the original file name less the suffix. For an input such as test.c to named temporary would be something like test-3O4Clq.o Part of <rdar://problem/8314451> llvm-svn: 138662
* [driver] Remove a few more options when clang invokes cc1plus for i386 kexts.Chad Rosier2011-08-261-93/+111
| | | | | | <rdar://problem/10027287> llvm-svn: 138637
* [driver] Add -mglobal-merge/-mno-global-merge machine options to ↵Chad Rosier2011-08-261-0/+8
| | | | | | | | | enable/disable merging of globals during codegen. Fixes <rdar://problem/10017909>. llvm-svn: 138612
* revert 138610, accidental commit.Francois Pichet2011-08-261-12/+2
| | | | llvm-svn: 138611
* (no commit message)Francois Pichet2011-08-261-2/+12
| | | | llvm-svn: 138610
* Add support for a verifier to the driver. Currently only verifies debugEric Christopher2011-08-231-0/+20
| | | | | | | | | | | output on darwin so is hard coded there. As a note this will need a little bit of refactoring in the class hierarchy to separate it out for different verifiers based on input type. Fixes rdar://8256258. llvm-svn: 138343
* enable -fstack-protector on 10.5 for usermode binaries by default.Nico Weber2011-08-231-2/+4
| | | | | | This matches gcc's behavior. llvm-svn: 138324
* Add a completely hacky workaround for pch kext files with different extensionsEric Christopher2011-08-191-18/+24
| | | | | | | | when falling back to cc1plus for our compile. rdar://9963920 llvm-svn: 138017
* Use StringRef, rather than C string APIs.Chad Rosier2011-08-181-5/+6
| | | | llvm-svn: 137958
* No seriously, remove the unsupported warning options.Chad Rosier2011-08-181-1/+1
| | | | llvm-svn: 137918
* Fix off by one.Chad Rosier2011-08-181-1/+1
| | | | llvm-svn: 137915
* [driver] Implement in a more table-like manner and add many more warning optionsChad Rosier2011-08-181-5/+99
| | | | | | | that aren't handled by llvm-gcc on fallback. Enhancement to rdar://9964354 llvm-svn: 137912
OpenPOWER on IntegriCloud