Skip to content

Commit

Permalink
Auto merge of #114499 - taiki-e:riscv-forced-atomics, r=Amanieu
Browse files Browse the repository at this point in the history
Pass +forced-atomics feature for riscv32{i,im,imc}-unknown-none-elf

As said in rust-lang/rust#98333 (comment), `forced-atomics` target feature is also needed to enable atomic load/store on these targets (otherwise, libcalls are generated): https://godbolt.org/z/433qeG7vd

~~This PR is currently marked as a draft because:~~
- ~~`forced-atomics` target feature is currently broken (rust-lang/rust#114153 EDIT: Fixed
- ~~`forced-atomics` target feature has been added in LLVM 16 (llvm/llvm-project@f5ed0cb), but the current minimum LLVM version [is 15](https://github.com/rust-lang/rust/blob/90f0b24ad3e7fc0dc0e419c9da30d74629cd5736/src/bootstrap/llvm.rs#L557). In LLVM 15, the atomic load/store of these targets generates libcalls anyway.~~ EDIT: LLVM 15 has been dropped

Depending on the policy on the minimum LLVM version for these targets, this may be blocked until the minimum LLVM version is increased to 16.

r? `@Amanieu`
  • Loading branch information
bors committed Nov 30, 2023
2 parents b152893 + d398dcc commit f4ee06d
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit f4ee06d

Please sign in to comment.