riscv: unable to use atomics with linker-plugin-lto #69689
Labels
A-atomic
Area: atomics, barriers, and sync primitives
A-linkage
Area: linking into static, shared libraries and binaries
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
WG-embedded
Working group: Embedded systems
The following code compiles fine without
linker-plugin-lto
, but fails to compile when it is enabled:This code should compile cleanly with:
However, with the lto plugin, it doesn't compile:
Meta
rustc --version --verbose
:This occurs on both
riscv64gc-unknown-none-elf
andriscv32imac-unknown-none-elf
.The text was updated successfully, but these errors were encountered: