about summary refs log tree commit diff
path: root/library/std/src/sys
diff options
context:
space:
mode:
authorchenx97 <chenx97@aosc.io>2023-06-28 13:35:39 +0800
committerchenx97 <chenx97@aosc.io>2023-07-18 18:58:18 +0800
commitd3727148a0cb2ddf5f3d9c3af7f6caf5bc032e9d (patch)
treea30bd28dc7cc98b31be8c8cff63bbdea94eba09f /library/std/src/sys
parenta132b3ec03f3ddab35fdc2d0c3bfbda951956db5 (diff)
downloadrust-d3727148a0cb2ddf5f3d9c3af7f6caf5bc032e9d.tar.gz
rust-d3727148a0cb2ddf5f3d9c3af7f6caf5bc032e9d.zip
support for mips32r6 as a target_arch value
Diffstat (limited to 'library/std/src/sys')
-rw-r--r--library/std/src/sys/common/alloc.rs1
-rw-r--r--library/std/src/sys/personality/gcc.rs7
2 files changed, 7 insertions, 1 deletions
diff --git a/library/std/src/sys/common/alloc.rs b/library/std/src/sys/common/alloc.rs
index c2e8c2e7538..3ccea3ce0e3 100644
--- a/library/std/src/sys/common/alloc.rs
+++ b/library/std/src/sys/common/alloc.rs
@@ -9,6 +9,7 @@ use crate::ptr;
     target_arch = "arm",
     target_arch = "m68k",
     target_arch = "mips",
+    target_arch = "mips32r6",
     target_arch = "powerpc",
     target_arch = "powerpc64",
     target_arch = "sparc",
diff --git a/library/std/src/sys/personality/gcc.rs b/library/std/src/sys/personality/gcc.rs
index 1d35e765793..dc9636ac8c9 100644
--- a/library/std/src/sys/personality/gcc.rs
+++ b/library/std/src/sys/personality/gcc.rs
@@ -59,7 +59,12 @@ const UNWIND_DATA_REG: (i32, i32) = (0, 1); // R0, R1 / X0, X1
 #[cfg(target_arch = "m68k")]
 const UNWIND_DATA_REG: (i32, i32) = (0, 1); // D0, D1
 
-#[cfg(any(target_arch = "mips", target_arch = "mips64", target_arch = "mips64r6"))]
+#[cfg(any(
+    target_arch = "mips",
+    target_arch = "mips32r6",
+    target_arch = "mips64",
+    target_arch = "mips64r6"
+))]
 const UNWIND_DATA_REG: (i32, i32) = (4, 5); // A0, A1
 
 #[cfg(any(target_arch = "powerpc", target_arch = "powerpc64"))]