From 173c67948b22efd325e7ee7084b57acf25688078 Mon Sep 17 00:00:00 2001 From: David Craven Date: Thu, 30 Aug 2018 20:35:36 +0200 Subject: [PATCH] [RISCV] Disable atomics for riscv32imc-unknown-none-elf. --- src/librustc_target/spec/riscv32imc_unknown_none_elf.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustc_target/spec/riscv32imc_unknown_none_elf.rs b/src/librustc_target/spec/riscv32imc_unknown_none_elf.rs index 15b16cf3101..68da1b61adf 100644 --- a/src/librustc_target/spec/riscv32imc_unknown_none_elf.rs +++ b/src/librustc_target/spec/riscv32imc_unknown_none_elf.rs @@ -27,7 +27,8 @@ pub fn target() -> TargetResult { options: TargetOptions { linker: Some("rust-lld".to_string()), cpu: "generic-rv32".to_string(), - max_atomic_width: Some(32), + // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86005 + max_atomic_width: None, //Some(32), atomic_cas: false, features: "+m,+c".to_string(), executables: true,