Skip to content

Commit

Permalink
Add .attribute arch, "rv32e"
Browse files Browse the repository at this point in the history
The LLVM spurious error affects us too :)
  • Loading branch information
hegza committed Feb 9, 2024
1 parent 9991925 commit 7ab817f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions riscv-rt/src/asm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ cfg_global_asm!(
"// Provisional patch to avoid LLVM spurious errors when compiling in release mode.",
#[cfg(all(riscv32, riscvm))]
".attribute arch, \"rv32im\"",
#[cfg(all(riscv32, riscve))]
".attribute arch, \"rv32e\"",
#[cfg(all(riscv64, riscvm, not(riscvg)))]
".attribute arch, \"rv64im\"",
#[cfg(all(riscv64, riscvg))]
Expand Down

0 comments on commit 7ab817f

Please sign in to comment.