summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
* - Fixes openSUSE detection for 11.4 and upcoming 12.1David Chisnall2011-05-191-2/+9
| | | | | | | | - Adds gcc 4.6 to gcc list so that linking will work on openSUSE 12.1 Patch by İsmail Dönmez! llvm-svn: 131637
* Add some support for RHEL5 systems.Eric Christopher2011-05-171-1/+2
| | | | llvm-svn: 131505
* Fix comment.Rafael Espindola2011-05-171-1/+1
| | | | llvm-svn: 131478
* The logic about -static is darwin only. For now assume that all nonRafael Espindola2011-05-171-15/+22
| | | | | | darwin assembler can handle cfi. Add a test. llvm-svn: 131464
* Make the triple an explicit argument of FindTargetProgramPath.Joerg Sonnenberger2011-05-165-21/+43
| | | | | | | | | | Preserve the original triple in the NetBSD toolchain when using -m32 or -m64 and the resulting effective target is different from the triple it started with. This allows -m32 to use the same assembler/linking in cross-compiling mode and avoids confusion about passing down target specific flags in that case like --32. llvm-svn: 131404
* Driver/Darwin: Put dsymutil -o arguments first, so that dysmutil doesn't barfDaniel Dunbar2011-05-091-3/+3
| | | | | | | when POSIXLY_COMPLIANT is set. - Patch by Dave Vasilevsky! llvm-svn: 131084
* Move logic for passing down -mrelax-all / -relax-all into a commonJoerg Sonnenberger2011-05-061-14/+37
| | | | | | | | function. Extend the logic to check if the input was compiled. Use -relax-all as default only if -O0 is used for compilation. Fixes bug 9290. llvm-svn: 130983
* Rename ContainsCompileAction to ContainsCompileOrAssembleAction toJoerg Sonnenberger2011-05-061-5/+5
| | | | | | properly reflect its behavior. llvm-svn: 130981
* Preserve the full name of the file, so that '-c -o foo.pic.o' producesNick Lewycky2011-05-051-6/+2
| | | | | | foo.pic.gcno instead of foo.gcno. llvm-svn: 130899
* Record where the GCOV data files should be placed.Nick Lewycky2011-05-041-0/+12
| | | | llvm-svn: 130866
* No, fix this use after free properly.Nick Lewycky2011-05-041-3/+2
| | | | llvm-svn: 130833
* Fix use after free through StringRef.Nick Lewycky2011-05-041-2/+3
| | | | llvm-svn: 130828
* Add the -mstackrealign option which just communicates the need toEric Christopher2011-05-021-0/+6
| | | | | | | | force align the stack to the backend. Fixes rdar://9289631 llvm-svn: 130725
* Driver/Darwin: Honor --sysroot= when invoking the linker, on Darwin.Daniel Dunbar2011-05-021-6/+11
| | | | llvm-svn: 130723
* Disable CFI if not using the integrated assembler. We should probably do ↵Rafael Espindola2011-05-021-5/+21
| | | | | | | | this only for OS X, but it is probably not all that important. llvm-svn: 130697
* Implement -fno-dwarf2-cfi-asm.Rafael Espindola2011-04-301-0/+6
| | | | llvm-svn: 130616
* Driver/Darwin: Don't link -lgcc_s.1 when compiling as iOS for the simulator,Daniel Dunbar2011-04-301-1/+4
| | | | | | | that library has never been in the SDK. Fortunately, it shouldn't be necessary, since that library was also removed in 10.6. llvm-svn: 130595
* Driver/Darwin: When using -mios-simulator-version-min, explicitly pass this onDaniel Dunbar2011-04-301-2/+14
| | | | | | | | to the linker. - Only do this explicitly with the argument for now, the linker will need to explicitly add support for this. llvm-svn: 130594
* Driver/Darwin: Reject invalid arch combinations withDaniel Dunbar2011-04-301-0/+7
| | | | | | -mios-simulator-version-min. llvm-svn: 130593
* Driver/Darwin: Change Darwin toolchain to explicitly track is-ios-sim bit, andDaniel Dunbar2011-04-302-12/+24
| | | | | | update -mios-simulator-version-min to set it. llvm-svn: 130592
* Driver/Darwin: Sketch initial support for a -mios-simulator-version-min= flagDaniel Dunbar2011-04-302-26/+51
| | | | | | and associated deployment target environment variable. llvm-svn: 130591
* Add -Oz option and use it to set the inline threshold to 25.Bob Wilson2011-04-291-4/+0
| | | | | | Radar 9333566. Patch by Chad Rosier! llvm-svn: 130554
* Driver/cc1as: Forward -mllvm arguments when compiling assembly files.Daniel Dunbar2011-04-291-0/+1
| | | | llvm-svn: 130516
* Driver/Darwin/ld: Set the deployment target following the version information inDaniel Dunbar2011-04-281-15/+12
| | | | | | the tool chain, instead of based on the translated arguments. llvm-svn: 130440
* Make the top-level driver ignore -fobjc-default-synthesize-properties while ↵Ted Kremenek2011-04-281-0/+6
| | | | | | this feature undergoes more review and development. This is still available as a -cc1 option for testing. llvm-svn: 130424
* Driver: When compilation fails, don't try to remove output files we don't haveDaniel Dunbar2011-04-251-0/+6
| | | | | | write access to. llvm-svn: 130150
* Let clang detect gcc triple on Ubuntu Natty. Patch by Thomas Jablin.Nico Weber2011-04-251-2/+5
| | | | llvm-svn: 130119
* Move all of the logic for __DEPRECATED to the driver based on commentsChandler Carruth2011-04-231-8/+6
| | | | | | from dgregor. llvm-svn: 130066
* Fix Clang's __DEPRECATED define to be controled by -Wdeprecated. ThisChandler Carruth2011-04-231-0/+11
| | | | | | | | | | | | | | | | | | matches GCC behavior which libstdc++ uses to limit #warning-based messages about deprecation. The machinery involves threading this through a new '-fdeprecated-macro' flag for CC1. The flag defaults to "on", similarly to -Wdeprecated. We turn the flag off in the driver when the warning is turned off (modulo matching some GCC bugs). We record this as a language option, and key the preprocessor on the option when introducing the define. A separate flag rather than a '-D' flag allows us to properly represent the difference between C and C++ builds (only C++ receives the define), and it allows the specific behavior of following -Wdeprecated without potentially impacting the set of user-provided macro flags. llvm-svn: 130055
* There were some frustrating problems with the implementation ofChandler Carruth2011-04-231-0/+9
| | | | | | | | | | | | | | | | | | | | -Wwrite-strings. First and foremost, once the positive form of the flag was passed, it could never be disabled by passing -Wno-write-strings. Also, the diagnostic engine couldn't in turn use -Wwrite-strings to control diagnostics (as GCC does) because it was essentially hijacked to drive the language semantics. Fix this by giving CC1 a clean '-fconst-strings' flag to enable const-qualified strings in C and ObjC compilations. Corresponding '-fno-const-strings' is also added. Then the driver is taught to introduce '-fconst-strings' in the CC1 command when '-Wwrite-strings' dominates. This entire flag is basically GCC-bug-compatibility driven, so we also match GCC's bug where '-w' doesn't actually disable -Wwrite-strings. I'm open to changing this though as it seems insane. llvm-svn: 130051
* Add -fdelayed-template-parsing option. Using this option all templated ↵Francois Pichet2011-04-221-0/+6
| | | | | | | | | function definitions are parsed at the end of the translation unit only if it is required by an actual instantiation. As such all the symbols of the TU are available during name lookup. Using this flag is necessary for compatibility with Microsoft template code. This also provides some parsing speed improvement. llvm-svn: 130022
* Wire up the -ftest-coverage and -fprofile-arcs flags to .gcno file emission (atNick Lewycky2011-04-211-0/+7
| | | | | | | | | compile time) and .gcda emission (at runtime). --coverage enables both. This does not yet add the profile_rt library to the link step if -fprofile-arcs is enabled when linking. llvm-svn: 129956
* Fix indentation. No functional change.Nick Lewycky2011-04-211-2/+2
| | | | llvm-svn: 129954
* Driver/Darwin: Allow OS X deployment targets like 10.4.11, even though theyDaniel Dunbar2011-04-211-1/+1
| | | | | | can't be represented in the environment define. llvm-svn: 129939
* Driver: Tweak -Xarch diags a bit more, we can't actually differentiate betweenDaniel Dunbar2011-04-211-5/+1
| | | | | | | unknown and "required more arguments", but only the latter should be feasible in practice. llvm-svn: 129919
* Driver: Improve -Xarch argument diagnostics a bit.Daniel Dunbar2011-04-211-3/+10
| | | | llvm-svn: 129918
* Driver: Suppress some additional warnings with -Qunused-arguments.Daniel Dunbar2011-04-201-0/+4
| | | | llvm-svn: 129853
* Driver/Darwin: Switch to using -macosx for OS name in triples.Daniel Dunbar2011-04-191-1/+1
| | | | llvm-svn: 129834
* Driver/Darwin: Switch to using new style triples.Daniel Dunbar2011-04-191-16/+4
| | | | llvm-svn: 129824
* Driver/Darwin: Change to use generic iOS runtime library, which we now ↵Daniel Dunbar2011-04-181-4/+2
| | | | | | always need. llvm-svn: 129734
* Driver/Darwin: Disable movw/movt with -mkernel or -fapple-kext.Daniel Dunbar2011-04-181-0/+6
| | | | llvm-svn: 129721
* Driver: Support -fno-lto.Daniel Dunbar2011-04-181-1/+2
| | | | llvm-svn: 129712
* Add ToolChain path support for linker on Slackware.Ted Kremenek2011-04-181-0/+3
| | | | llvm-svn: 129704
* Initial work to improve documentation for Clang's diagnostics, from Matthieu ↵Douglas Gregor2011-04-151-0/+5
| | | | | | Monrocq llvm-svn: 129614
* fix a bunch of comment typos found by codespell. Patch byChris Lattner2011-04-155-8/+8
| | | | | | Luis Felipe Strano Moraes! llvm-svn: 129559
* Driver/no-integrated-as: Fix forwarding of -g flag to assembler, when .s inputDaniel Dunbar2011-04-121-5/+10
| | | | | | undergoes preprocessing. llvm-svn: 129414
* fix the path to ld.so for darwin/ppc, resolving PR9677. PatchChris Lattner2011-04-111-2/+2
| | | | | | by Jeremy Huddleston! llvm-svn: 129299
* refactor -ccc-gcc-name codeDylan Noblesmith2011-04-092-16/+22
| | | | | | | | | | | | Put the logic for deciding the default name for gcc/g++ in the only place that actually cares about it. This also pushes an ifdef out of the generic driver code to a little further down, when the target is actually known. Hopefully it can be changed into just a runtime check in the future. llvm-svn: 129212
* Rename -mtrap_function= to -ftrap_function= since it's now a target neutral ↵Evan Cheng2011-04-081-11/+7
| | | | | | options. llvm-svn: 129153
* Add -mtrap_function=<> option. rdar://9257465Evan Cheng2011-04-081-0/+11
| | | | llvm-svn: 129145
OpenPOWER on IntegriCloud