Skip to content

Commit eef4434

Browse files
Add the sysv64 calling convention to the list of known calling conventions and add the feature(abi_sysv64) to the list of known features
1 parent 0e58a5d commit eef4434

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/doc/reference.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,7 @@ There are also some platform-specific ABI strings:
16771677
* `extern "cdecl"` -- The default for x86\_32 C code.
16781678
* `extern "stdcall"` -- The default for the Win32 API on x86\_32.
16791679
* `extern "win64"` -- The default for C code on x86\_64 Windows.
1680+
* `extern "sysv64"` -- The default for C code on non-Windows x86\_64.
16801681
* `extern "aapcs"` -- The default for ARM.
16811682
* `extern "fastcall"` -- The `fastcall` ABI -- corresponds to MSVC's
16821683
`__fastcall` and GCC and clang's `__attribute__((fastcall))`
@@ -2485,6 +2486,9 @@ The currently implemented features of the reference compiler are:
24852486

24862487
* - `dotdot_in_tuple_patterns` - Allows `..` in tuple (struct) patterns.
24872488

2489+
* - `abi_sysv64` - Allows the usage of the system V AMD64 calling convention
2490+
(e.g. `extern "sysv64" func fn_();`)
2491+
24882492
If a feature is promoted to a language feature, then all existing programs will
24892493
start to receive compilation warnings about `#![feature]` directives which enabled
24902494
the new feature (because the directive is no longer necessary). However, if a

0 commit comments

Comments
 (0)