- Oct 03, 2011
-
-
Chandler Carruth authored
This requires fixing a latent bug -- if we used the default host triple instead of an autodetected triple to locate GCC's installation, we didn't go back and fix the GCC triple. Correct that with a pile of hacks. This entire routine needs a major refactoring which I'm saving for a subsequent commit. Essentially, the detection of the GCC triple should be hoisted into the same routine as we locate the GCC installation: the first is intrinsically tied to the latter. Then the routine will just return the triple and base directory. Also start to bring the rest of the library search path logic under test, including locating crtbegin.o. Still need to test the multilib and other behaviors, but there are also bugs in the way of that. llvm-svn: 140995
-
Chandler Carruth authored
This is still very much a WIP, but sysroot was completely broken before this so we are moving closer to correctness. The crux of this is that 'ld' (on Linux, the only place I'm touching here) doesn't apply the sysroot to any flags given to it. Instead, the driver must translate all the paths it adds to the link step with the system root. This is easily observed by building a GCC that supports sysroot, and checking its driver output. This patch just fixes the non-multilib library search paths. We should also use this in many other places, but first things first. This also allows us to make the Linux 'ld' test independent of the host system. This in turn will allow me to check in test tree configurations based on various different distro's configuration. Again, WIP. llvm-svn: 140990
-
Chandler Carruth authored
precisely match the pattern and logic used by the GCC driver on Linux as of a recent SVN checkout. This happens to follow a *much* more principled approach. There is a strict hierarchy of paths examined, first with multilib-suffixing, second without such suffixing. Any and all of these directories which exist will be added to the library search path when using GCC. There were many places where Clang followed different paths, omitted critical entries, and worst of all (in terms of challenges to debugging) got the entries in a subtly wrong order. If this breaks Clang on a distro you use, please let me know, and I'll work with you to figure out what is needed to work on that distro. I've checked the behavior of the latest release of Ubuntu, OpenSUSE, Fedora, and Gentoo. I'll be testing it on those as well as Debian stable and unstable and ArchLinux. I may even dig out a Slackware install. No real regression tests yet, those will follow once I add enough support for sysroot to simulate various distro layouts in the testsuite. llvm-svn: 140981
-
- Oct 02, 2011
-
-
John McCall authored
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
-
- Oct 01, 2011
-
-
Chandler Carruth authored
Make the suffixes optional everywhere, and just make sure they have the right value. The suffixes aren't the interesting part of this test anyways. Sorry for the churn as I let the bots try out various patterns. llvm-svn: 140927
-
Chandler Carruth authored
run it. llvm-svn: 140925
-
Chandler Carruth authored
llvm-svn: 140920
-
Chandler Carruth authored
left a FIXME to go track down more distros and see if 'lib' is ever the 64-bit half. This should hopefully appease the build bots. llvm-svn: 140915
-
Chandler Carruth authored
llvm-svn: 140913
-
Chandler Carruth authored
invocations on Linux. llvm-svn: 140909
-
- Sep 30, 2011
-
-
Daniel Dunbar authored
llvm-svn: 140889
-
- Sep 29, 2011
-
-
Chad Rosier authored
strings. rdar://9696709 llvm-svn: 140732
-
- Sep 23, 2011
-
-
Daniel Dunbar authored
llvm-svn: 140410
-
Benjamin Kramer authored
llvm-svn: 140365
-
Benjamin Kramer authored
llvm-svn: 140343
-
Benjamin Kramer authored
llvm-svn: 140342
-
- Sep 22, 2011
-
-
Benjamin Kramer authored
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
-
- Sep 08, 2011
-
-
Chad Rosier authored
filtered. This happenis when -save-temps is specified. <rdar://problem/10088387> llvm-svn: 139269
-
- Sep 05, 2011
-
-
Benjamin Kramer authored
llvm-svn: 139114
-
- Aug 31, 2011
-
-
Chandler Carruth authored
to this test, and doesn't always start with 'clang' when fully resolved on some build systems. llvm-svn: 138878
-
- Aug 30, 2011
-
-
Ivan Krasin authored
- wrong alignment for double (it was 4, but 8 is desired), - added checks for _REENTRANT define, - fixed the issue that defines were not tested (because the check for inside #ifdef). llvm-svn: 138775
-
- Aug 26, 2011
-
-
Chad Rosier authored
<rdar://problem/10027287> llvm-svn: 138637
-
Chad Rosier authored
globals during codegen. Fixes <rdar://problem/10017909>. llvm-svn: 138612
-
Ivan Krasin authored
llvm-svn: 138607
-
- Aug 25, 2011
-
-
Chad Rosier authored
-fapple-kext. Fixes <rdar://problem/10013310>. Reverts <rdar://problem/7809940>. llvm-svn: 138564
-
- Aug 24, 2011
-
-
Ivan Krasin authored
llvm-svn: 138489
-
Ivan Krasin authored
llvm-svn: 138470
-
- Aug 23, 2011
-
-
Eric Christopher authored
llvm-svn: 138389
-
Eric Christopher authored
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
-
- Aug 18, 2011
-
-
Chad Rosier authored
that aren't handled by llvm-gcc on fallback. Enhancement to rdar://9964354 llvm-svn: 137912
-
- Aug 17, 2011
-
-
Chad Rosier authored
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
-
- Aug 14, 2011
-
-
Bob Wilson authored
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
-
Nico Weber authored
Matches gcc, and is also required for using ccache with clang. llvm-svn: 137563
-
- Jul 28, 2011
-
-
Douglas Gregor authored
for quoted header lookup when dealing with not-yet-installed frameworks. Fixes <rdar://problem/9824020>. llvm-svn: 136331
-
Chad Rosier authored
llvm-svn: 136296
-
- Jul 20, 2011
-
-
Chad Rosier authored
llvm-svn: 135605
-
Chad Rosier authored
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
-
- Jul 12, 2011
-
-
Peter Collingbourne authored
llvm-svn: 134996
-
- Jul 11, 2011
-
-
NAKAMURA Takumi authored
llvm-svn: 134899
-
- Jul 06, 2011
-
-
John McCall authored
Restore it. llvm-svn: 134459
-