about summary refs log tree commit diff
path: root/compiler/rustc_error_codes/src/lib.rs
diff options
context:
space:
mode:
authorFolkert <folkert@folkertdev.nl>2024-07-16 15:57:00 +0200
committerFolkert <folkert@folkertdev.nl>2024-07-16 15:58:33 +0200
commit50ba821e12f51903aba6902b2b404edbc94011d2 (patch)
tree75b79e1400de2bc59d62b764ed7d8db27061b057 /compiler/rustc_error_codes/src/lib.rs
parentd3dd34a1d4a7e25a92a0d65994bb01a5d17c59ee (diff)
downloadrust-50ba821e12f51903aba6902b2b404edbc94011d2.tar.gz
rust-50ba821e12f51903aba6902b2b404edbc94011d2.zip
add rust error message for CMSE stack spill
when the `C-cmse-nonsecure-call` ABI is used, arguments and return values must be passed via registers. Failing to do so (i.e. spilling to the stack) causes an LLVM error down the line, but now rustc will properly emit an error a bit earlier in the chain
Diffstat (limited to 'compiler/rustc_error_codes/src/lib.rs')
-rw-r--r--compiler/rustc_error_codes/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_error_codes/src/lib.rs b/compiler/rustc_error_codes/src/lib.rs
index d13d5e1bca2..2a7bc2501c0 100644
--- a/compiler/rustc_error_codes/src/lib.rs
+++ b/compiler/rustc_error_codes/src/lib.rs
@@ -536,6 +536,7 @@ E0794: 0794,
 E0795: 0795,
 E0796: 0796,
 E0797: 0797,
+E0798: 0798,
         );
     )
 }