summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
Commit message (Collapse)AuthorAgeFilesLines
...
* Add support for centos.Rafael Espindola2011-06-031-4/+9
| | | | llvm-svn: 132550
* 80-col cleanup.Eric Christopher2011-06-031-5/+11
| | | | llvm-svn: 132543
* Untabify and fix whitespace.NAKAMURA Takumi2011-06-031-17/+17
| | | | llvm-svn: 132531
* We already have support for using c++ headers from a custom location.Rafael Espindola2011-06-021-26/+53
| | | | | | | | | | | | | Before this patch we would still link with the system libstdc++. It worked fine most of the time, but would break if the used headers were a lot newer than the system libraries. This patch changes the driver to use the libraries corresponding to the headers the user selected. This fixes, for example, using 4.5 headers in a system with gcc 4.1. llvm-svn: 132497
* Add Debian wheezy/sid to ToolChains.cpp. Patch by Michael Wild. PR10064.Eli Friedman2011-06-021-4/+9
| | | | llvm-svn: 132489
* Change how we link libprofile_rt.a. While at it, refactor the code a bit.Rafael Espindola2011-06-021-40/+23
| | | | llvm-svn: 132474
* Add -fno-gnu89-inline.Rafael Espindola2011-06-021-1/+3
| | | | llvm-svn: 132468
* Implement -fgnu89-inline. Fixes PR10041.Rafael Espindola2011-06-021-0/+3
| | | | llvm-svn: 132460
* Add the necessary -L option for finding libprofile_rt.a. It might be a goodRafael Espindola2011-06-011-0/+5
| | | | | | | idea at some point to split out the directories where we install our runtime libraries. llvm-svn: 132425
* Driver/Clang: Simplify code to use arch enumerations.Daniel Dunbar2011-05-311-13/+12
| | | | llvm-svn: 132338
* A StringRef-ication of the DiagnosticIDs API and internals.Argyrios Kyrtzidis2011-05-251-3/+4
| | | | | | | | | Patch by Matthieu Monrocq with tweaks by me to avoid StringRefs in the static diagnostic data structures, which resulted in a huge global-var-init function. Depends on llvm commit r132046. llvm-svn: 132047
* When given one of the applicable coverage flags, try to link againstNick Lewycky2011-05-241-6/+42
| | | | | | libprofile_rt.a. On Darwin, don't try to link -lgcov. llvm-svn: 132006
* Let amd64 be used in target triple instead of x86_64 on FreeBSD.Roman Divacky2011-05-241-1/+2
| | | | | | Patch by Dimitry Andric! llvm-svn: 131990
* For non-Darwin, a plain 'char' type is unsigned.Jim Grosbach2011-05-241-0/+1
| | | | llvm-svn: 131967
* Fix a bug in the most recent openSUSE support patch.Chandler Carruth2011-05-241-1/+1
| | | | | | This patch also by Ismail Donmez. llvm-svn: 131958
* add opensuse toolchain support, patch by Ismail Donmez!Chris Lattner2011-05-221-4/+8
| | | | llvm-svn: 131857
* Add Redhat Enterprise Linux to the Linux toolchain, PR9769,Chris Lattner2011-05-221-4/+16
| | | | | | patch by Bryce Lelbach llvm-svn: 131840
* Introduce the -fdiagnostics-format=xxx option to control how ClangDouglas Gregor2011-05-211-1/+11
| | | | | | | | | | | | prints the file, line, and column of a diagnostic. We currently support Clang's normal format, MSVC, and Vi formats. Note that we no longer change the diagnostic format based on -fms-extensions. Patch by Andrew Fish! llvm-svn: 131794
* Correction for r131662, the GNU as option is --fatal-warnings.Joerg Sonnenberger2011-05-191-1/+1
| | | | llvm-svn: 131671
* Support -fatal-warnings for the assembler frontendJoerg Sonnenberger2011-05-191-0/+3
| | | | llvm-svn: 131662
* - 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
OpenPOWER on IntegriCloud