summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix search paths for Ubuntu 11.04 x86. Patch by Stepan Dyatkovskiy.Eli Friedman2011-09-161-0/+11
| | | | llvm-svn: 139941
* Treat the weak export of block runtime symbols as a deployment-targetJohn McCall2011-09-091-0/+8
| | | | | | | | 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
* 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
* [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
* 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
* Add support for a verifier to the driver. Currently only verifies debugEric Christopher2011-08-231-7/+12
| | | | | | | | | | | 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
* 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-131-1/+2
| | | | | | | 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
* 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
* remove unneeded llvm:: namespace qualifiers on some core types now that ↵Chris Lattner2011-07-231-30/+31
| | | | | | | | LLVM.h imports them into the clang namespace. llvm-svn: 135852
* If -ccc-host-triple i386-pc-win32-macho or -ccc-host-triple Chad Rosier2011-07-201-1/+9
| | | | | | | | x86_64-pc-win32-macho is used in conjunction with -no-integrated-as go ahead and use the Darwin system assembler. rdar://9785470 llvm-svn: 135604
* Call objc_terminate() instead of abort() when a cleanup throws anJohn McCall2011-07-061-0/+7
| | | | | | | exception in Objective-C; in Objective-C++ we still use std::terminate(). This is only available in very recent runtimes. llvm-svn: 134456
* Change the driver's logic about Objective-C runtimes: abstract out aJohn McCall2011-07-061-2/+10
| | | | | | | | | | | | structure to hold inferred information, then propagate each invididual bit down to -cc1. Separate the bits of "supports weak" and "has a native ARC runtime"; make the latter a CodeGenOption. The tool chain is still driving this decision, because it's the place that has the required deployment target information on Darwin, but at least it's better-factored now. llvm-svn: 134453
* Make the GCC version proliferation worse by N+1 for the sake ofChandler Carruth2011-07-021-1/+1
| | | | | | ArchLinux. =/ Fixes PR10246. llvm-svn: 134299
* fix autoconf build from r133710Dylan Noblesmith2011-06-231-0/+2
| | | | | | | | Sorry! This commit worked in CMake, but CXX_INCLUDE_ROOT is defined in a different config.h for autoconf. llvm-svn: 133715
* Build and use libcompiler_rt whenever possible.Eric Christopher2011-06-221-18/+19
| | | | | | Patch by Jean-Daniel Dupas! llvm-svn: 133624
* Driver/Darwin: Honor -Xarch_FOO when the arch matches either the toolchain orDaniel Dunbar2011-06-211-1/+6
| | | | | | | the architecture being bound. - Fixes things like -Xarch_armv7. llvm-svn: 133490
* Be aware of (x86_64-redhat-linux6E-)g++44 on RHEL5.NAKAMURA Takumi2011-06-161-0/+3
| | | | | | | AFAIK, RHEL5 (and its clones) provides g++44 as the package "gcc44-c++". By default, g++-4.1.1 is available, though, its libstdc++ would not be suitable to clang++. llvm-svn: 133156
* Automatic Reference Counting.John McCall2011-06-151-1/+96
| | | | | | | | | | Language-design credit goes to a lot of people, but I particularly want to single out Blaine Garst and Patrick Beard for their contributions. Compiler implementation credit goes to Argyrios, Doug, Fariborz, and myself, in no particular order. llvm-svn: 133103
* Revert "hack in my new variables for GCC"Chandler Carruth2011-06-081-20/+24
| | | | | | Very sorry for the accidental commit of WIP code. llvm-svn: 132745
* hack in my new variables for GCCChandler Carruth2011-06-081-24/+20
| | | | llvm-svn: 132743
* Toolchain support for Ubuntu Oneiric. Patch by Michael Wild!Benjamin Kramer2011-06-051-3/+6
| | | | llvm-svn: 132669
* Make -m32 work on FreeBSD/PowerPC64.Roman Divacky2011-06-041-0/+5
| | | | llvm-svn: 132634
* We were looking at /usr/lib only if the distro had multilib. This is bogus:Rafael Espindola2011-06-031-2/+7
| | | | | | | | | | we look in /usr/lib to find crt1.o, and that depends only on where libc is installed. This fixes the case of using a different gcc installation in a distro without multilib. llvm-svn: 132551
* 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
* 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
* - 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
* Make the triple an explicit argument of FindTargetProgramPath.Joerg Sonnenberger2011-05-161-7/+8
| | | | | | | | | | 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: 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: 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-301-1/+11
| | | | | | 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-301-23/+48
| | | | | | and associated deployment target environment variable. llvm-svn: 130591
* Let clang detect gcc triple on Ubuntu Natty. Patch by Thomas Jablin.Nico Weber2011-04-251-2/+5
| | | | llvm-svn: 130119
* 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/Darwin: Switch to using -macosx for OS name in triples.Daniel Dunbar2011-04-191-1/+1
| | | | llvm-svn: 129834
OpenPOWER on IntegriCloud