about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorFolkert de Vries <folkert@folkertdev.nl>2025-03-11 00:06:03 +0100
committerFolkert de Vries <folkert@folkertdev.nl>2025-03-11 00:27:32 +0100
commitc0957ef45ade6a602dccaba0da7a37c0c7ec6aa6 (patch)
treea4888a36da555760819d7d8d537a2e00081bb14d /compiler
parent4f521991945886709a875ba2aeaa859574126c0e (diff)
downloadrust-c0957ef45ade6a602dccaba0da7a37c0c7ec6aa6.tar.gz
rust-c0957ef45ade6a602dccaba0da7a37c0c7ec6aa6.zip
naked functions: on windows emit `.endef` without the symbol name
also add test with `fastcall`, which on i686 uses a different mangling scheme
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/naked_asm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs b/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs
index 96d1ab018f6..676cd6d2477 100644
--- a/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/naked_asm.rs
@@ -245,7 +245,7 @@ fn prefix_and_suffix<'tcx>(
             writeln!(begin, ".def {asm_name}").unwrap();
             writeln!(begin, ".scl 2").unwrap();
             writeln!(begin, ".type 32").unwrap();
-            writeln!(begin, ".endef {asm_name}").unwrap();
+            writeln!(begin, ".endef").unwrap();
             writeln!(begin, "{asm_name}:").unwrap();
 
             writeln!(end).unwrap();