Skip to content

Commit d974dc9

Browse files
committed
[RISCV] Disable c extension and atomic_cas.
1 parent 7a5e8bd commit d974dc9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_target/spec/riscv32imac_unknown_none_elf.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ pub fn target() -> TargetResult {
2828
linker: Some("riscv32-unknown-elf-ld".to_string()),
2929
cpu: "generic-rv32".to_string(),
3030
max_atomic_width: Some(32),
31-
features: "+m,+a,+c".to_string(),
31+
atomic_cas: false, // incomplete +a extension
32+
features: "+m,+a".to_string(), // disable +c extension
3233
executables: true,
3334
panic_strategy: PanicStrategy::Abort,
3435
relocation_model: "static".to_string(),

0 commit comments

Comments
 (0)