From b0692a626b9247fe01f2009fb8a112f05942b5a4 Mon Sep 17 00:00:00 2001 From: John Paul Adrian Glaubitz Date: Fri, 21 Apr 2023 13:27:13 +0200 Subject: [PATCH] compiler/rustc_target: Raise m68k-linux-gnu baseline to 68020 Atomic operations require 68020 or later on m68k-linux-gnu. --- compiler/rustc_target/src/spec/m68k_unknown_linux_gnu.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/rustc_target/src/spec/m68k_unknown_linux_gnu.rs b/compiler/rustc_target/src/spec/m68k_unknown_linux_gnu.rs index ebd74012dcd2c..9bcd56bed0025 100644 --- a/compiler/rustc_target/src/spec/m68k_unknown_linux_gnu.rs +++ b/compiler/rustc_target/src/spec/m68k_unknown_linux_gnu.rs @@ -3,6 +3,7 @@ use crate::spec::{Target, TargetOptions}; pub fn target() -> Target { let mut base = super::linux_gnu_base::opts(); + base.cpu = "M68020".into(); base.max_atomic_width = Some(32); Target {