summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* Treat the weak export of block runtime symbols as a deployment-targetJohn McCall2011-09-093-0/+13
| | | | | | | | 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
* [driver] When clang crashes, don't try to generate diagnostics (i.e., Chad Rosier2011-09-061-0/+17
| | | | | | preprocessor output) with multiple -arch options. llvm-svn: 139207
* Add the resource directory to the search path for Driver::GetFilePath,Peter Collingbourne2011-09-061-3/+8
| | | | | | | | | | | | | | as well as the search path printed by -print-search-dirs. The main purpose of this change is to cause -print-file-name=include to print the path to the include directory under Clang's resource directory, instead of the system compiler's include directory, whose header files Clang may not be able to parse. Some build scripts will do something like: $(CC) -nostdinc -I`$(CC) -print-file-name=include` to exclude all header paths except the compiler's. llvm-svn: 139127
* default property synthesis is off by defaultFariborz Jahanian2011-09-011-1/+1
| | | | | | for now. llvm-svn: 138958
* objective-c: Make auto synthesis of properties the default.Fariborz Jahanian2011-09-011-1/+1
| | | | | | This concludes //rdar://8843851 llvm-svn: 138947
* 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
* Fix PR10744 by adding the toolchain path to the regular program pathRafael Espindola2011-09-011-5/+6
| | | | | | | and doing a simple search. Before we would manually check for the linker before the -B options were searched. llvm-svn: 138941
* Add 4.4.6 to GccVersions[] in lib/Driver/ToolChains.cpp.Hans Wennborg2011-09-011-1/+1
| | | | llvm-svn: 138940
* 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] If no -miphoneos-version-min is specified on the command line *and*Chad Rosier2011-08-311-35/+31
| | | | | | | IPHONEOS_DEPLOYMENT_TARGET if undefined, set -miphoneos-version-min based on isysroot. llvm-svn: 138892
* Some minor updates to the Linux search path handling for Slackware. Patch ↵Eli Friedman2011-08-291-1/+1
| | | | | | by Will Dietz. PR10692. llvm-svn: 138753
* Cleanup r138662 per Ben and David's suggestions, thanks.Chad Rosier2011-08-261-14/+7
| | | | llvm-svn: 138670
* Make sure the std::string isn't deallocated prior to use. Many thanks to EliChad Rosier2011-08-261-5/+5
| | | | | | for catching this. llvm-svn: 138666
* [driver] When generating temporary files allow a prefix to be added. In manyChad Rosier2011-08-262-7/+19
| | | | | | | | 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
* Take 2: Actually fix spacing.Chad Rosier2011-08-261-3/+2
| | | | llvm-svn: 138617
* 80-column.Chad Rosier2011-08-261-1/+2
| | | | llvm-svn: 138614
* [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
* [driver] Do not add -kext to the link command line when compiling with Chad Rosier2011-08-251-17/+0
| | | | | | | -fapple-kext. Fixes <rdar://problem/10013310>. Reverts <rdar://problem/7809940>. llvm-svn: 138564
* Add support for a verifier to the driver. Currently only verifies debugEric Christopher2011-08-235-9/+73
| | | | | | | | | | | 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-232-5/+10
| | | | | | This matches gcc's behavior. llvm-svn: 138324
* Typo spotted by Ivan Krasin.Chad Rosier2011-08-201-1/+1
| | | | llvm-svn: 138200
* 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
* Add some more options that aren't handled by llvm-gcc on fallback.Eric Christopher2011-08-181-1/+5
| | | | | | This is going to be made a table. llvm-svn: 137907
* [driver] Don't generate diagnostics (i.e., preprocessed source) if reading Chad Rosier2011-08-181-2/+14
| | | | | | | from stdin. This allows Eli and the like to continue with their debugging trickery without loss of limb (or car) on my part. :) llvm-svn: 137906
* Fix else style. No functionality change intended.Chad Rosier2011-08-173-7/+8
| | | | llvm-svn: 137896
* Fix typo.Eric Christopher2011-08-171-9/+9
| | | | llvm-svn: 137893
* Fix iterator end for r137842.Chad Rosier2011-08-171-1/+1
| | | | llvm-svn: 137849
* [driver] Clang doesn't support -mkernel/-fapple-kext for i386, so it's Chad Rosier2011-08-172-0/+15
| | | | | | | | automatically invoking llvm-gcc's cc1plus, which doesn't support all options supported by Clang. Therefore, filter out unsupported options. rdar://9964354 llvm-svn: 137842
* Add additional path to Linux toolchain. Patch by Will Dietz. PR10690.Eli Friedman2011-08-171-0/+3
| | | | llvm-svn: 137839
* Make -findirect-virtual-calls and -fterminated-vtables aliases of -fapple-kext.Bob Wilson2011-08-151-6/+0
| | | | | | | | Outside the driver, they were already treated that way, but the driver was not giving them the same special treatment as -fapple-kext, e.g., falling back to llvm-gcc for i386/Darwin kexts. Radar 9868422. llvm-svn: 137639
* Remove duplicate option.Bob Wilson2011-08-151-1/+0
| | | | llvm-svn: 137638
* Fix "Uninitialized" warnings on g++-4.4.NAKAMURA Takumi2011-08-141-1/+1
| | | | | | In fact, they are false warnings but it seems g++-4.4 might be unable to know they must be false. llvm-svn: 137568
* Reject -mkernel for i386/Darwin C++ code; fall back to llvm-gcc instead.Bob Wilson2011-08-132-2/+4
| | | | | | | Since -mkernel implies -fapple-kext, this just extends the current behavior for -fapple-kext to apply for -mkernel as well. Radar 9933387. llvm-svn: 137566
* Add support of -x objc-cpp-output, -x objc++-cpp-output to the Driver.Nico Weber2011-08-132-6/+8
| | | | | | Matches gcc, and is also required for using ccache with clang. llvm-svn: 137563
* [driver] Make sure to update the iterator end when erasing for Args.Chad Rosier2011-08-121-2/+2
| | | | llvm-svn: 137539
* [driver] When generating clang failure diagnostics, don't try to preprocess Chad Rosier2011-08-121-0/+14
| | | | | | inputs that aren't preprocessable. llvm-svn: 137532
* Return the proper type for objects when given a .o extension.Chad Rosier2011-08-121-0/+1
| | | | llvm-svn: 137531
* [driver] Refactor a bit to enable a few fixes when generating diagnostics. ↵Chad Rosier2011-08-121-14/+25
| | | | | | No functional change intended. llvm-svn: 137524
* If no -miphoneos-version-min specified, see if we can set the default based onChad Rosier2011-08-081-0/+15
| | | | | | | -isysroot. rdar://9837120 llvm-svn: 137075
* Improved efficiency by using iterator returned by erase, rather then restarting.Chad Rosier2011-08-081-4/+4
| | | | | | Thanks to David Blaikie for pointing this out. llvm-svn: 137051
* Fix cmake for r136702 (at least for the most part). Chandler has been kind Chad Rosier2011-08-021-2/+2
| | | | | | | enough to offer to investigate the underlying issue. Thanks to Doug for his assistance as well. llvm-svn: 136719
* Temporarily revert parts of r136702 to make cmake builds happy.Chad Rosier2011-08-021-2/+2
| | | | | | Someone with more cmake experience want to throw me a bone? :) llvm-svn: 136709
OpenPOWER on IntegriCloud