]> git.ipfire.org Git - thirdparty/gcc.git/blob
ef90eb37f946f14b78513632120ab979a0a70f66
[thirdparty/gcc.git] /
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. _mcore-function-attributes:
7
8 MCORE Function Attributes
9 ^^^^^^^^^^^^^^^^^^^^^^^^^
10
11 These function attributes are supported by the MCORE back end:
12
13 .. index:: naked function attribute, MCORE
14
15 .. mcore-fn-attr:: naked
16
17 This attribute allows the compiler to construct the
18 requisite function declaration, while allowing the body of the
19 function to be assembly code. The specified function will not have
20 prologue/epilogue sequences generated by the compiler. Only basic
21 ``asm`` statements can safely be included in naked functions
22 (see :ref:`basic-asm`). While using extended ``asm`` or a mixture of
23 basic ``asm`` and C code may appear to work, they cannot be
24 depended upon to work reliably and are not supported.