No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

619 líneas
28KB

  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>Flags (GNU Compiler Collection (GCC) Internals)</title>
  21. <meta name="description" content="Flags (GNU Compiler Collection (GCC) Internals)">
  22. <meta name="keywords" content="Flags (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="RTL.html#RTL" rel="up" title="RTL">
  30. <link href="Machine-Modes.html#Machine-Modes" rel="next" title="Machine Modes">
  31. <link href="Special-Accessors.html#Special-Accessors" rel="prev" title="Special Accessors">
  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="Flags"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="Machine-Modes.html#Machine-Modes" accesskey="n" rel="next">Machine Modes</a>, Previous: <a href="Special-Accessors.html#Special-Accessors" accesskey="p" rel="prev">Special Accessors</a>, Up: <a href="RTL.html#RTL" accesskey="u" rel="up">RTL</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="Flags-in-an-RTL-Expression"></a>
  68. <h3 class="section">14.5 Flags in an RTL Expression</h3>
  69. <a name="index-flags-in-RTL-expression"></a>
  70. <p>RTL expressions contain several flags (one-bit bit-fields)
  71. that are used in certain types of expression. Most often they
  72. are accessed with the following macros, which expand into lvalues.
  73. </p>
  74. <dl compact="compact">
  75. <dd><a name="index-CROSSING_005fJUMP_005fP"></a>
  76. <a name="index-jump_005finsn-and-_002fj"></a>
  77. </dd>
  78. <dt><code>CROSSING_JUMP_P (<var>x</var>)</code></dt>
  79. <dd><p>Nonzero in a <code>jump_insn</code> if it crosses between hot and cold sections,
  80. which could potentially be very far apart in the executable. The presence
  81. of this flag indicates to other optimizations that this branching instruction
  82. should not be &ldquo;collapsed&rdquo; into a simpler branching construct. It is used
  83. when the optimization to partition basic blocks into hot and cold sections
  84. is turned on.
  85. </p>
  86. <a name="index-CONSTANT_005fPOOL_005fADDRESS_005fP"></a>
  87. <a name="index-symbol_005fref-and-_002fu"></a>
  88. <a name="index-unchanging_002c-in-symbol_005fref"></a>
  89. </dd>
  90. <dt><code>CONSTANT_POOL_ADDRESS_P (<var>x</var>)</code></dt>
  91. <dd><p>Nonzero in a <code>symbol_ref</code> if it refers to part of the current
  92. function&rsquo;s constant pool. For most targets these addresses are in a
  93. <code>.rodata</code> section entirely separate from the function, but for
  94. some targets the addresses are close to the beginning of the function.
  95. In either case GCC assumes these addresses can be addressed directly,
  96. perhaps with the help of base registers.
  97. Stored in the <code>unchanging</code> field and printed as &lsquo;<samp>/u</samp>&rsquo;.
  98. </p>
  99. <a name="index-INSN_005fANNULLED_005fBRANCH_005fP"></a>
  100. <a name="index-jump_005finsn-and-_002fu"></a>
  101. <a name="index-call_005finsn-and-_002fu"></a>
  102. <a name="index-insn-and-_002fu"></a>
  103. <a name="index-unchanging_002c-in-jump_005finsn_002c-call_005finsn-and-insn"></a>
  104. </dd>
  105. <dt><code>INSN_ANNULLED_BRANCH_P (<var>x</var>)</code></dt>
  106. <dd><p>In a <code>jump_insn</code>, <code>call_insn</code>, or <code>insn</code> indicates
  107. that the branch is an annulling one. See the discussion under
  108. <code>sequence</code> below. Stored in the <code>unchanging</code> field and
  109. printed as &lsquo;<samp>/u</samp>&rsquo;.
  110. </p>
  111. <a name="index-INSN_005fDELETED_005fP"></a>
  112. <a name="index-insn-and-_002fv"></a>
  113. <a name="index-call_005finsn-and-_002fv"></a>
  114. <a name="index-jump_005finsn-and-_002fv"></a>
  115. <a name="index-code_005flabel-and-_002fv"></a>
  116. <a name="index-jump_005ftable_005fdata-and-_002fv"></a>
  117. <a name="index-barrier-and-_002fv"></a>
  118. <a name="index-note-and-_002fv"></a>
  119. <a name="index-volatil_002c-in-insn_002c-call_005finsn_002c-jump_005finsn_002c-code_005flabel_002c-jump_005ftable_005fdata_002c-barrier_002c-and-note"></a>
  120. </dd>
  121. <dt><code>INSN_DELETED_P (<var>x</var>)</code></dt>
  122. <dd><p>In an <code>insn</code>, <code>call_insn</code>, <code>jump_insn</code>, <code>code_label</code>,
  123. <code>jump_table_data</code>, <code>barrier</code>, or <code>note</code>,
  124. nonzero if the insn has been deleted. Stored in the
  125. <code>volatil</code> field and printed as &lsquo;<samp>/v</samp>&rsquo;.
  126. </p>
  127. <a name="index-INSN_005fFROM_005fTARGET_005fP"></a>
  128. <a name="index-insn-and-_002fs"></a>
  129. <a name="index-jump_005finsn-and-_002fs"></a>
  130. <a name="index-call_005finsn-and-_002fs"></a>
  131. <a name="index-in_005fstruct_002c-in-insn-and-jump_005finsn-and-call_005finsn"></a>
  132. </dd>
  133. <dt><code>INSN_FROM_TARGET_P (<var>x</var>)</code></dt>
  134. <dd><p>In an <code>insn</code> or <code>jump_insn</code> or <code>call_insn</code> in a delay
  135. slot of a branch, indicates that the insn
  136. is from the target of the branch. If the branch insn has
  137. <code>INSN_ANNULLED_BRANCH_P</code> set, this insn will only be executed if
  138. the branch is taken. For annulled branches with
  139. <code>INSN_FROM_TARGET_P</code> clear, the insn will be executed only if the
  140. branch is not taken. When <code>INSN_ANNULLED_BRANCH_P</code> is not set,
  141. this insn will always be executed. Stored in the <code>in_struct</code>
  142. field and printed as &lsquo;<samp>/s</samp>&rsquo;.
  143. </p>
  144. <a name="index-LABEL_005fPRESERVE_005fP"></a>
  145. <a name="index-code_005flabel-and-_002fi"></a>
  146. <a name="index-note-and-_002fi"></a>
  147. <a name="index-in_005fstruct_002c-in-code_005flabel-and-note"></a>
  148. </dd>
  149. <dt><code>LABEL_PRESERVE_P (<var>x</var>)</code></dt>
  150. <dd><p>In a <code>code_label</code> or <code>note</code>, indicates that the label is referenced by
  151. code or data not visible to the RTL of a given function.
  152. Labels referenced by a non-local goto will have this bit set. Stored
  153. in the <code>in_struct</code> field and printed as &lsquo;<samp>/s</samp>&rsquo;.
  154. </p>
  155. <a name="index-LABEL_005fREF_005fNONLOCAL_005fP"></a>
  156. <a name="index-label_005fref-and-_002fv"></a>
  157. <a name="index-reg_005flabel-and-_002fv"></a>
  158. <a name="index-volatil_002c-in-label_005fref-and-reg_005flabel"></a>
  159. </dd>
  160. <dt><code>LABEL_REF_NONLOCAL_P (<var>x</var>)</code></dt>
  161. <dd><p>In <code>label_ref</code> and <code>reg_label</code> expressions, nonzero if this is
  162. a reference to a non-local label.
  163. Stored in the <code>volatil</code> field and printed as &lsquo;<samp>/v</samp>&rsquo;.
  164. </p>
  165. <a name="index-MEM_005fKEEP_005fALIAS_005fSET_005fP"></a>
  166. <a name="index-mem-and-_002fj"></a>
  167. <a name="index-jump_002c-in-mem"></a>
  168. </dd>
  169. <dt><code>MEM_KEEP_ALIAS_SET_P (<var>x</var>)</code></dt>
  170. <dd><p>In <code>mem</code> expressions, 1 if we should keep the alias set for this
  171. mem unchanged when we access a component. Set to 1, for example, when we
  172. are already in a non-addressable component of an aggregate.
  173. Stored in the <code>jump</code> field and printed as &lsquo;<samp>/j</samp>&rsquo;.
  174. </p>
  175. <a name="index-MEM_005fVOLATILE_005fP"></a>
  176. <a name="index-mem-and-_002fv"></a>
  177. <a name="index-asm_005finput-and-_002fv"></a>
  178. <a name="index-asm_005foperands-and-_002fv"></a>
  179. <a name="index-volatil_002c-in-mem_002c-asm_005foperands_002c-and-asm_005finput"></a>
  180. </dd>
  181. <dt><code>MEM_VOLATILE_P (<var>x</var>)</code></dt>
  182. <dd><p>In <code>mem</code>, <code>asm_operands</code>, and <code>asm_input</code> expressions,
  183. nonzero for volatile memory references.
  184. Stored in the <code>volatil</code> field and printed as &lsquo;<samp>/v</samp>&rsquo;.
  185. </p>
  186. <a name="index-MEM_005fNOTRAP_005fP"></a>
  187. <a name="index-mem-and-_002fc"></a>
  188. <a name="index-call_002c-in-mem"></a>
  189. </dd>
  190. <dt><code>MEM_NOTRAP_P (<var>x</var>)</code></dt>
  191. <dd><p>In <code>mem</code>, nonzero for memory references that will not trap.
  192. Stored in the <code>call</code> field and printed as &lsquo;<samp>/c</samp>&rsquo;.
  193. </p>
  194. <a name="index-MEM_005fPOINTER"></a>
  195. <a name="index-mem-and-_002ff"></a>
  196. <a name="index-frame_005frelated_002c-in-mem"></a>
  197. </dd>
  198. <dt><code>MEM_POINTER (<var>x</var>)</code></dt>
  199. <dd><p>Nonzero in a <code>mem</code> if the memory reference holds a pointer.
  200. Stored in the <code>frame_related</code> field and printed as &lsquo;<samp>/f</samp>&rsquo;.
  201. </p>
  202. <a name="index-MEM_005fREADONLY_005fP"></a>
  203. <a name="index-mem-and-_002fu"></a>
  204. <a name="index-unchanging_002c-in-mem"></a>
  205. </dd>
  206. <dt><code>MEM_READONLY_P (<var>x</var>)</code></dt>
  207. <dd><p>Nonzero in a <code>mem</code>, if the memory is statically allocated and read-only.
  208. </p>
  209. <p>Read-only in this context means never modified during the lifetime of the
  210. program, not necessarily in ROM or in write-disabled pages. A common
  211. example of the later is a shared library&rsquo;s global offset table. This
  212. table is initialized by the runtime loader, so the memory is technically
  213. writable, but after control is transferred from the runtime loader to the
  214. application, this memory will never be subsequently modified.
  215. </p>
  216. <p>Stored in the <code>unchanging</code> field and printed as &lsquo;<samp>/u</samp>&rsquo;.
  217. </p>
  218. <a name="index-PREFETCH_005fSCHEDULE_005fBARRIER_005fP"></a>
  219. <a name="index-prefetch-and-_002fv"></a>
  220. <a name="index-volatile_002c-in-prefetch"></a>
  221. </dd>
  222. <dt><code>PREFETCH_SCHEDULE_BARRIER_P (<var>x</var>)</code></dt>
  223. <dd><p>In a <code>prefetch</code>, indicates that the prefetch is a scheduling barrier.
  224. No other INSNs will be moved over it.
  225. Stored in the <code>volatil</code> field and printed as &lsquo;<samp>/v</samp>&rsquo;.
  226. </p>
  227. <a name="index-REG_005fFUNCTION_005fVALUE_005fP"></a>
  228. <a name="index-reg-and-_002fi"></a>
  229. <a name="index-return_005fval_002c-in-reg"></a>
  230. </dd>
  231. <dt><code>REG_FUNCTION_VALUE_P (<var>x</var>)</code></dt>
  232. <dd><p>Nonzero in a <code>reg</code> if it is the place in which this function&rsquo;s
  233. value is going to be returned. (This happens only in a hard
  234. register.) Stored in the <code>return_val</code> field and printed as
  235. &lsquo;<samp>/i</samp>&rsquo;.
  236. </p>
  237. <a name="index-REG_005fPOINTER"></a>
  238. <a name="index-reg-and-_002ff"></a>
  239. <a name="index-frame_005frelated_002c-in-reg"></a>
  240. </dd>
  241. <dt><code>REG_POINTER (<var>x</var>)</code></dt>
  242. <dd><p>Nonzero in a <code>reg</code> if the register holds a pointer. Stored in the
  243. <code>frame_related</code> field and printed as &lsquo;<samp>/f</samp>&rsquo;.
  244. </p>
  245. <a name="index-REG_005fUSERVAR_005fP"></a>
  246. <a name="index-reg-and-_002fv"></a>
  247. <a name="index-volatil_002c-in-reg"></a>
  248. </dd>
  249. <dt><code>REG_USERVAR_P (<var>x</var>)</code></dt>
  250. <dd><p>In a <code>reg</code>, nonzero if it corresponds to a variable present in
  251. the user&rsquo;s source code. Zero for temporaries generated internally by
  252. the compiler. Stored in the <code>volatil</code> field and printed as
  253. &lsquo;<samp>/v</samp>&rsquo;.
  254. </p>
  255. <p>The same hard register may be used also for collecting the values of
  256. functions called by this one, but <code>REG_FUNCTION_VALUE_P</code> is zero
  257. in this kind of use.
  258. </p>
  259. <a name="index-RTL_005fCONST_005fCALL_005fP"></a>
  260. <a name="index-call_005finsn-and-_002fu-1"></a>
  261. <a name="index-unchanging_002c-in-call_005finsn"></a>
  262. </dd>
  263. <dt><code>RTL_CONST_CALL_P (<var>x</var>)</code></dt>
  264. <dd><p>In a <code>call_insn</code> indicates that the insn represents a call to a
  265. const function. Stored in the <code>unchanging</code> field and printed as
  266. &lsquo;<samp>/u</samp>&rsquo;.
  267. </p>
  268. <a name="index-RTL_005fPURE_005fCALL_005fP"></a>
  269. <a name="index-call_005finsn-and-_002fi"></a>
  270. <a name="index-return_005fval_002c-in-call_005finsn"></a>
  271. </dd>
  272. <dt><code>RTL_PURE_CALL_P (<var>x</var>)</code></dt>
  273. <dd><p>In a <code>call_insn</code> indicates that the insn represents a call to a
  274. pure function. Stored in the <code>return_val</code> field and printed as
  275. &lsquo;<samp>/i</samp>&rsquo;.
  276. </p>
  277. <a name="index-RTL_005fCONST_005fOR_005fPURE_005fCALL_005fP"></a>
  278. <a name="index-call_005finsn-and-_002fu-or-_002fi"></a>
  279. </dd>
  280. <dt><code>RTL_CONST_OR_PURE_CALL_P (<var>x</var>)</code></dt>
  281. <dd><p>In a <code>call_insn</code>, true if <code>RTL_CONST_CALL_P</code> or
  282. <code>RTL_PURE_CALL_P</code> is true.
  283. </p>
  284. <a name="index-RTL_005fLOOPING_005fCONST_005fOR_005fPURE_005fCALL_005fP"></a>
  285. <a name="index-call_005finsn-and-_002fc"></a>
  286. <a name="index-call_002c-in-call_005finsn"></a>
  287. </dd>
  288. <dt><code>RTL_LOOPING_CONST_OR_PURE_CALL_P (<var>x</var>)</code></dt>
  289. <dd><p>In a <code>call_insn</code> indicates that the insn represents a possibly
  290. infinite looping call to a const or pure function. Stored in the
  291. <code>call</code> field and printed as &lsquo;<samp>/c</samp>&rsquo;. Only true if one of
  292. <code>RTL_CONST_CALL_P</code> or <code>RTL_PURE_CALL_P</code> is true.
  293. </p>
  294. <a name="index-RTX_005fFRAME_005fRELATED_005fP"></a>
  295. <a name="index-insn-and-_002ff"></a>
  296. <a name="index-call_005finsn-and-_002ff"></a>
  297. <a name="index-jump_005finsn-and-_002ff"></a>
  298. <a name="index-barrier-and-_002ff"></a>
  299. <a name="index-set-and-_002ff"></a>
  300. <a name="index-frame_005frelated_002c-in-insn_002c-call_005finsn_002c-jump_005finsn_002c-barrier_002c-and-set"></a>
  301. </dd>
  302. <dt><code>RTX_FRAME_RELATED_P (<var>x</var>)</code></dt>
  303. <dd><p>Nonzero in an <code>insn</code>, <code>call_insn</code>, <code>jump_insn</code>,
  304. <code>barrier</code>, or <code>set</code> which is part of a function prologue
  305. and sets the stack pointer, sets the frame pointer, or saves a register.
  306. This flag should also be set on an instruction that sets up a temporary
  307. register to use in place of the frame pointer.
  308. Stored in the <code>frame_related</code> field and printed as &lsquo;<samp>/f</samp>&rsquo;.
  309. </p>
  310. <p>In particular, on RISC targets where there are limits on the sizes of
  311. immediate constants, it is sometimes impossible to reach the register
  312. save area directly from the stack pointer. In that case, a temporary
  313. register is used that is near enough to the register save area, and the
  314. Canonical Frame Address, i.e., DWARF2&rsquo;s logical frame pointer, register
  315. must (temporarily) be changed to be this temporary register. So, the
  316. instruction that sets this temporary register must be marked as
  317. <code>RTX_FRAME_RELATED_P</code>.
  318. </p>
  319. <p>If the marked instruction is overly complex (defined in terms of what
  320. <code>dwarf2out_frame_debug_expr</code> can handle), you will also have to
  321. create a <code>REG_FRAME_RELATED_EXPR</code> note and attach it to the
  322. instruction. This note should contain a simple expression of the
  323. computation performed by this instruction, i.e., one that
  324. <code>dwarf2out_frame_debug_expr</code> can handle.
  325. </p>
  326. <p>This flag is required for exception handling support on targets with RTL
  327. prologues.
  328. </p>
  329. <a name="index-SCHED_005fGROUP_005fP"></a>
  330. <a name="index-insn-and-_002fs-1"></a>
  331. <a name="index-call_005finsn-and-_002fs-1"></a>
  332. <a name="index-jump_005finsn-and-_002fs-1"></a>
  333. <a name="index-jump_005ftable_005fdata-and-_002fs"></a>
  334. <a name="index-in_005fstruct_002c-in-insn_002c-call_005finsn_002c-jump_005finsn-and-jump_005ftable_005fdata"></a>
  335. </dd>
  336. <dt><code>SCHED_GROUP_P (<var>x</var>)</code></dt>
  337. <dd><p>During instruction scheduling, in an <code>insn</code>, <code>call_insn</code>,
  338. <code>jump_insn</code> or <code>jump_table_data</code>, indicates that the
  339. previous insn must be scheduled together with this insn. This is used to
  340. ensure that certain groups of instructions will not be split up by the
  341. instruction scheduling pass, for example, <code>use</code> insns before
  342. a <code>call_insn</code> may not be separated from the <code>call_insn</code>.
  343. Stored in the <code>in_struct</code> field and printed as &lsquo;<samp>/s</samp>&rsquo;.
  344. </p>
  345. <a name="index-SET_005fIS_005fRETURN_005fP"></a>
  346. <a name="index-insn-and-_002fj"></a>
  347. <a name="index-jump_002c-in-insn"></a>
  348. </dd>
  349. <dt><code>SET_IS_RETURN_P (<var>x</var>)</code></dt>
  350. <dd><p>For a <code>set</code>, nonzero if it is for a return.
  351. Stored in the <code>jump</code> field and printed as &lsquo;<samp>/j</samp>&rsquo;.
  352. </p>
  353. <a name="index-SIBLING_005fCALL_005fP"></a>
  354. <a name="index-call_005finsn-and-_002fj"></a>
  355. <a name="index-jump_002c-in-call_005finsn"></a>
  356. </dd>
  357. <dt><code>SIBLING_CALL_P (<var>x</var>)</code></dt>
  358. <dd><p>For a <code>call_insn</code>, nonzero if the insn is a sibling call.
  359. Stored in the <code>jump</code> field and printed as &lsquo;<samp>/j</samp>&rsquo;.
  360. </p>
  361. <a name="index-STRING_005fPOOL_005fADDRESS_005fP"></a>
  362. <a name="index-symbol_005fref-and-_002ff"></a>
  363. <a name="index-frame_005frelated_002c-in-symbol_005fref"></a>
  364. </dd>
  365. <dt><code>STRING_POOL_ADDRESS_P (<var>x</var>)</code></dt>
  366. <dd><p>For a <code>symbol_ref</code> expression, nonzero if it addresses this function&rsquo;s
  367. string constant pool.
  368. Stored in the <code>frame_related</code> field and printed as &lsquo;<samp>/f</samp>&rsquo;.
  369. </p>
  370. <a name="index-SUBREG_005fPROMOTED_005fUNSIGNED_005fP"></a>
  371. <a name="index-subreg-and-_002fu-and-_002fv"></a>
  372. <a name="index-unchanging_002c-in-subreg"></a>
  373. <a name="index-volatil_002c-in-subreg"></a>
  374. </dd>
  375. <dt><code>SUBREG_PROMOTED_UNSIGNED_P (<var>x</var>)</code></dt>
  376. <dd><p>Returns a value greater then zero for a <code>subreg</code> that has
  377. <code>SUBREG_PROMOTED_VAR_P</code> nonzero if the object being referenced is kept
  378. zero-extended, zero if it is kept sign-extended, and less then zero if it is
  379. extended some other way via the <code>ptr_extend</code> instruction.
  380. Stored in the <code>unchanging</code>
  381. field and <code>volatil</code> field, printed as &lsquo;<samp>/u</samp>&rsquo; and &lsquo;<samp>/v</samp>&rsquo;.
  382. This macro may only be used to get the value it may not be used to change
  383. the value. Use <code>SUBREG_PROMOTED_UNSIGNED_SET</code> to change the value.
  384. </p>
  385. <a name="index-SUBREG_005fPROMOTED_005fUNSIGNED_005fSET"></a>
  386. <a name="index-subreg-and-_002fu"></a>
  387. <a name="index-unchanging_002c-in-subreg-1"></a>
  388. <a name="index-volatil_002c-in-subreg-1"></a>
  389. </dd>
  390. <dt><code>SUBREG_PROMOTED_UNSIGNED_SET (<var>x</var>)</code></dt>
  391. <dd><p>Set the <code>unchanging</code> and <code>volatil</code> fields in a <code>subreg</code>
  392. to reflect zero, sign, or other extension. If <code>volatil</code> is
  393. zero, then <code>unchanging</code> as nonzero means zero extension and as
  394. zero means sign extension. If <code>volatil</code> is nonzero then some
  395. other type of extension was done via the <code>ptr_extend</code> instruction.
  396. </p>
  397. <a name="index-SUBREG_005fPROMOTED_005fVAR_005fP"></a>
  398. <a name="index-subreg-and-_002fs"></a>
  399. <a name="index-in_005fstruct_002c-in-subreg"></a>
  400. </dd>
  401. <dt><code>SUBREG_PROMOTED_VAR_P (<var>x</var>)</code></dt>
  402. <dd><p>Nonzero in a <code>subreg</code> if it was made when accessing an object that
  403. was promoted to a wider mode in accord with the <code>PROMOTED_MODE</code> machine
  404. description macro (see <a href="Storage-Layout.html#Storage-Layout">Storage Layout</a>). In this case, the mode of
  405. the <code>subreg</code> is the declared mode of the object and the mode of
  406. <code>SUBREG_REG</code> is the mode of the register that holds the object.
  407. Promoted variables are always either sign- or zero-extended to the wider
  408. mode on every assignment. Stored in the <code>in_struct</code> field and
  409. printed as &lsquo;<samp>/s</samp>&rsquo;.
  410. </p>
  411. <a name="index-SYMBOL_005fREF_005fUSED"></a>
  412. <a name="index-used_002c-in-symbol_005fref"></a>
  413. </dd>
  414. <dt><code>SYMBOL_REF_USED (<var>x</var>)</code></dt>
  415. <dd><p>In a <code>symbol_ref</code>, indicates that <var>x</var> has been used. This is
  416. normally only used to ensure that <var>x</var> is only declared external
  417. once. Stored in the <code>used</code> field.
  418. </p>
  419. <a name="index-SYMBOL_005fREF_005fWEAK"></a>
  420. <a name="index-symbol_005fref-and-_002fi"></a>
  421. <a name="index-return_005fval_002c-in-symbol_005fref"></a>
  422. </dd>
  423. <dt><code>SYMBOL_REF_WEAK (<var>x</var>)</code></dt>
  424. <dd><p>In a <code>symbol_ref</code>, indicates that <var>x</var> has been declared weak.
  425. Stored in the <code>return_val</code> field and printed as &lsquo;<samp>/i</samp>&rsquo;.
  426. </p>
  427. <a name="index-SYMBOL_005fREF_005fFLAG"></a>
  428. <a name="index-symbol_005fref-and-_002fv"></a>
  429. <a name="index-volatil_002c-in-symbol_005fref"></a>
  430. </dd>
  431. <dt><code>SYMBOL_REF_FLAG (<var>x</var>)</code></dt>
  432. <dd><p>In a <code>symbol_ref</code>, this is used as a flag for machine-specific purposes.
  433. Stored in the <code>volatil</code> field and printed as &lsquo;<samp>/v</samp>&rsquo;.
  434. </p>
  435. <p>Most uses of <code>SYMBOL_REF_FLAG</code> are historic and may be subsumed
  436. by <code>SYMBOL_REF_FLAGS</code>. Certainly use of <code>SYMBOL_REF_FLAGS</code>
  437. is mandatory if the target requires more than one bit of storage.
  438. </p></dd>
  439. </dl>
  440. <p>These are the fields to which the above macros refer:
  441. </p>
  442. <dl compact="compact">
  443. <dd><a name="index-call"></a>
  444. <a name="index-_002fc-in-RTL-dump"></a>
  445. </dd>
  446. <dt><code>call</code></dt>
  447. <dd><p>In a <code>mem</code>, 1 means that the memory reference will not trap.
  448. </p>
  449. <p>In a <code>call</code>, 1 means that this pure or const call may possibly
  450. infinite loop.
  451. </p>
  452. <p>In an RTL dump, this flag is represented as &lsquo;<samp>/c</samp>&rsquo;.
  453. </p>
  454. <a name="index-frame_005frelated"></a>
  455. <a name="index-_002ff-in-RTL-dump"></a>
  456. </dd>
  457. <dt><code>frame_related</code></dt>
  458. <dd><p>In an <code>insn</code> or <code>set</code> expression, 1 means that it is part of
  459. a function prologue and sets the stack pointer, sets the frame pointer,
  460. saves a register, or sets up a temporary register to use in place of the
  461. frame pointer.
  462. </p>
  463. <p>In <code>reg</code> expressions, 1 means that the register holds a pointer.
  464. </p>
  465. <p>In <code>mem</code> expressions, 1 means that the memory reference holds a pointer.
  466. </p>
  467. <p>In <code>symbol_ref</code> expressions, 1 means that the reference addresses
  468. this function&rsquo;s string constant pool.
  469. </p>
  470. <p>In an RTL dump, this flag is represented as &lsquo;<samp>/f</samp>&rsquo;.
  471. </p>
  472. <a name="index-in_005fstruct"></a>
  473. <a name="index-_002fs-in-RTL-dump"></a>
  474. </dd>
  475. <dt><code>in_struct</code></dt>
  476. <dd><p>In <code>reg</code> expressions, it is 1 if the register has its entire life
  477. contained within the test expression of some loop.
  478. </p>
  479. <p>In <code>subreg</code> expressions, 1 means that the <code>subreg</code> is accessing
  480. an object that has had its mode promoted from a wider mode.
  481. </p>
  482. <p>In <code>label_ref</code> expressions, 1 means that the referenced label is
  483. outside the innermost loop containing the insn in which the <code>label_ref</code>
  484. was found.
  485. </p>
  486. <p>In <code>code_label</code> expressions, it is 1 if the label may never be deleted.
  487. This is used for labels which are the target of non-local gotos. Such a
  488. label that would have been deleted is replaced with a <code>note</code> of type
  489. <code>NOTE_INSN_DELETED_LABEL</code>.
  490. </p>
  491. <p>In an <code>insn</code> during dead-code elimination, 1 means that the insn is
  492. dead code.
  493. </p>
  494. <p>In an <code>insn</code> or <code>jump_insn</code> during reorg for an insn in the
  495. delay slot of a branch,
  496. 1 means that this insn is from the target of the branch.
  497. </p>
  498. <p>In an <code>insn</code> during instruction scheduling, 1 means that this insn
  499. must be scheduled as part of a group together with the previous insn.
  500. </p>
  501. <p>In an RTL dump, this flag is represented as &lsquo;<samp>/s</samp>&rsquo;.
  502. </p>
  503. <a name="index-return_005fval"></a>
  504. <a name="index-_002fi-in-RTL-dump"></a>
  505. </dd>
  506. <dt><code>return_val</code></dt>
  507. <dd><p>In <code>reg</code> expressions, 1 means the register contains
  508. the value to be returned by the current function. On
  509. machines that pass parameters in registers, the same register number
  510. may be used for parameters as well, but this flag is not set on such
  511. uses.
  512. </p>
  513. <p>In <code>symbol_ref</code> expressions, 1 means the referenced symbol is weak.
  514. </p>
  515. <p>In <code>call</code> expressions, 1 means the call is pure.
  516. </p>
  517. <p>In an RTL dump, this flag is represented as &lsquo;<samp>/i</samp>&rsquo;.
  518. </p>
  519. <a name="index-jump"></a>
  520. <a name="index-_002fj-in-RTL-dump"></a>
  521. </dd>
  522. <dt><code>jump</code></dt>
  523. <dd><p>In a <code>mem</code> expression, 1 means we should keep the alias set for this
  524. mem unchanged when we access a component.
  525. </p>
  526. <p>In a <code>set</code>, 1 means it is for a return.
  527. </p>
  528. <p>In a <code>call_insn</code>, 1 means it is a sibling call.
  529. </p>
  530. <p>In a <code>jump_insn</code>, 1 means it is a crossing jump.
  531. </p>
  532. <p>In an RTL dump, this flag is represented as &lsquo;<samp>/j</samp>&rsquo;.
  533. </p>
  534. <a name="index-unchanging"></a>
  535. <a name="index-_002fu-in-RTL-dump"></a>
  536. </dd>
  537. <dt><code>unchanging</code></dt>
  538. <dd><p>In <code>reg</code> and <code>mem</code> expressions, 1 means
  539. that the value of the expression never changes.
  540. </p>
  541. <p>In <code>subreg</code> expressions, it is 1 if the <code>subreg</code> references an
  542. unsigned object whose mode has been promoted to a wider mode.
  543. </p>
  544. <p>In an <code>insn</code> or <code>jump_insn</code> in the delay slot of a branch
  545. instruction, 1 means an annulling branch should be used.
  546. </p>
  547. <p>In a <code>symbol_ref</code> expression, 1 means that this symbol addresses
  548. something in the per-function constant pool.
  549. </p>
  550. <p>In a <code>call_insn</code> 1 means that this instruction is a call to a const
  551. function.
  552. </p>
  553. <p>In an RTL dump, this flag is represented as &lsquo;<samp>/u</samp>&rsquo;.
  554. </p>
  555. <a name="index-used"></a>
  556. </dd>
  557. <dt><code>used</code></dt>
  558. <dd><p>This flag is used directly (without an access macro) at the end of RTL
  559. generation for a function, to count the number of times an expression
  560. appears in insns. Expressions that appear more than once are copied,
  561. according to the rules for shared structure (see <a href="Sharing.html#Sharing">Sharing</a>).
  562. </p>
  563. <p>For a <code>reg</code>, it is used directly (without an access macro) by the
  564. leaf register renumbering code to ensure that each register is only
  565. renumbered once.
  566. </p>
  567. <p>In a <code>symbol_ref</code>, it indicates that an external declaration for
  568. the symbol has already been written.
  569. </p>
  570. <a name="index-volatil"></a>
  571. <a name="index-_002fv-in-RTL-dump"></a>
  572. </dd>
  573. <dt><code>volatil</code></dt>
  574. <dd><a name="index-volatile-memory-references"></a>
  575. <p>In a <code>mem</code>, <code>asm_operands</code>, or <code>asm_input</code>
  576. expression, it is 1 if the memory
  577. reference is volatile. Volatile memory references may not be deleted,
  578. reordered or combined.
  579. </p>
  580. <p>In a <code>symbol_ref</code> expression, it is used for machine-specific
  581. purposes.
  582. </p>
  583. <p>In a <code>reg</code> expression, it is 1 if the value is a user-level variable.
  584. 0 indicates an internal compiler temporary.
  585. </p>
  586. <p>In an <code>insn</code>, 1 means the insn has been deleted.
  587. </p>
  588. <p>In <code>label_ref</code> and <code>reg_label</code> expressions, 1 means a reference
  589. to a non-local label.
  590. </p>
  591. <p>In <code>prefetch</code> expressions, 1 means that the containing insn is a
  592. scheduling barrier.
  593. </p>
  594. <p>In an RTL dump, this flag is represented as &lsquo;<samp>/v</samp>&rsquo;.
  595. </p></dd>
  596. </dl>
  597. <hr>
  598. <div class="header">
  599. <p>
  600. Next: <a href="Machine-Modes.html#Machine-Modes" accesskey="n" rel="next">Machine Modes</a>, Previous: <a href="Special-Accessors.html#Special-Accessors" accesskey="p" rel="prev">Special Accessors</a>, Up: <a href="RTL.html#RTL" accesskey="u" rel="up">RTL</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>
  601. </div>
  602. </body>
  603. </html>