summaryrefslogtreecommitdiffstats
path: root/debian/patches/d-rustc-fix-mips64el-bootstrap.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-30 03:57:28 +0000
commitdc643d4b030243790ccb704c733ca2130279cbaf (patch)
tree5ccf28e10c794cb2e45bf946b30f07ccfd127ed0 /debian/patches/d-rustc-fix-mips64el-bootstrap.patch
parentMerging upstream version 1.72.1+dfsg1. (diff)
downloadrustc-dc643d4b030243790ccb704c733ca2130279cbaf.tar.xz
rustc-dc643d4b030243790ccb704c733ca2130279cbaf.zip
Adding debian version 1.72.1+dfsg1-1.debian/1.72.1+dfsg1-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/d-rustc-fix-mips64el-bootstrap.patch')
-rw-r--r--debian/patches/d-rustc-fix-mips64el-bootstrap.patch62
1 files changed, 0 insertions, 62 deletions
diff --git a/debian/patches/d-rustc-fix-mips64el-bootstrap.patch b/debian/patches/d-rustc-fix-mips64el-bootstrap.patch
deleted file mode 100644
index faee1685e..000000000
--- a/debian/patches/d-rustc-fix-mips64el-bootstrap.patch
+++ /dev/null
@@ -1,62 +0,0 @@
-From: Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
-Date: Thu, 14 Jul 2022 13:17:39 +0200
-Subject: d-rustc-fix-mips64el-bootstrap
-
-Bug: https://github.com/rust-lang/rust/issues/52108
-
-===================================================================
----
- compiler/rustc_target/src/spec/mips64_unknown_linux_gnuabi64.rs | 2 +-
- compiler/rustc_target/src/spec/mips64el_unknown_linux_gnuabi64.rs | 2 +-
- src/bootstrap/bootstrap.py | 2 ++
- src/test/assembly/asm/mips-types.rs | 1 +
- 4 files changed, 5 insertions(+), 2 deletions(-)
-
-Index: rust/compiler/rustc_target/src/spec/mips64_unknown_linux_gnuabi64.rs
-===================================================================
---- rust.orig/compiler/rustc_target/src/spec/mips64_unknown_linux_gnuabi64.rs
-+++ rust/compiler/rustc_target/src/spec/mips64_unknown_linux_gnuabi64.rs
-@@ -12,7 +12,7 @@ pub fn target() -> Target {
- endian: Endian::Big,
- // NOTE(mips64r2) matches C toolchain
- cpu: "mips64r2".into(),
-- features: "+mips64r2".into(),
-+ features: "+mips64r2,+xgot".into(),
- max_atomic_width: Some(64),
- mcount: "_mcount".into(),
-
-Index: rust/compiler/rustc_target/src/spec/mips64el_unknown_linux_gnuabi64.rs
-===================================================================
---- rust.orig/compiler/rustc_target/src/spec/mips64el_unknown_linux_gnuabi64.rs
-+++ rust/compiler/rustc_target/src/spec/mips64el_unknown_linux_gnuabi64.rs
-@@ -10,7 +10,7 @@ pub fn target() -> Target {
- abi: "abi64".into(),
- // NOTE(mips64r2) matches C toolchain
- cpu: "mips64r2".into(),
-- features: "+mips64r2".into(),
-+ features: "+mips64r2,+xgot".into(),
- max_atomic_width: Some(64),
- mcount: "_mcount".into(),
-
-Index: rust/src/bootstrap/bootstrap.py
-===================================================================
---- rust.orig/src/bootstrap/bootstrap.py
-+++ rust/src/bootstrap/bootstrap.py
-@@ -877,6 +877,8 @@ class RustBuild(object):
-
- # preserve existing RUSTFLAGS
- env.setdefault("RUSTFLAGS", "")
-+ if self.build_triple().startswith('mips'):
-+ env["RUSTFLAGS"] += " -Ctarget-feature=+xgot"
- target_features = []
- if self.get_toml("crt-static", build_section) == "true":
- target_features += ["+crt-static"]
-Index: rust/tests/assembly/asm/mips-types.rs
-===================================================================
---- rust.orig/tests/assembly/asm/mips-types.rs
-+++ rust/tests/assembly/asm/mips-types.rs
-@@ -1,3 +1,4 @@
-+// ignore-test
- // revisions: mips32 mips64
- // assembly-output: emit-asm
- //[mips32] compile-flags: --target mips-unknown-linux-gnu