1
Fork 0

naked functions: on windows emit .endef without the symbol name

also add test with `fastcall`, which on i686 uses a different mangling scheme
This commit is contained in:
Folkert de Vries 2025-03-11 00:06:03 +01:00
parent 4f52199194
commit c0957ef45a
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 49 additions and 25 deletions

View file

@ -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();