about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJulian Frimmel <julian@fri-me.de>2024-11-28 12:57:42 +0100
committerJulian Frimmel <julian@fri-me.de>2024-11-28 16:12:04 +0100
commit67d2f3f6857a1d28113f1a63eb003b53d17088c9 (patch)
tree29981db4f25bf1adf271592b8ad71e2a6d1d70e2
parent2bd3bbb2e0132d6d9c3766f35c2efc34414a8a66 (diff)
downloadrust-67d2f3f6857a1d28113f1a63eb003b53d17088c9.tar.gz
rust-67d2f3f6857a1d28113f1a63eb003b53d17088c9.zip
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
-rw-r--r--compiler/rustc_target/src/asm/avr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/asm/avr.rs b/compiler/rustc_target/src/asm/avr.rs
index 9adcbecdf3c..55d393c81d3 100644
--- a/compiler/rustc_target/src/asm/avr.rs
+++ b/compiler/rustc_target/src/asm/avr.rs
@@ -105,7 +105,7 @@ def_regs! {
         #error = ["SP", "SPL", "SPH"] =>
             "the stack pointer cannot be used as an operand for inline asm",
         #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
             // in the future. This must be reflected in the set of clobbered
             // registers, else the clobber ABI implementation is *unsound*, as