Skip to content

Commit 67d2f3f

Browse files
committed
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]: rust-lang#131323 (comment)
1 parent 2bd3bbb commit 67d2f3f

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_target/src/asm

1 file changed

+1
-1
lines changed

compiler/rustc_target/src/asm/avr.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def_regs! {
105105
#error = ["SP", "SPL", "SPH"] =>
106106
"the stack pointer cannot be used as an operand for inline asm",
107107
#error = ["r0", "r1", "r1r0"] =>
108-
"r0 and r1 are not available due to an issue in LLVM",
108+
"LLVM reserves r0 (scratch register) and r1 (zero register)",
109109
// If this changes within LLVM, the compiler might use the registers
110110
// in the future. This must be reflected in the set of clobbered
111111
// registers, else the clobber ABI implementation is *unsound*, as

0 commit comments

Comments
 (0)