pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

rust179: change sparc64 spec to be more similar to other sparc64 specs.



Module Name:	pkgsrc-wip
Committed By:	Havard Eidnes <he%NetBSD.org@localhost>
Pushed By:	he
Date:		Wed Jul 24 10:36:53 2024 +0000
Changeset:	d425f82ca9d023e2dee1178e524fe96ef455539c

Added Files:
	rust179/patches/patch-compiler_rustc__target_src_spec_targets_sparc64__unknown__netbsd.rs

Log Message:
rust179: change sparc64 spec to be more similar to other sparc64 specs.

Eliminates use of TargetOptions.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=d425f82ca9d023e2dee1178e524fe96ef455539c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ...et_src_spec_targets_sparc64__unknown__netbsd.rs | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diffs:
diff --git a/rust179/patches/patch-compiler_rustc__target_src_spec_targets_sparc64__unknown__netbsd.rs b/rust179/patches/patch-compiler_rustc__target_src_spec_targets_sparc64__unknown__netbsd.rs
new file mode 100644
index 0000000000..c7ab248900
--- /dev/null
+++ b/rust179/patches/patch-compiler_rustc__target_src_spec_targets_sparc64__unknown__netbsd.rs
@@ -0,0 +1,29 @@
+$NetBSD$
+
+Make more similar to other sparc64 target specs.
+
+--- compiler/rustc_target/src/spec/targets/sparc64_unknown_netbsd.rs.orig	2006-07-24 01:21:28.000000000 +0000
++++ compiler/rustc_target/src/spec/targets/sparc64_unknown_netbsd.rs
+@@ -1,11 +1,13 @@
+ use crate::abi::Endian;
+-use crate::spec::{base, Cc, LinkerFlavor, Lld, Target, TargetOptions};
++use crate::spec::{base, Cc, LinkerFlavor, Lld, Target};
+ 
+ pub fn target() -> Target {
+     let mut base = base::netbsd::opts();
+     base.cpu = "v9".into();
+     base.add_pre_link_args(LinkerFlavor::Gnu(Cc::Yes, Lld::No), &["-m64"]);
+     base.max_atomic_width = Some(64);
++    base.endian = Endian::Big;
++    base.mcount = "__mcount".into();
+ 
+     Target {
+         llvm_target: "sparc64-unknown-netbsd".into(),
+@@ -18,6 +20,6 @@ pub fn target() -> Target {
+         pointer_width: 64,
+         data_layout: "E-m:e-i64:64-n32:64-S128".into(),
+         arch: "sparc64".into(),
+-        options: TargetOptions { endian: Endian::Big, mcount: "__mcount".into(), ..base },
++        options: base,
+     }
+ }


Home | Main Index | Thread Index | Old Index