Auto merge of #32410 - Ticki:master, r=eddyb
Add support for naked functions See https://github.com/rust-lang/rfcs/pull/1201#issuecomment-199442239 This PR adds `#[naked]` for marking naked functions.
This commit is contained in:
commit
26cfc269a0
5 changed files with 110 additions and 0 deletions
|
|
@ -1905,6 +1905,8 @@ type int8_t = i8;
|
|||
- `should_panic` - indicates that this test function should panic, inverting the success condition.
|
||||
- `cold` - The function is unlikely to be executed, so optimize it (and calls
|
||||
to it) differently.
|
||||
- `naked` - The function utilizes a custom ABI or custom inline ASM that requires
|
||||
epilogue and prologue to be skipped.
|
||||
|
||||
### Static-only attributes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue