You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

148 lines
6.3KB

  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>S/390 Function Attributes (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="S/390 Function Attributes (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="S/390 Function Attributes (Using the GNU Compiler Collection (GCC))">
  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="Function-Attributes.html#Function-Attributes" rel="up" title="Function Attributes">
  30. <link href="SH-Function-Attributes.html#SH-Function-Attributes" rel="next" title="SH Function Attributes">
  31. <link href="RX-Function-Attributes.html#RX-Function-Attributes" rel="prev" title="RX Function Attributes">
  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="S_002f390-Function-Attributes"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="SH-Function-Attributes.html#SH-Function-Attributes" accesskey="n" rel="next">SH Function Attributes</a>, Previous: <a href="RX-Function-Attributes.html#RX-Function-Attributes" accesskey="p" rel="prev">RX Function Attributes</a>, Up: <a href="Function-Attributes.html#Function-Attributes" accesskey="u" rel="up">Function Attributes</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="S_002f390-Function-Attributes-1"></a>
  68. <h4 class="subsection">6.33.30 S/390 Function Attributes</h4>
  69. <p>These function attributes are supported on the S/390:
  70. </p>
  71. <dl compact="compact">
  72. <dt><code>hotpatch (<var>halfwords-before-function-label</var>,<var>halfwords-after-function-label</var>)</code></dt>
  73. <dd><a name="index-hotpatch-function-attribute_002c-S_002f390"></a>
  74. <p>On S/390 System z targets, you can use this function attribute to
  75. make GCC generate a &ldquo;hot-patching&rdquo; function prologue. If the
  76. <samp>-mhotpatch=</samp> command-line option is used at the same time,
  77. the <code>hotpatch</code> attribute takes precedence. The first of the
  78. two arguments specifies the number of halfwords to be added before
  79. the function label. A second argument can be used to specify the
  80. number of halfwords to be added after the function label. For
  81. both arguments the maximum allowed value is 1000000.
  82. </p>
  83. <p>If both arguments are zero, hotpatching is disabled.
  84. </p>
  85. </dd>
  86. <dt><code>target (<var>options</var>)</code></dt>
  87. <dd><a name="index-target-function-attribute-4"></a>
  88. <p>As discussed in <a href="Common-Function-Attributes.html#Common-Function-Attributes">Common Function Attributes</a>, this attribute
  89. allows specification of target-specific compilation options.
  90. </p>
  91. <p>On S/390, the following options are supported:
  92. </p>
  93. <dl compact="compact">
  94. <dt>&lsquo;<samp>arch=</samp>&rsquo;</dt>
  95. <dt>&lsquo;<samp>tune=</samp>&rsquo;</dt>
  96. <dt>&lsquo;<samp>stack-guard=</samp>&rsquo;</dt>
  97. <dt>&lsquo;<samp>stack-size=</samp>&rsquo;</dt>
  98. <dt>&lsquo;<samp>branch-cost=</samp>&rsquo;</dt>
  99. <dt>&lsquo;<samp>warn-framesize=</samp>&rsquo;</dt>
  100. <dt>&lsquo;<samp>backchain</samp>&rsquo;</dt>
  101. <dt>&lsquo;<samp>no-backchain</samp>&rsquo;</dt>
  102. <dt>&lsquo;<samp>hard-dfp</samp>&rsquo;</dt>
  103. <dt>&lsquo;<samp>no-hard-dfp</samp>&rsquo;</dt>
  104. <dt>&lsquo;<samp>hard-float</samp>&rsquo;</dt>
  105. <dt>&lsquo;<samp>soft-float</samp>&rsquo;</dt>
  106. <dt>&lsquo;<samp>htm</samp>&rsquo;</dt>
  107. <dt>&lsquo;<samp>no-htm</samp>&rsquo;</dt>
  108. <dt>&lsquo;<samp>vx</samp>&rsquo;</dt>
  109. <dt>&lsquo;<samp>no-vx</samp>&rsquo;</dt>
  110. <dt>&lsquo;<samp>packed-stack</samp>&rsquo;</dt>
  111. <dt>&lsquo;<samp>no-packed-stack</samp>&rsquo;</dt>
  112. <dt>&lsquo;<samp>small-exec</samp>&rsquo;</dt>
  113. <dt>&lsquo;<samp>no-small-exec</samp>&rsquo;</dt>
  114. <dt>&lsquo;<samp>mvcle</samp>&rsquo;</dt>
  115. <dt>&lsquo;<samp>no-mvcle</samp>&rsquo;</dt>
  116. <dt>&lsquo;<samp>warn-dynamicstack</samp>&rsquo;</dt>
  117. <dt>&lsquo;<samp>no-warn-dynamicstack</samp>&rsquo;</dt>
  118. </dl>
  119. <p>The options work exactly like the S/390 specific command line
  120. options (without the prefix <samp>-m</samp>) except that they do not
  121. change any feature macros. For example,
  122. </p>
  123. <div class="smallexample">
  124. <pre class="smallexample"><code>target(&quot;no-vx&quot;)</code>
  125. </pre></div>
  126. <p>does not undefine the <code>__VEC__</code> macro.
  127. </p></dd>
  128. </dl>
  129. </body>
  130. </html>