summaryrefslogtreecommitdiff
path: root/devdocs/gcc~13/pragmas.html
blob: ff4422cf34293048a372b5655af18719ddab231e (plain)
1
2
3
4
5
6
<div class="section-level-extent" id="Pragmas"> <div class="nav-panel"> <p> Next: <a href="unnamed-fields" accesskey="n" rel="next">Unnamed Structure and Union Fields</a>, Previous: <a href="target-format-checks" accesskey="p" rel="prev">Format Checks Specific to Particular Target Machines</a>, Up: <a href="c-extensions" accesskey="u" rel="up">Extensions to the C Language Family</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="section" id="Pragmas-Accepted-by-GCC"><span>6.62 Pragmas Accepted by GCC<a class="copiable-link" href="#Pragmas-Accepted-by-GCC"> ¶</a></span></h1>   <p>GCC supports several types of pragmas, primarily in order to compile code originally written for other compilers. Note that in general we do not recommend the use of pragmas; See <a class="xref" href="function-attributes">Declaring Attributes of Functions</a>, for further explanation. </p> <p>The GNU C preprocessor recognizes several pragmas in addition to the compiler pragmas documented here. Refer to the CPP manual for more information. </p> <ul class="mini-toc"> <li><a href="aarch64-pragmas" accesskey="1">AArch64 Pragmas</a></li> <li><a href="arm-pragmas" accesskey="2">ARM Pragmas</a></li> <li><a href="m32c-pragmas" accesskey="3">M32C Pragmas</a></li> <li><a href="pru-pragmas" accesskey="4">PRU Pragmas</a></li> <li><a href="rs_002f6000-and-powerpc-pragmas" accesskey="5">RS/6000 and PowerPC Pragmas</a></li> <li><a href="s_002f390-pragmas" accesskey="6">S/390 Pragmas</a></li> <li><a href="darwin-pragmas" accesskey="7">Darwin Pragmas</a></li> <li><a href="solaris-pragmas" accesskey="8">Solaris Pragmas</a></li> <li><a href="symbol-renaming-pragmas" accesskey="9">Symbol-Renaming Pragmas</a></li> <li><a href="structure-layout-pragmas">Structure-Layout Pragmas</a></li> <li><a href="weak-pragmas">Weak Pragmas</a></li> <li><a href="diagnostic-pragmas">Diagnostic Pragmas</a></li> <li><a href="visibility-pragmas">Visibility Pragmas</a></li> <li><a href="push_002fpop-macro-pragmas">Push/Pop Macro Pragmas</a></li> <li><a href="function-specific-option-pragmas">Function Specific Option Pragmas</a></li> <li><a href="loop-specific-pragmas">Loop-Specific Pragmas</a></li> </ul> </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/Pragmas.html" class="_attribution-link">https://gcc.gnu.org/onlinedocs/gcc-13.1.0/gcc/Pragmas.html</a>
  </p>
</div>