about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHavard Eidnes <he@NetBSD.org>2023-10-28 12:14:30 +0000
committerHavard Eidnes <he@NetBSD.org>2023-10-28 12:14:30 +0000
commita510288f0a89406ca0487cc0b1f41eb5d432208c (patch)
treedd08495d3ce8c215fdda2ce7cbf6f0995b15fe08
parent0f04e2dd8f08951b3b9d0641febdcf3003f876aa (diff)
downloadrust-a510288f0a89406ca0487cc0b1f41eb5d432208c.tar.gz
rust-a510288f0a89406ca0487cc0b1f41eb5d432208c.zip
i586_unknown_netbsd.rs: drop "-m32" flag insertion to gcc.
This triggers a consistency check in rust (that all linker flavours
must have identical arguments), and on NetBSD/i386, the 32-bitness
is implicitly chosen through the chosen toolchain, and appears to
not be required.  So drop it, and also drop the imports of the
now-no-longer-used identifiers.
-rw-r--r--compiler/rustc_target/src/spec/i586_unknown_netbsd.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/rustc_target/src/spec/i586_unknown_netbsd.rs b/compiler/rustc_target/src/spec/i586_unknown_netbsd.rs
index 957cb38b793..0d8bdc3f89f 100644
--- a/compiler/rustc_target/src/spec/i586_unknown_netbsd.rs
+++ b/compiler/rustc_target/src/spec/i586_unknown_netbsd.rs
@@ -1,10 +1,9 @@
-use crate::spec::{Cc, LinkerFlavor, Lld, StackProbeType, Target, TargetOptions};
+use crate::spec::{StackProbeType, Target, TargetOptions};
 
 pub fn target() -> Target {
     let mut base = super::netbsd_base::opts();
     base.cpu = "pentium".into();
     base.max_atomic_width = Some(64);
-    base.pre_link_args.entry(LinkerFlavor::Gnu(Cc::Yes, Lld::No)).or_default().push("-m32".into());
     base.stack_probes = StackProbeType::Call;
 
     Target {