-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
riscv: unable to use atomics with linker-plugin-lto #69689
Copy link
Copy link
Open
Labels
A-atomicArea: Atomics, barriers, and sync primitivesArea: Atomics, barriers, and sync primitivesA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.WG-embeddedWorking group: Embedded systemsWorking group: Embedded systems
Metadata
Metadata
Assignees
Labels
A-atomicArea: Atomics, barriers, and sync primitivesArea: Atomics, barriers, and sync primitivesA-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.WG-embeddedWorking group: Embedded systemsWorking group: Embedded systems
Type
Fields
Give feedbackNo fields configured for issues without a type.
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-elfandriscv32imac-unknown-none-elf.