summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/arm-type-attributes.html
diff options
context:
space:
mode:
Diffstat (limited to 'devdocs/gcc~13/arm-type-attributes.html')
-rw-r--r--devdocs/gcc~13/arm-type-attributes.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/devdocs/gcc~13/arm-type-attributes.html b/devdocs/gcc~13/arm-type-attributes.html
new file mode 100644
index 00000000..415037e5
--- /dev/null
+++ b/devdocs/gcc~13/arm-type-attributes.html
@@ -0,0 +1,14 @@
+<div class="subsection-level-extent" id="ARM-Type-Attributes"> <div class="nav-panel"> <p> Next: <a href="bpf-type-attributes" accesskey="n" rel="next">BPF Type Attributes</a>, Previous: <a href="arc-type-attributes" accesskey="p" rel="prev">ARC Type Attributes</a>, Up: <a href="type-attributes" accesskey="u" rel="up">Specifying Attributes of Types</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="ARM-Type-Attributes-1"><span>6.35.3 ARM Type Attributes<a class="copiable-link" href="#ARM-Type-Attributes-1"> ΒΆ</a></span></h1> <p>On those ARM targets that support <code class="code">dllimport</code> (such as Symbian OS), you can use the <code class="code">notshared</code> attribute to indicate that the virtual table and other similar data for a class should not be exported from a DLL. For example: </p> <div class="example smallexample"> <pre class="example-preformatted" data-language="cpp">class __declspec(notshared) C {
+public:
+ __declspec(dllimport) C();
+ virtual void f();
+}
+
+__declspec(dllexport)
+C::C() {}</pre>
+</div> <p>In this code, <code class="code">C::C</code> is exported from the current DLL, but the virtual table for <code class="code">C</code> is not exported. (You can use <code class="code">__attribute__</code> instead of <code class="code">__declspec</code> if you prefer, but most Symbian OS code uses <code class="code">__declspec</code>.) </p> </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/ARM-Type-Attributes.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/ARM-Type-Attributes.html</a>
+ </p>
+</div>