diff options
author | Michał Górny <mgorny@gentoo.org> | 2016-01-07 14:57:07 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2016-01-07 23:09:41 +0100 |
commit | 1274761efa7ef10c7a88081828a15ec66c5e3f28 (patch) | |
tree | 0274e279957bb05943c01a2cc3d85cbab723a42f /sys-devel/clang/files | |
parent | sys-devel/llvm: Drop ancient 2.9 version (diff) | |
download | gentoo-1274761efa7ef10c7a88081828a15ec66c5e3f28.tar.gz gentoo-1274761efa7ef10c7a88081828a15ec66c5e3f28.tar.bz2 gentoo-1274761efa7ef10c7a88081828a15ec66c5e3f28.zip |
sys-devel/clang: Remove ancient 3.0 version
Diffstat (limited to 'sys-devel/clang/files')
5 files changed, 0 insertions, 195 deletions
diff --git a/sys-devel/clang/files/clang-3.0-fix_cxx_include_root.patch b/sys-devel/clang/files/clang-3.0-fix_cxx_include_root.patch deleted file mode 100644 index e1beff3f1615..000000000000 --- a/sys-devel/clang/files/clang-3.0-fix_cxx_include_root.patch +++ /dev/null @@ -1,21 +0,0 @@ -Bug #387309 - ---- llvm/tools/clang/lib/Driver/ToolChains.cpp.orig 2011-11-09 23:10:04.000000000 +0100 -+++ llvm/tools/clang/lib/Driver/ToolChains.cpp 2011-11-09 23:11:04.000000000 +0100 -@@ -1586,12 +1586,13 @@ - // This is of the form /foo/bar/include/c++/4.5.2/ - if (CxxIncludeRoot.back() == '/') - llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the / -+ llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the g++-v4 -+ llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the include - StringRef Version = llvm::sys::path::filename(CxxIncludeRoot); - llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the version -- llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the c++ -- llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the include -+ llvm::sys::path::remove_filename(CxxIncludeRoot); // remove the ARCH - GccInstallPath = CxxIncludeRoot.str(); -- GccInstallPath.append("/lib/gcc/"); -+ GccInstallPath.append("/"); - GccInstallPath.append(CXX_INCLUDE_ARCH); - GccInstallPath.append("/"); - GccInstallPath.append(Version); diff --git a/sys-devel/clang/files/clang-3.0-freebsd-runtime-gcc-detection.patch b/sys-devel/clang/files/clang-3.0-freebsd-runtime-gcc-detection.patch deleted file mode 100644 index 5c016f551c11..000000000000 --- a/sys-devel/clang/files/clang-3.0-freebsd-runtime-gcc-detection.patch +++ /dev/null @@ -1,20 +0,0 @@ -diff -upNr a/llvm-3.0.src/tools/clang/lib/Driver/ToolChains.cpp b/llvm-3.0.src/tools/clang/lib/Driver/ToolChains.cpp ---- a/llvm-3.0.src/tools/clang/lib/Driver/ToolChains.cpp 2012-05-23 15:45:01.333127000 -0400 -+++ b/llvm-3.0.src/tools/clang/lib/Driver/ToolChains.cpp 2012-05-23 16:16:26.023642076 -0400 -@@ -1215,6 +1215,16 @@ FreeBSD::FreeBSD(const HostInfo &Host, c - } else { - getFilePaths().push_back("/usr/lib"); - } -+ -+ llvm::OwningPtr<llvm::MemoryBuffer> File; -+ if (!llvm::MemoryBuffer::getFile("/etc/env.d/gcc/config-" + getDriver().DefaultHostTriple, File)) -+ { -+ bool Exists; -+ StringRef Version = File.get()->getBuffer().rsplit('-').second.substr(0,5); -+ const std::string GentooPath = "/usr/lib/gcc/" + getDriver().DefaultHostTriple + "/" + Version.str(); -+ if (!llvm::sys::fs::exists(GentooPath + "/crtbegin.o", Exists) && Exists) -+ getFilePaths().push_back(GentooPath); -+ } - } - - Tool &FreeBSD::SelectTool(const Compilation &C, const JobAction &JA, diff --git a/sys-devel/clang/files/clang-3.0-gentoo-binutils-apple.patch b/sys-devel/clang/files/clang-3.0-gentoo-binutils-apple.patch deleted file mode 100644 index 944ccaf4fa20..000000000000 --- a/sys-devel/clang/files/clang-3.0-gentoo-binutils-apple.patch +++ /dev/null @@ -1,29 +0,0 @@ -http://llvm.org/bugs/show_bug.cgi?id=8339 -https://bugs.gentoo.org/show_bug.cgi?id=395013 -http://llvm.org/viewvc/llvm-project?view=rev&revision=151612 - -Tweak version detection bit to cope with Gentoo's slightly different -output for ld -v. - ---- autoconf/m4/link_options.m4 -+++ autoconf/m4/link_options.m4 -@@ -10,7 +10,7 @@ - - # Check for ld64. - if (echo "$version_string" | grep -q "ld64"); then -- llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") -+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\?#\1#") - else - llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") - fi ---- configure -+++ configure -@@ -7528,7 +7528,7 @@ - - # Check for ld64. - if (echo "$version_string" | grep -q "ld64"); then -- llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#") -+ llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\?#\1#") - else - llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#") - fi diff --git a/sys-devel/clang/files/clang-3.0-linux-runtime-gcc-detection.patch b/sys-devel/clang/files/clang-3.0-linux-runtime-gcc-detection.patch deleted file mode 100644 index a1f7ce2a98fb..000000000000 --- a/sys-devel/clang/files/clang-3.0-linux-runtime-gcc-detection.patch +++ /dev/null @@ -1,43 +0,0 @@ -diff -upNr a/llvm-3.0.src/tools/clang/lib/Driver/ToolChains.cpp b/llvm-3.0.src/tools/clang/lib/Driver/ToolChains.cpp ---- a/llvm-3.0.src/tools/clang/lib/Driver/ToolChains.cpp 2012-05-23 15:39:01.070411000 -0400 -+++ b/llvm-3.0.src/tools/clang/lib/Driver/ToolChains.cpp 2012-05-23 15:39:22.371785000 -0400 -@@ -1382,6 +1382,7 @@ enum LinuxDistro { - DebianSqueeze, - DebianWheezy, - Exherbo, -+ Gentoo, - RHEL4, - RHEL5, - RHEL6, -@@ -1403,6 +1404,10 @@ enum LinuxDistro { - UnknownDistro - }; - -+static bool IsGentoo(enum LinuxDistro Distro) { -+ return Distro == Gentoo; -+} -+ - static bool IsRedhat(enum LinuxDistro Distro) { - return Distro == Fedora13 || Distro == Fedora14 || - Distro == Fedora15 || Distro == FedoraRawhide || -@@ -1433,7 +1438,9 @@ static LinuxDistro DetectLinuxDistro(llv - SmallVector<StringRef, 8> Lines; - Data.split(Lines, "\n"); - for (unsigned int i = 0, s = Lines.size(); i < s; ++ i) { -- if (Lines[i] == "DISTRIB_CODENAME=hardy") -+ if (Lines[i] == "DISTRIB_ID=\"Gentoo\"") -+ return Gentoo; -+ else if (Lines[i] == "DISTRIB_CODENAME=hardy") - return UbuntuHardy; - else if (Lines[i] == "DISTRIB_CODENAME=intrepid") - return UbuntuIntrepid; -@@ -1597,6 +1604,9 @@ Linux::GCCInstallationDetector::GCCInsta - GccInstallPath.append("/"); - GccInstallPath.append(CXX_INCLUDE_ARCH); - GccInstallPath.append("/"); -+ llvm::OwningPtr<llvm::MemoryBuffer> File; -+ if (!llvm::MemoryBuffer::getFile("/etc/env.d/gcc/config-" + D.DefaultHostTriple, File)) -+ Version = File.get()->getBuffer().rsplit('-').second.substr(0,5); - GccInstallPath.append(Version); - GccParentLibPath = GccInstallPath + "/../../.."; - IsValid = true; diff --git a/sys-devel/clang/files/clang-3.0-recognize-amd-k10-enable-sse4a.patch b/sys-devel/clang/files/clang-3.0-recognize-amd-k10-enable-sse4a.patch deleted file mode 100644 index 90f99abc344a..000000000000 --- a/sys-devel/clang/files/clang-3.0-recognize-amd-k10-enable-sse4a.patch +++ /dev/null @@ -1,82 +0,0 @@ ---- llvm.orig/contrib/llvm/tools/clang/lib/Basic/Targets.cpp 2011/10/22 14:08:43 226633 -+++ llvm/contrib/llvm/tools/clang/lib/Basic/Targets.cpp 2011/10/30 22:20:17 226951 -@@ -1282,6 +1282,7 @@ - CK_K8SSE3, - CK_Opteron, - CK_OpteronSSE3, -+ CK_AMDFAM10, - - /// This specification is deprecated and will be removed in the future. - /// Users should prefer \see CK_K8. -@@ -1381,6 +1382,7 @@ - .Case("k8-sse3", CK_K8SSE3) - .Case("opteron", CK_Opteron) - .Case("opteron-sse3", CK_OpteronSSE3) -+ .Case("amdfam10", CK_AMDFAM10) - .Case("x86-64", CK_x86_64) - .Case("geode", CK_Geode) - .Default(CK_Generic); -@@ -1441,6 +1443,7 @@ - case CK_K8SSE3: - case CK_Opteron: - case CK_OpteronSSE3: -+ case CK_AMDFAM10: - case CK_x86_64: - return true; - } -@@ -1459,12 +1462,10 @@ - Features["ssse3"] = false; - Features["sse41"] = false; - Features["sse42"] = false; -+ Features["sse4a"] = false; - Features["aes"] = false; - Features["avx"] = false; - -- // LLVM does not currently recognize this. -- // Features["sse4a"] = false; -- - // FIXME: This *really* should not be here. - - // X86_64 always has SSE2. -@@ -1561,6 +1562,11 @@ - setFeatureEnabled(Features, "sse3", true); - setFeatureEnabled(Features, "3dnowa", true); - break; -+ case CK_AMDFAM10: -+ setFeatureEnabled(Features, "sse3", true); -+ setFeatureEnabled(Features, "sse4a", true); -+ setFeatureEnabled(Features, "3dnowa", true); -+ break; - case CK_C3_2: - setFeatureEnabled(Features, "mmx", true); - setFeatureEnabled(Features, "sse", true); -@@ -1604,6 +1610,8 @@ - else if (Name == "avx") - Features["avx"] = Features["sse"] = Features["sse2"] = Features["sse3"] = - Features["ssse3"] = Features["sse41"] = Features["sse42"] = true; -+ else if (Name == "sse4a") -+ Features["sse4a"] = true; - } else { - if (Name == "mmx") - Features["mmx"] = Features["3dnow"] = Features["3dnowa"] = false; -@@ -1630,6 +1638,8 @@ - Features["aes"] = false; - else if (Name == "avx") - Features["avx"] = false; -+ else if (Name == "sse4a") -+ Features["sse4a"] = false; - } - - return true; -@@ -1826,6 +1836,11 @@ - Builder.defineMacro("__k8__"); - Builder.defineMacro("__tune_k8__"); - break; -+ case CK_AMDFAM10: -+ Builder.defineMacro("__amdfam10"); -+ Builder.defineMacro("__amdfam10__"); -+ Builder.defineMacro("__tune_amdfam10__"); -+ break; - case CK_Geode: - Builder.defineMacro("__geode"); - Builder.defineMacro("__geode__"); |