Skip to content

Commit aca91f0

Browse files
committed
Add new Tier-3 targets: loongarch32-unknown-none*
MCP: rust-lang/compiler-team#865
1 parent 71ea2ff commit aca91f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/shims/alloc.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
1313
// alignment requirement and size less than or equal to the size requested."
1414
// So first we need to figure out what the limits are for "fundamental alignment".
1515
// This is given by `alignof(max_align_t)`. The following list is taken from
16-
// `library/std/src/sys/pal/common/alloc.rs` (where this is called `MIN_ALIGN`) and should
16+
// `library/std/src/sys/alloc/mod.rs` (where this is called `MIN_ALIGN`) and should
1717
// be kept in sync.
1818
let max_fundamental_align = match this.tcx.sess.target.arch.as_ref() {
19-
"x86" | "arm" | "mips" | "mips32r6" | "powerpc" | "powerpc64" | "wasm32" => 8,
19+
"x86" | "arm" | "loongarch32" | "mips" | "mips32r6" | "powerpc" | "powerpc64"
20+
| "wasm32" => 8,
2021
"x86_64" | "aarch64" | "mips64" | "mips64r6" | "s390x" | "sparc64" | "loongarch64" =>
2122
16,
2223
arch => bug!("unsupported target architecture for malloc: `{}`", arch),

0 commit comments

Comments
 (0)