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.
6 .. _mcore-function-attributes:
8 MCORE Function Attributes
9 ^^^^^^^^^^^^^^^^^^^^^^^^^
11 These function attributes are supported by the MCORE back end:
13 .. index:: naked function attribute, MCORE
15 .. mcore-fn-attr:: naked
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.