summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/rl78-function-attributes.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/gcc~13/rl78-function-attributes.html
new repository
Diffstat (limited to 'devdocs/gcc~13/rl78-function-attributes.html')
-rw-r--r--devdocs/gcc~13/rl78-function-attributes.html11
1 files changed, 11 insertions, 0 deletions
diff --git a/devdocs/gcc~13/rl78-function-attributes.html b/devdocs/gcc~13/rl78-function-attributes.html
new file mode 100644
index 00000000..15b37d99
--- /dev/null
+++ b/devdocs/gcc~13/rl78-function-attributes.html
@@ -0,0 +1,11 @@
+<div class="subsection-level-extent" id="RL78-Function-Attributes"> <div class="nav-panel"> <p> Next: <a href="rx-function-attributes" accesskey="n" rel="next">RX Function Attributes</a>, Previous: <a href="risc-v-function-attributes" accesskey="p" rel="prev">RISC-V Function Attributes</a>, Up: <a href="function-attributes" accesskey="u" rel="up">Declaring Attributes of Functions</a> [<a href="index#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="indices" title="Index" rel="index">Index</a>]</p> </div> <h1 class="subsection" id="RL78-Function-Attributes-1"><span>6.33.26 RL78 Function Attributes<a class="copiable-link" href="#RL78-Function-Attributes-1"> ¶</a></span></h1> <p>These function attributes are supported by the RL78 back end: </p> <dl class="table"> <dt>
+ <span><code class="code">interrupt</code><a class="copiable-link" href="#index-interrupt-function-attribute_002c-RL78"> ¶</a></span>
+</dt> <dt><code class="code">brk_interrupt</code></dt> <dd>
+<p>These attributes indicate that the specified function is an interrupt handler. The compiler generates function entry and exit sequences suitable for use in an interrupt handler when this attribute is present. </p> <p>Use <code class="code">brk_interrupt</code> instead of <code class="code">interrupt</code> for handlers intended to be used with the <code class="code">BRK</code> opcode (i.e. those that must end with <code class="code">RETB</code> instead of <code class="code">RETI</code>). </p> </dd> <dt>
+<span><code class="code">naked</code><a class="copiable-link" href="#index-naked-function-attribute_002c-RL78"> ¶</a></span>
+</dt> <dd><p>This attribute allows the compiler to construct the requisite function declaration, while allowing the body of the function to be assembly code. The specified function will not have prologue/epilogue sequences generated by the compiler. Only basic <code class="code">asm</code> statements can safely be included in naked functions (see <a class="pxref" href="basic-asm">Basic Asm — Assembler Instructions Without Operands</a>). While using extended <code class="code">asm</code> or a mixture of basic <code class="code">asm</code> and C code may appear to work, they cannot be depended upon to work reliably and are not supported. </p></dd> </dl> </div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; Free Software Foundation<br>Licensed under the GNU Free Documentation License, Version 1.3.<br>
+ <a href="https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/RL78-Function-Attributes.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/RL78-Function-Attributes.html</a>
+ </p>
+</div>