Reword error message of reserved AVR registers
Those are reserved as per the GCC (and thus LLVM) ABI, which is distinct from an issue. The rewording was requested in this [review]. [review]: https://github.com/rust-lang/rust/pull/131323#issuecomment-2479178721
This commit is contained in:
parent
2bd3bbb2e0
commit
67d2f3f685
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ def_regs! {
|
||||||
#error = ["SP", "SPL", "SPH"] =>
|
#error = ["SP", "SPL", "SPH"] =>
|
||||||
"the stack pointer cannot be used as an operand for inline asm",
|
"the stack pointer cannot be used as an operand for inline asm",
|
||||||
#error = ["r0", "r1", "r1r0"] =>
|
#error = ["r0", "r1", "r1r0"] =>
|
||||||
"r0 and r1 are not available due to an issue in LLVM",
|
"LLVM reserves r0 (scratch register) and r1 (zero register)",
|
||||||
// If this changes within LLVM, the compiler might use the registers
|
// If this changes within LLVM, the compiler might use the registers
|
||||||
// in the future. This must be reflected in the set of clobbered
|
// in the future. This must be reflected in the set of clobbered
|
||||||
// registers, else the clobber ABI implementation is *unsound*, as
|
// registers, else the clobber ABI implementation is *unsound*, as
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue