Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

185 rindas
7.8KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 1988-2020 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.3 or
  6. any later version published by the Free Software Foundation; with the
  7. Invariant Sections being "Funding Free Software", the Front-Cover
  8. Texts being (a) (see below), and with the Back-Cover Texts being (b)
  9. (see below). A copy of the license is included in the section entitled
  10. "GNU Free Documentation License".
  11. (a) The FSF's Front-Cover Text is:
  12. A GNU Manual
  13. (b) The FSF's Back-Cover Text is:
  14. You have freedom to copy and modify this GNU Manual, like GNU
  15. software. Copies published by the Free Software Foundation raise
  16. funds for GNU development. -->
  17. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  18. <head>
  19. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  20. <title>Require Support (GNU Compiler Collection (GCC) Internals)</title>
  21. <meta name="description" content="Require Support (GNU Compiler Collection (GCC) Internals)">
  22. <meta name="keywords" content="Require Support (GNU Compiler Collection (GCC) Internals)">
  23. <meta name="resource-type" content="document">
  24. <meta name="distribution" content="global">
  25. <meta name="Generator" content="makeinfo">
  26. <link href="index.html#Top" rel="start" title="Top">
  27. <link href="Option-Index.html#Option-Index" rel="index" title="Option Index">
  28. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  29. <link href="Test-Directives.html#Test-Directives" rel="up" title="Test Directives">
  30. <link href="Final-Actions.html#Final-Actions" rel="next" title="Final Actions">
  31. <link href="Add-Options.html#Add-Options" rel="prev" title="Add Options">
  32. <style type="text/css">
  33. <!--
  34. a.summary-letter {text-decoration: none}
  35. blockquote.indentedblock {margin-right: 0em}
  36. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  37. blockquote.smallquotation {font-size: smaller}
  38. div.display {margin-left: 3.2em}
  39. div.example {margin-left: 3.2em}
  40. div.lisp {margin-left: 3.2em}
  41. div.smalldisplay {margin-left: 3.2em}
  42. div.smallexample {margin-left: 3.2em}
  43. div.smalllisp {margin-left: 3.2em}
  44. kbd {font-style: oblique}
  45. pre.display {font-family: inherit}
  46. pre.format {font-family: inherit}
  47. pre.menu-comment {font-family: serif}
  48. pre.menu-preformatted {font-family: serif}
  49. pre.smalldisplay {font-family: inherit; font-size: smaller}
  50. pre.smallexample {font-size: smaller}
  51. pre.smallformat {font-family: inherit; font-size: smaller}
  52. pre.smalllisp {font-size: smaller}
  53. span.nolinebreak {white-space: nowrap}
  54. span.roman {font-family: initial; font-weight: normal}
  55. span.sansserif {font-family: sans-serif; font-weight: normal}
  56. ul.no-bullet {list-style: none}
  57. -->
  58. </style>
  59. </head>
  60. <body lang="en">
  61. <a name="Require-Support"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="Final-Actions.html#Final-Actions" accesskey="n" rel="next">Final Actions</a>, Previous: <a href="Add-Options.html#Add-Options" accesskey="p" rel="prev">Add Options</a>, Up: <a href="Test-Directives.html#Test-Directives" accesskey="u" rel="up">Test Directives</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  65. </div>
  66. <hr>
  67. <a name="Variants-of-dg_002drequire_002dsupport"></a>
  68. <h4 class="subsection">7.2.5 Variants of <code>dg-require-<var>support</var></code></h4>
  69. <p>A few of the <code>dg-require</code> directives take arguments.
  70. </p>
  71. <dl compact="compact">
  72. <dt><code>dg-require-iconv <var>codeset</var></code></dt>
  73. <dd><p>Skip the test if the target does not support iconv. <var>codeset</var> is
  74. the codeset to convert to.
  75. </p>
  76. </dd>
  77. <dt><code>dg-require-profiling <var>profopt</var></code></dt>
  78. <dd><p>Skip the test if the target does not support profiling with option
  79. <var>profopt</var>.
  80. </p>
  81. </dd>
  82. <dt><code>dg-require-stack-check <var>check</var></code></dt>
  83. <dd><p>Skip the test if the target does not support the <code>-fstack-check</code>
  84. option. If <var>check</var> is <code>&quot;&quot;</code>, support for <code>-fstack-check</code>
  85. is checked, for <code>-fstack-check=(&quot;<var>check</var>&quot;)</code> otherwise.
  86. </p>
  87. </dd>
  88. <dt><code>dg-require-stack-size <var>size</var></code></dt>
  89. <dd><p>Skip the test if the target does not support a stack size of <var>size</var>.
  90. </p>
  91. </dd>
  92. <dt><code>dg-require-visibility <var>vis</var></code></dt>
  93. <dd><p>Skip the test if the target does not support the <code>visibility</code> attribute.
  94. If <var>vis</var> is <code>&quot;&quot;</code>, support for <code>visibility(&quot;hidden&quot;)</code> is
  95. checked, for <code>visibility(&quot;<var>vis</var>&quot;)</code> otherwise.
  96. </p></dd>
  97. </dl>
  98. <p>The original <code>dg-require</code> directives were defined before there
  99. was support for effective-target keywords. The directives that do not
  100. take arguments could be replaced with effective-target keywords.
  101. </p>
  102. <dl compact="compact">
  103. <dt><code>dg-require-alias &quot;&quot;</code></dt>
  104. <dd><p>Skip the test if the target does not support the &lsquo;<samp>alias</samp>&rsquo; attribute.
  105. </p>
  106. </dd>
  107. <dt><code>dg-require-ascii-locale &quot;&quot;</code></dt>
  108. <dd><p>Skip the test if the host does not support an ASCII locale.
  109. </p>
  110. </dd>
  111. <dt><code>dg-require-compat-dfp &quot;&quot;</code></dt>
  112. <dd><p>Skip this test unless both compilers in a <samp>compat</samp> testsuite
  113. support decimal floating point.
  114. </p>
  115. </dd>
  116. <dt><code>dg-require-cxa-atexit &quot;&quot;</code></dt>
  117. <dd><p>Skip the test if the target does not support <code>__cxa_atexit</code>.
  118. This is equivalent to <code>dg-require-effective-target cxa_atexit</code>.
  119. </p>
  120. </dd>
  121. <dt><code>dg-require-dll &quot;&quot;</code></dt>
  122. <dd><p>Skip the test if the target does not support DLL attributes.
  123. </p>
  124. </dd>
  125. <dt><code>dg-require-dot &quot;&quot;</code></dt>
  126. <dd><p>Skip the test if the host does not have <code>dot</code>.
  127. </p>
  128. </dd>
  129. <dt><code>dg-require-fork &quot;&quot;</code></dt>
  130. <dd><p>Skip the test if the target does not support <code>fork</code>.
  131. </p>
  132. </dd>
  133. <dt><code>dg-require-gc-sections &quot;&quot;</code></dt>
  134. <dd><p>Skip the test if the target&rsquo;s linker does not support the
  135. <code>--gc-sections</code> flags.
  136. This is equivalent to <code>dg-require-effective-target gc-sections</code>.
  137. </p>
  138. </dd>
  139. <dt><code>dg-require-host-local &quot;&quot;</code></dt>
  140. <dd><p>Skip the test if the host is remote, rather than the same as the build
  141. system. Some tests are incompatible with DejaGnu&rsquo;s handling of remote
  142. hosts, which involves copying the source file to the host and compiling
  143. it with a relative path and &quot;<code>-o a.out</code>&quot;.
  144. </p>
  145. </dd>
  146. <dt><code>dg-require-mkfifo &quot;&quot;</code></dt>
  147. <dd><p>Skip the test if the target does not support <code>mkfifo</code>.
  148. </p>
  149. </dd>
  150. <dt><code>dg-require-named-sections &quot;&quot;</code></dt>
  151. <dd><p>Skip the test is the target does not support named sections.
  152. This is equivalent to <code>dg-require-effective-target named_sections</code>.
  153. </p>
  154. </dd>
  155. <dt><code>dg-require-weak &quot;&quot;</code></dt>
  156. <dd><p>Skip the test if the target does not support weak symbols.
  157. </p>
  158. </dd>
  159. <dt><code>dg-require-weak-override &quot;&quot;</code></dt>
  160. <dd><p>Skip the test if the target does not support overriding weak symbols.
  161. </p></dd>
  162. </dl>
  163. <hr>
  164. <div class="header">
  165. <p>
  166. Next: <a href="Final-Actions.html#Final-Actions" accesskey="n" rel="next">Final Actions</a>, Previous: <a href="Add-Options.html#Add-Options" accesskey="p" rel="prev">Add Options</a>, Up: <a href="Test-Directives.html#Test-Directives" accesskey="u" rel="up">Test Directives</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html#Option-Index" title="Index" rel="index">Index</a>]</p>
  167. </div>
  168. </body>
  169. </html>