1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/rustc/mips64n32.patch
3 # Copyright (C) 2022 - 2024 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This patch file is dual-licensed. It is available under the license the
9 # patched project is licensed under, as long as it is an OpenSource license
10 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
11 # of the GNU General Public License version 2 as used by the T2 SDE.
12 # --- T2-COPYRIGHT-NOTE-END ---
14 --- rustc-1.78.0-src/compiler/rustc_target/src/spec/targets/mips64_unknown_linux_gnuabin32.rs.vanilla 2024-05-18 18:41:46.096941917 +0200
15 +++ rustc-1.78.0-src/compiler/rustc_target/src/spec/targets/mips64_unknown_linux_gnuabin32.rs 2024-05-18 18:43:09.011937741 +0200
18 pub fn target() -> Target {
20 - llvm_target: "mips64-unknown-linux-gnuabi64".into(),
21 + llvm_target: "mips64-unknown-linux-gnuabin32".into(),
22 metadata: crate::spec::TargetMetadata {
29 - data_layout: "E-m:e-i8:8:32-i16:16:32-i64:64-n32:64-S128".into(),
30 - arch: "mips64".into(),
32 + data_layout: "E-m:e-p:32:32-i8:8:32-i16:16:32-i64:64-n32:64-S128".into(),
33 + arch: "mips".into(),
34 options: TargetOptions {
35 - abi: "abi64".into(),
36 + abi: "gnuabin32".into(),
38 // NOTE(mips64r2) matches C toolchain
39 - cpu: "mips64r2".into(),
40 - features: "+mips64r2,+xgot".into(),
41 + cpu: "mips4".into(),
42 max_atomic_width: Some(64),
43 mcount: "_mcount".into(),