Skip to content

Commit

Permalink
[RISCV] Disable Atomics on all Non-A RISC-V targets
Browse files Browse the repository at this point in the history
  • Loading branch information
lenary committed Nov 19, 2019
1 parent 2cad8bb commit ca42c25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/librustc_target/spec/riscv32i_unknown_none_elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub fn target() -> TargetResult {
options: TargetOptions {
linker: Some("rust-lld".to_string()),
cpu: "generic-rv32".to_string(),
max_atomic_width: None,
max_atomic_width: Some(0),
atomic_cas: false,
features: String::new(),
executables: true,
Expand Down
3 changes: 1 addition & 2 deletions src/librustc_target/spec/riscv32imc_unknown_none_elf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ pub fn target() -> TargetResult {
options: TargetOptions {
linker: Some("rust-lld".to_string()),
cpu: "generic-rv32".to_string(),
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86005
max_atomic_width: None, //Some(32),
max_atomic_width: Some(0),
atomic_cas: false,
features: "+m,+c".to_string(),
executables: true,
Expand Down

0 comments on commit ca42c25

Please sign in to comment.