[coreboot-gerrit] Patch set updated for coreboot: buildgcc: Update LLVM to 3.7.1
Stefan Reinauer (stefan.reinauer@coreboot.org)
gerrit at coreboot.org
Sat Jan 30 11:11:27 CET 2016
Stefan Reinauer (stefan.reinauer at coreboot.org) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13516
-gerrit
commit 57422d152e540124dcff35098ceec961e482bb20
Author: Stefan Reinauer <stefan.reinauer at coreboot.org>
Date: Fri Jan 29 17:33:56 2016 -0800
buildgcc: Update LLVM to 3.7.1
Not much testing, update mostly so we can test with the
latest scan-build.
Change-Id: I50d28b7e0dfd31f9ae565c8515d5ab1760ca4c62
Signed-off-by: Stefan Reinauer <stefan.reinauer at coreboot.org>
---
util/crossgcc/buildgcc | 6 +-
util/crossgcc/patches/cfe-3.6.1.src_frontend.patch | 79 ----------------------
util/crossgcc/patches/cfe-3.7.1.src_frontend.patch | 79 ++++++++++++++++++++++
util/crossgcc/sum/cfe-3.6.1.src.tar.xz.cksum | 1 -
util/crossgcc/sum/cfe-3.7.1.src.tar.xz.cksum | 1 +
.../sum/clang-tools-extra-3.6.1.src.tar.xz.cksum | 1 -
.../sum/clang-tools-extra-3.7.1.src.tar.xz.cksum | 1 +
.../sum/compiler-rt-3.6.1.src.tar.xz.cksum | 1 -
.../sum/compiler-rt-3.7.1.src.tar.xz.cksum | 1 +
util/crossgcc/sum/llvm-3.6.1.src.tar.xz.cksum | 1 -
util/crossgcc/sum/llvm-3.7.1.src.tar.xz.cksum | 1 +
11 files changed, 86 insertions(+), 86 deletions(-)
diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 3c6a606..590c15a 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -18,8 +18,8 @@
cd $(dirname $0)
-CROSSGCC_DATE="November 25th, 2015"
-CROSSGCC_VERSION="1.33"
+CROSSGCC_DATE="January 29th, 2016"
+CROSSGCC_VERSION="1.35"
# default settings
PACKAGE=GCC
@@ -43,7 +43,7 @@ IASL_VERSION=20150619
PYTHON_VERSION=3.4.3
EXPAT_VERSION=2.1.0
# CLANG version number
-CLANG_VERSION=3.6.1
+CLANG_VERSION=3.7.1
# GCC toolchain archive locations
GMP_ARCHIVE="http://ftpmirror.gnu.org/gmp/gmp-${GMP_VERSION}.tar.bz2"
diff --git a/util/crossgcc/patches/cfe-3.6.1.src_frontend.patch b/util/crossgcc/patches/cfe-3.6.1.src_frontend.patch
deleted file mode 100644
index d69cb44..0000000
--- a/util/crossgcc/patches/cfe-3.6.1.src_frontend.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-Frontend driver patch from Edward O'Callaghan
-
-https://llvm.org/bugs/show_bug.cgi?id=21538
-
-Index: include/clang/Driver/Driver.h
-===================================================================
---- cfe-3.6.1.src/include/clang/Driver/Driver.h (revision 211898)
-+++ cfe-3.6.1.src/include/clang/Driver/Driver.h (working copy)
-@@ -325,6 +325,14 @@
- // FIXME: This should be in CompilationInfo.
- std::string GetFilePath(const char *Name, const ToolChain &TC) const;
-
-+ /// GetCompilerRTPath - Find Compiler-RT library path
-+ ///
-+ /// \param TC - The provided tool chain for additional information on
-+ /// directories to search.
-+ //
-+ // FIXME: This should be in CompilationInfo.
-+ std::string GetCompilerRTPath(const ToolChain &TC) const;
-+
- /// GetProgramPath - Lookup \p Name in the list of program search paths.
- ///
- /// \param TC - The provided tool chain for additional information on
-Index: include/clang/Driver/Options.td
-===================================================================
---- cfe-3.6.1.src/include/clang/Driver/Options.td (revision 211898)
-+++ cfe-3.6.1.src/include/clang/Driver/Options.td (working copy)
-@@ -1269,6 +1269,8 @@
- HelpText<"Enable Objective-C Ivar layout bitmap print trace">;
- def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">,
- HelpText<"Print the library path for \"libgcc.a\"">;
-+def print_librt_file_name : Flag<["-", "--"], "print-librt-file-name">,
-+ HelpText<"Print the library path for \"libclang_rt.builtins-ARCH.a\"">;
- def print_multi_directory : Flag<["-", "--"], "print-multi-directory">;
- def print_multi_lib : Flag<["-", "--"], "print-multi-lib">;
- def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">;
-Index: lib/Driver/Driver.cpp
-===================================================================
---- cfe-3.6.1.src/lib/Driver/Driver.cpp (revision 211898)
-+++ cfe-3.6.1.src/lib/Driver/Driver.cpp (working copy)
-@@ -756,6 +756,11 @@
- return false;
- }
-
-+ if (C.getArgs().hasArg(options::OPT_print_librt_file_name)) {
-+ llvm::outs() << GetCompilerRTPath(TC) << "\n";
-+ return false;
-+ }
-+
- if (C.getArgs().hasArg(options::OPT_print_multi_lib)) {
- const MultilibSet &Multilibs = TC.getMultilibs();
-
-@@ -1820,6 +1825,26 @@
- return Name;
- }
-
-+std::string Driver::GetCompilerRTPath(const ToolChain &TC) const {
-+ // The runtimes are located in the OS-specific resource directory.
-+ SmallString<128> Res(TC.getDriver().ResourceDir);
-+ const llvm::Triple &Triple = TC.getTriple();
-+
-+ // TC.getOS() yield "freebsd10.0" whereas "freebsd" is expected.
-+ StringRef OSLibName = (Triple.getOS() == llvm::Triple::FreeBSD) ?
-+ "freebsd" : TC.getOS();
-+ llvm::sys::path::append(Res, "lib", OSLibName);
-+
-+ StringRef archName = TC.getArchName();
-+ // Until ARM libraries are build separately, we have them all in one library
-+ if (TC.getArch() == llvm::Triple::arm ||
-+ TC.getArch() == llvm::Triple::armeb)
-+ archName = "arm";
-+
-+ llvm::sys::path::append(Res, Twine("libclang_rt.builtins-") + archName + ".a");
-+ return Res.str();
-+}
-+
- std::string Driver::GetProgramPath(const char *Name,
- const ToolChain &TC) const {
- // FIXME: Needs a better variable than DefaultTargetTriple
diff --git a/util/crossgcc/patches/cfe-3.7.1.src_frontend.patch b/util/crossgcc/patches/cfe-3.7.1.src_frontend.patch
new file mode 100644
index 0000000..781878d
--- /dev/null
+++ b/util/crossgcc/patches/cfe-3.7.1.src_frontend.patch
@@ -0,0 +1,79 @@
+Frontend driver patch from Edward O'Callaghan
+
+https://llvm.org/bugs/show_bug.cgi?id=21538
+
+Index: include/clang/Driver/Driver.h
+===================================================================
+--- cfe-3.7.1.src/include/clang/Driver/Driver.h (revision 211898)
++++ cfe-3.7.1.src/include/clang/Driver/Driver.h (working copy)
+@@ -325,6 +325,14 @@
+ // FIXME: This should be in CompilationInfo.
+ std::string GetFilePath(const char *Name, const ToolChain &TC) const;
+
++ /// GetCompilerRTPath - Find Compiler-RT library path
++ ///
++ /// \param TC - The provided tool chain for additional information on
++ /// directories to search.
++ //
++ // FIXME: This should be in CompilationInfo.
++ std::string GetCompilerRTPath(const ToolChain &TC) const;
++
+ /// GetProgramPath - Lookup \p Name in the list of program search paths.
+ ///
+ /// \param TC - The provided tool chain for additional information on
+Index: include/clang/Driver/Options.td
+===================================================================
+--- cfe-3.7.1.src/include/clang/Driver/Options.td (revision 211898)
++++ cfe-3.7.1.src/include/clang/Driver/Options.td (working copy)
+@@ -1269,6 +1269,8 @@
+ HelpText<"Enable Objective-C Ivar layout bitmap print trace">;
+ def print_libgcc_file_name : Flag<["-", "--"], "print-libgcc-file-name">,
+ HelpText<"Print the library path for \"libgcc.a\"">;
++def print_librt_file_name : Flag<["-", "--"], "print-librt-file-name">,
++ HelpText<"Print the library path for \"libclang_rt.builtins-ARCH.a\"">;
+ def print_multi_directory : Flag<["-", "--"], "print-multi-directory">;
+ def print_multi_lib : Flag<["-", "--"], "print-multi-lib">;
+ def print_multi_os_directory : Flag<["-", "--"], "print-multi-os-directory">;
+Index: lib/Driver/Driver.cpp
+===================================================================
+--- cfe-3.7.1.src/lib/Driver/Driver.cpp (revision 211898)
++++ cfe-3.7.1.src/lib/Driver/Driver.cpp (working copy)
+@@ -756,6 +756,11 @@
+ return false;
+ }
+
++ if (C.getArgs().hasArg(options::OPT_print_librt_file_name)) {
++ llvm::outs() << GetCompilerRTPath(TC) << "\n";
++ return false;
++ }
++
+ if (C.getArgs().hasArg(options::OPT_print_multi_lib)) {
+ const MultilibSet &Multilibs = TC.getMultilibs();
+
+@@ -1820,6 +1825,26 @@
+ return Name;
+ }
+
++std::string Driver::GetCompilerRTPath(const ToolChain &TC) const {
++ // The runtimes are located in the OS-specific resource directory.
++ SmallString<128> Res(TC.getDriver().ResourceDir);
++ const llvm::Triple &Triple = TC.getTriple();
++
++ // TC.getOS() yield "freebsd10.0" whereas "freebsd" is expected.
++ StringRef OSLibName = (Triple.getOS() == llvm::Triple::FreeBSD) ?
++ "freebsd" : TC.getOS();
++ llvm::sys::path::append(Res, "lib", OSLibName);
++
++ StringRef archName = TC.getArchName();
++ // Until ARM libraries are build separately, we have them all in one library
++ if (TC.getArch() == llvm::Triple::arm ||
++ TC.getArch() == llvm::Triple::armeb)
++ archName = "arm";
++
++ llvm::sys::path::append(Res, Twine("libclang_rt.builtins-") + archName + ".a");
++ return Res.str();
++}
++
+ std::string Driver::GetProgramPath(const char *Name,
+ const ToolChain &TC) const {
+ // FIXME: Needs a better variable than DefaultTargetTriple
diff --git a/util/crossgcc/sum/cfe-3.6.1.src.tar.xz.cksum b/util/crossgcc/sum/cfe-3.6.1.src.tar.xz.cksum
deleted file mode 100644
index 661bf9c..0000000
--- a/util/crossgcc/sum/cfe-3.6.1.src.tar.xz.cksum
+++ /dev/null
@@ -1 +0,0 @@
-b7221d8fdd27e3ed519d0281646e82e17b51122c tarballs/cfe-3.6.1.src.tar.xz
diff --git a/util/crossgcc/sum/cfe-3.7.1.src.tar.xz.cksum b/util/crossgcc/sum/cfe-3.7.1.src.tar.xz.cksum
new file mode 100644
index 0000000..57b4bf5
--- /dev/null
+++ b/util/crossgcc/sum/cfe-3.7.1.src.tar.xz.cksum
@@ -0,0 +1 @@
+15475a2c1e750a13755812785a4796cf4d9fa4c2 tarballs/cfe-3.7.1.src.tar.xz
diff --git a/util/crossgcc/sum/clang-tools-extra-3.6.1.src.tar.xz.cksum b/util/crossgcc/sum/clang-tools-extra-3.6.1.src.tar.xz.cksum
deleted file mode 100644
index 17d55cb..0000000
--- a/util/crossgcc/sum/clang-tools-extra-3.6.1.src.tar.xz.cksum
+++ /dev/null
@@ -1 +0,0 @@
-d93136f56999d8ae1ffebb9cd0cd7f3c27ba77c4 tarballs/clang-tools-extra-3.6.1.src.tar.xz
diff --git a/util/crossgcc/sum/clang-tools-extra-3.7.1.src.tar.xz.cksum b/util/crossgcc/sum/clang-tools-extra-3.7.1.src.tar.xz.cksum
new file mode 100644
index 0000000..49eea30
--- /dev/null
+++ b/util/crossgcc/sum/clang-tools-extra-3.7.1.src.tar.xz.cksum
@@ -0,0 +1 @@
+af7b0208d00be365849a923b16b8e6d0fca2a2fc tarballs/clang-tools-extra-3.7.1.src.tar.xz
diff --git a/util/crossgcc/sum/compiler-rt-3.6.1.src.tar.xz.cksum b/util/crossgcc/sum/compiler-rt-3.6.1.src.tar.xz.cksum
deleted file mode 100644
index 51e426b..0000000
--- a/util/crossgcc/sum/compiler-rt-3.6.1.src.tar.xz.cksum
+++ /dev/null
@@ -1 +0,0 @@
-85dccdc6ccd9675e871dfd2786b45fbf53518485 tarballs/compiler-rt-3.6.1.src.tar.xz
diff --git a/util/crossgcc/sum/compiler-rt-3.7.1.src.tar.xz.cksum b/util/crossgcc/sum/compiler-rt-3.7.1.src.tar.xz.cksum
new file mode 100644
index 0000000..fd007e9
--- /dev/null
+++ b/util/crossgcc/sum/compiler-rt-3.7.1.src.tar.xz.cksum
@@ -0,0 +1 @@
+8ad98fcc0bc801ba448c9bc43942fd3f545a6923 tarballs/compiler-rt-3.7.1.src.tar.xz
diff --git a/util/crossgcc/sum/llvm-3.6.1.src.tar.xz.cksum b/util/crossgcc/sum/llvm-3.6.1.src.tar.xz.cksum
deleted file mode 100644
index 5ca7065..0000000
--- a/util/crossgcc/sum/llvm-3.6.1.src.tar.xz.cksum
+++ /dev/null
@@ -1 +0,0 @@
-01ecab99adc9030ee34e9a2e19e65dfe64e1affe tarballs/llvm-3.6.1.src.tar.xz
diff --git a/util/crossgcc/sum/llvm-3.7.1.src.tar.xz.cksum b/util/crossgcc/sum/llvm-3.7.1.src.tar.xz.cksum
new file mode 100644
index 0000000..b63e707
--- /dev/null
+++ b/util/crossgcc/sum/llvm-3.7.1.src.tar.xz.cksum
@@ -0,0 +1 @@
+5dbdcafac105273dcbff94c68837a66c6dd78cef tarballs/llvm-3.7.1.src.tar.xz
More information about the coreboot-gerrit
mailing list