1
Fork 0

rust_for_linux: -Zreg-struct-return commandline flag for X86 (#116973)

This commit is contained in:
Andrew Zhogin 2024-09-24 16:35:00 +07:00
parent f005c7437d
commit 9aab517d63
15 changed files with 279 additions and 4 deletions

View file

@ -1985,6 +1985,9 @@ options! {
"enable queries of the dependency graph for regression testing (default: no)"),
randomize_layout: bool = (false, parse_bool, [TRACKED],
"randomize the layout of types (default: no)"),
reg_struct_return: bool = (false, parse_bool, [TRACKED],
"On x86-32 targets, it overrides the default ABI to return small structs in registers.
It is UNSOUND to link together crates that use different values for this flag!"),
regparm: Option<u32> = (None, parse_opt_number, [TRACKED],
"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 for\