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:
bors 2016-03-23 03:49:02 -07:00
commit 26cfc269a0
5 changed files with 110 additions and 0 deletions

View file

@ -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