From e57bbb37798ca9e3a4c3a043312b0ed30f9cfd87 Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Mon, 24 Jun 2024 16:48:12 +0200 Subject: [PATCH] rustc_target: Build sparc_unknown_linux_gnu with -mcpu=v9 and -m32 The previously -mv8plus parameter is supported by GCC only, so let's use something that the SPARC backend in LLVM supports as well. --- .../rustc_target/src/spec/targets/sparc_unknown_linux_gnu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_target/src/spec/targets/sparc_unknown_linux_gnu.rs b/compiler/rustc_target/src/spec/targets/sparc_unknown_linux_gnu.rs index 6fa50a28c3709..5cee06e4936c9 100644 --- a/compiler/rustc_target/src/spec/targets/sparc_unknown_linux_gnu.rs +++ b/compiler/rustc_target/src/spec/targets/sparc_unknown_linux_gnu.rs @@ -18,7 +18,7 @@ pub fn target() -> Target { endian: Endian::Big, late_link_args: TargetOptions::link_args( LinkerFlavor::Gnu(Cc::Yes, Lld::No), - &["-mv8plus"], + &["-mcpu=v9", "-m32"], ), max_atomic_width: Some(32), ..base::linux_gnu::opts()