]> git.ipfire.org Git - thirdparty/gcc.git/blob
b039c43fb18c4d8158af65cf6acdf9b251c971c0
[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 .. _mep-function-attributes:
7
8 MeP Function Attributes
9 ^^^^^^^^^^^^^^^^^^^^^^^
10
11 These function attributes are supported by the MeP back end:
12
13 .. index:: disinterrupt function attribute, MeP
14
15 .. mep-fn-attr:: disinterrupt
16
17 On MeP targets, this attribute causes the compiler to emit
18 instructions to disable interrupts for the duration of the given
19 function.
20
21 .. index:: interrupt function attribute, MeP
22
23 .. mep-fn-attr:: interrupt
24
25 Use this attribute to indicate
26 that the specified function is an interrupt handler. The compiler generates
27 function entry and exit sequences suitable for use in an interrupt handler
28 when this attribute is present.
29
30 .. index:: near function attribute, MeP
31
32 .. mep-fn-attr:: near
33
34 This attribute causes the compiler to assume the called
35 function is close enough to use the normal calling convention,
36 overriding the :option:`-mtf <MeP -mtf>` command-line option.
37
38 .. index:: far function attribute, MeP
39
40 .. mep-fn-attr:: far
41
42 On MeP targets this causes the compiler to use a calling convention
43 that assumes the called function is too far away for the built-in
44 addressing modes.
45
46 .. index:: vliw function attribute, MeP
47
48 .. mep-fn-attr:: vliw
49
50 The :mep-fn-attr:`vliw` attribute tells the compiler to emit
51 instructions in VLIW mode instead of core mode. Note that this
52 attribute is not allowed unless a VLIW coprocessor has been configured
53 and enabled through command-line options.