Limited -Zregparm support (no Rust calling conv) descriptions · rust-lang/rust@37dc4ec (original) (raw)
File tree
2 files changed
lines changed
- compiler/rustc_session/src
- src/doc/unstable-book/src/compiler-flags
2 files changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -2002,7 +2002,8 @@ options! { | ||
2002 | 2002 | "randomize the layout of types (default: no)"), |
2003 | 2003 | regparm: Option<u32> = (None, parse_opt_number, [TRACKED], |
2004 | 2004 | "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.\ | |
2006 | 2007 | It is UNSOUND to link together crates that use different values for this flag!"), |
2007 | 2008 | relax_elf_relocations: Option<bool> = (None, parse_opt_bool, [TRACKED], |
2008 | 2009 | "whether ELF relocations can be relaxed"), |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -5,7 +5,7 @@ The tracking issue for this feature is: https://github.com/rust-lang/rust/issues | ||
5 | 5 | ------------------------ |
6 | 6 | |
7 | 7 | 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. | |
9 | 9 | It is UNSOUND to link together crates that use different values for this flag. |
10 | 10 | It is only supported on `x86`. |
11 | 11 |