Skip to content

Commit 37dc4ec

Browse files
Limited -Zregparm support (no Rust calling conv) descriptions
Co-authored-by: Jubilee <[email protected]>
1 parent b9c9678 commit 37dc4ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: compiler/rustc_session/src/options.rs

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

Diff for: src/doc/unstable-book/src/compiler-flags/regparm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The tracking issue for this feature is: https://github.com/rust-lang/rust/issues
55
------------------------
66

77
Option -Zregparm=N causes the compiler to pass N arguments
8-
in registers EAX, EDX, and ECX instead of on the stack.
8+
in registers EAX, EDX, and ECX instead of on the stack for "C", "cdecl", and "stdcall" fn.
99
It is UNSOUND to link together crates that use different values for this flag.
1010
It is only supported on `x86`.
1111

0 commit comments

Comments
 (0)