Limited -Zregparm support (no Rust calling conv) descriptions

Co-authored-by: Jubilee <workingjubilee@gmail.com>
This commit is contained in:
Andrew Zhogin 2024-10-20 18:18:01 +07:00 committed by GitHub
parent b9c96780b4
commit 37dc4ec8d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -2002,7 +2002,8 @@ options! {
"randomize the layout of types (default: no)"), "randomize the layout of types (default: no)"),
regparm: Option<u32> = (None, parse_opt_number, [TRACKED], regparm: Option<u32> = (None, parse_opt_number, [TRACKED],
"On x86-32 targets, setting this to N causes the compiler to pass N arguments \ "On x86-32 targets, setting this to N causes the compiler to pass N arguments \
in registers EAX, EDX, and ECX instead of on the stack.\ in registers EAX, EDX, and ECX instead of on the stack for\
\"C\", \"cdecl\", and \"stdcall\" fn.\
It is UNSOUND to link together crates that use different values for this flag!"), It is UNSOUND to link together crates that use different values for this flag!"),
relax_elf_relocations: Option<bool> = (None, parse_opt_bool, [TRACKED], relax_elf_relocations: Option<bool> = (None, parse_opt_bool, [TRACKED],
"whether ELF relocations can be relaxed"), "whether ELF relocations can be relaxed"),

View File

@ -5,7 +5,7 @@ The tracking issue for this feature is: https://github.com/rust-lang/rust/issues
------------------------ ------------------------
Option -Zregparm=N causes the compiler to pass N arguments Option -Zregparm=N causes the compiler to pass N arguments
in registers EAX, EDX, and ECX instead of on the stack. in registers EAX, EDX, and ECX instead of on the stack for "C", "cdecl", and "stdcall" fn.
It is UNSOUND to link together crates that use different values for this flag. It is UNSOUND to link together crates that use different values for this flag.
It is only supported on `x86`. It is only supported on `x86`.