1
Fork 0

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:
Julian Frimmel 2024-11-28 12:57:42 +01:00
parent 2bd3bbb2e0
commit 67d2f3f685
No known key found for this signature in database

View file

@ -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