]> git.ipfire.org Git - thirdparty/gcc.git/blob
b2fa7191f775cfbc9b8403c3da73d0e82a4936d6
[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 .. _m68k-function-attributes:
7
8 m68k Function Attributes
9 ^^^^^^^^^^^^^^^^^^^^^^^^
10
11 These function attributes are supported by the m68k back end:
12
13 .. index:: interrupt function attribute, m68k, interrupt_handler function attribute, m68k
14
15 .. m68k-fn-attr:: interrupt, interrupt_handler
16
17 Use this attribute to
18 indicate that the specified function is an interrupt handler. The compiler
19 generates function entry and exit sequences suitable for use in an
20 interrupt handler when this attribute is present. Either name may be used.
21
22 .. index:: interrupt_thread function attribute, fido
23
24 .. m68k-fn-attr:: interrupt_thread
25
26 Use this attribute on fido, a subarchitecture of the m68k, to indicate
27 that the specified function is an interrupt handler that is designed
28 to run as a thread. The compiler omits generate prologue/epilogue
29 sequences and replaces the return instruction with a ``sleep``
30 instruction. This attribute is available only on fido.