1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/rustc/sparc32.patch
3 # Copyright (C) 2023 - 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.81.0-src/compiler/rustc_target/src/spec/targets/sparcv9b_unknown_linux_gnu.rs.vanilla 2024-09-25 16:24:05.474000000 +0100
15 +++ rustc-1.81.0-src/compiler/rustc_target/src/spec/targets/sparcv9b_unknown_linux_gnu.rs 2024-09-25 16:27:12.310000000 +0100
18 pub fn target() -> Target {
20 - llvm_target: "sparc-unknown-linux-gnu".into(),
21 + llvm_target: "sparc-unknown-linux-gnu".into(), // v9b
22 metadata: crate::spec::TargetMetadata {
23 description: Some("32-bit SPARC Linux".into()),
26 data_layout: "E-m:e-p:32:32-i64:64-f128:64-n32-S64".into(),
28 options: TargetOptions {
30 + cpu: "v9".into(), // v9b?
32 //late_link_args: TargetOptions::link_args( LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-mcpu=v9", "-m32"],),
33 max_atomic_width: Some(32),
34 --- rustc-1.81.0-src/compiler/rustc_target/src/spec/targets/sparcv9_unknown_linux_gnu.rs.vanilla 2024-09-25 16:24:05.474000000 +0100
35 +++ rustc-1.81.0-src/compiler/rustc_target/src/spec/targets/sparcv9_unknown_linux_gnu.rs 2024-09-25 16:26:40.302000000 +0100
38 pub fn target() -> Target {
40 - llvm_target: "sparc-unknown-linux-gnu".into(),
41 + llvm_target: "sparc-unknown-linux-gnu".into(), // v9
42 metadata: crate::spec::TargetMetadata {
43 description: Some("32-bit SPARC Linux".into()),
46 data_layout: "E-m:e-p:32:32-i64:64-f128:64-n32-S64".into(),
48 options: TargetOptions {
52 //late_link_args: TargetOptions::link_args( LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-mcpu=v9", "-m32"],),
53 max_atomic_width: Some(32),