+++ /dev/null
-Description: Raise LLVM min version for some tests
- According to the comments at the top of the files being patched, they require
- either LLVM 4.0 or Rust's patched LLVM. So just avoid them in Debian.
-Author: Ximin Luo <infinity0@debian.org>
-Forwarded: not-needed
----
---- a/src/test/codegen/mainsubprogram.rs
-+++ b/src/test/codegen/mainsubprogram.rs
-@@ -15,7 +15,7 @@
- // ignore-tidy-linelength
- // ignore-windows
- // ignore-macos
--// min-llvm-version 3.8
-+// min-llvm-version 4.0
-
- // compile-flags: -g -C no-prepopulate-passes
-
---- a/src/test/codegen/mainsubprogramstart.rs
-+++ b/src/test/codegen/mainsubprogramstart.rs
-@@ -15,7 +15,7 @@
- // ignore-tidy-linelength
- // ignore-windows
- // ignore-macos
--// min-llvm-version 3.8
-+// min-llvm-version 4.0
-
- // compile-flags: -g -C no-prepopulate-passes
-
# pending, forwarded
u-sparc64-detection.patch
-u-sparc64-detection-2.patch
u-gperf-3.1.patch
u-reproducible-build.patch
u-ignoretest-armhf_01.patch
u-ignoretest-arm64.patch
u-ignoretest-ppc64el.patch
u-ignoretest-ppc64el_02.patch
-u-cross-compile-install.patch
u-prefer-local-css.patch
u-make-tests-work-without-rpath.patch
gcc-4.8-aarch64-ice.diff
# Debian-specific patches, not suitable for upstream
-d-raise-min-llvm-version.patch
d-disable-cargo-vendor.patch
d-rust-gdb-paths
d-rust-lldb-paths
+++ /dev/null
-Description: Fix cross-compile install
-Author: Ximin Luo <infinity0@debian.org>
-Bug: https://github.com/rust-lang/rust/pull/45322
-----
-This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
---- a/src/bootstrap/install.rs
-+++ b/src/bootstrap/install.rs
-@@ -175,10 +175,12 @@
- install_docs(builder, self.stage, self.target);
- };
- Std, "src/libstd", true, only_hosts: true, {
-- builder.ensure(dist::Std {
-- compiler: builder.compiler(self.stage, self.host),
-- target: self.target
-- });
-+ for target in &builder.build.targets {
-+ builder.ensure(dist::Std {
-+ compiler: builder.compiler(self.stage, self.host),
-+ target: *target
-+ });
-+ }
- install_std(builder, self.stage);
- };
- Cargo, "cargo", _config.extended, only_hosts: true, {
+++ /dev/null
-commit d7dec7c8d71b30fea6e4c5aca40adce1724ba87d
-Author: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
-Date: Sun Oct 29 23:51:14 2017 +0100
-
- bootstrap: Add missing cputype matching for sparc64
-
---- a/src/bootstrap/bootstrap.py
-+++ b/src/bootstrap/bootstrap.py
-@@ -294,7 +294,7 @@
- raise ValueError('unknown byteorder: {}'.format(sys.byteorder))
- # only the n64 ABI is supported, indicate it
- ostype += 'abi64'
-- elif cputype == 'sparcv9':
-+ elif cputype == 'sparcv9' or cputype == 'sparc64':
- pass
- else:
- err = "unknown cpu type: {}".format(cputype)
Already applied upstream in various places
Author: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
---- a/src/bootstrap/native.rs
-+++ b/src/bootstrap/native.rs
-@@ -419,6 +419,7 @@
- "powerpc64-unknown-linux-gnu" => "linux-ppc64",
- "powerpc64le-unknown-linux-gnu" => "linux-ppc64le",
- "s390x-unknown-linux-gnu" => "linux64-s390x",
-+ "sparc64-unknown-linux-gnu" => "linux64-sparcv9",
- "sparc64-unknown-netbsd" => "BSD-sparc64",
- "x86_64-apple-darwin" => "darwin64-x86_64-cc",
- "x86_64-linux-android" => "linux-x86_64",
--- a/src/libcompiler_builtins/compiler-rt/lib/builtins/int_lib.h
+++ b/src/libcompiler_builtins/compiler-rt/lib/builtins/int_lib.h
@@ -86,7 +86,7 @@
|| (defined(_MIPS_SIM) && ((_MIPS_SIM == _ABI64) || (_MIPS_SIM == _ABIO64))))
si_int __clzsi2(si_int);
si_int __ctzsi2(si_int);
---- a/src/vendor/cc/src/lib.rs
-+++ b/src/vendor/cc/src/lib.rs
-@@ -1343,6 +1343,7 @@
- "powerpc64-unknown-linux-gnu" => Some("powerpc-linux-gnu"),
- "powerpc64le-unknown-linux-gnu" => Some("powerpc64le-linux-gnu"),
- "s390x-unknown-linux-gnu" => Some("s390x-linux-gnu"),
-+ "sparc64-unknown-linux-gnu" => Some("sparc64-linux-gnu"),
- "sparc64-unknown-netbsd" => Some("sparc64--netbsd"),
- "sparcv9-sun-solaris" => Some("sparcv9-sun-solaris"),
- "thumbv6m-none-eabi" => Some("arm-none-eabi"),