# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/rustc/mips64n32.patch # Copyright (C) 2022 - 2024 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This patch file is dual-licensed. It is available under the license the # patched project is licensed under, as long as it is an OpenSource license # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms # of the GNU General Public License version 2 as used by the T2 SDE. # --- T2-COPYRIGHT-NOTE-END --- --- rustc-1.72.0-src/compiler/rustc_target/src/spec/targets/mips64_unknown_linux_gnuabin32.rs.vanilla 2023-08-29 19:55:20.232114438 +0200 +++ rustc-1.72.0-src/compiler/rustc_target/src/spec/targets/mips64_unknown_linux_gnuabin32.rs 2023-08-29 19:56:26.060121712 +0200 @@ -3,16 +3,15 @@ pub fn target() -> Target { Target { - llvm_target: "mips64-unknown-linux-gnuabi64".into(), - pointer_width: 64, - data_layout: "E-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128".into(), - arch: "mips64".into(), + llvm_target: "mips64-unknown-linux-gnuabin32".into(), + pointer_width: 32, + data_layout: "E-m:m-p:32:32-i8:8:32-i16:16:32-i64:64-n32-S64".into(), + arch: "mips".into(), options: TargetOptions { - abi: "abi64".into(), + abi: "gnuabin32".into(), endian: Endian::Big, // NOTE(mips64r2) matches C toolchain - cpu: "mips64r2".into(), - features: "+mips64r2,+xgot".into(), + cpu: "mips4".into(), max_atomic_width: Some(64), mcount: "_mcount".into(),