Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

499 Zeilen
23KB

  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>Option properties (GNU Compiler Collection (GCC) Internals)</title>
  21. <meta name="description" content="Option properties (GNU Compiler Collection (GCC) Internals)">
  22. <meta name="keywords" content="Option properties (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="Options.html#Options" rel="up" title="Options">
  30. <link href="Passes.html#Passes" rel="next" title="Passes">
  31. <link href="Option-file-format.html#Option-file-format" rel="prev" title="Option file format">
  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="Option-properties"></a>
  62. <div class="header">
  63. <p>
  64. Previous: <a href="Option-file-format.html#Option-file-format" accesskey="p" rel="prev">Option file format</a>, Up: <a href="Options.html#Options" accesskey="u" rel="up">Options</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="Option-properties-1"></a>
  68. <h3 class="section">8.2 Option properties</h3>
  69. <p>The second field of an option record can specify any of the following
  70. properties. When an option takes an argument, it is enclosed in parentheses
  71. following the option property name. The parser that handles option files
  72. is quite simplistic, and will be tricked by any nested parentheses within
  73. the argument text itself; in this case, the entire option argument can
  74. be wrapped in curly braces within the parentheses to demarcate it, e.g.:
  75. </p>
  76. <div class="smallexample">
  77. <pre class="smallexample">Condition({defined (USE_CYGWIN_LIBSTDCXX_WRAPPERS)})
  78. </pre></div>
  79. <dl compact="compact">
  80. <dt><code>Common</code></dt>
  81. <dd><p>The option is available for all languages and targets.
  82. </p>
  83. </dd>
  84. <dt><code>Target</code></dt>
  85. <dd><p>The option is available for all languages but is target-specific.
  86. </p>
  87. </dd>
  88. <dt><code>Driver</code></dt>
  89. <dd><p>The option is handled by the compiler driver using code not shared
  90. with the compilers proper (<samp>cc1</samp> etc.).
  91. </p>
  92. </dd>
  93. <dt><code><var>language</var></code></dt>
  94. <dd><p>The option is available when compiling for the given language.
  95. </p>
  96. <p>It is possible to specify several different languages for the same
  97. option. Each <var>language</var> must have been declared by an earlier
  98. <code>Language</code> record. See <a href="Option-file-format.html#Option-file-format">Option file format</a>.
  99. </p>
  100. </dd>
  101. <dt><code>RejectDriver</code></dt>
  102. <dd><p>The option is only handled by the compilers proper (<samp>cc1</samp> etc.)
  103. and should not be accepted by the driver.
  104. </p>
  105. </dd>
  106. <dt><code>RejectNegative</code></dt>
  107. <dd><p>The option does not have a &ldquo;no-&rdquo; form. All options beginning with
  108. &ldquo;f&rdquo;, &ldquo;W&rdquo; or &ldquo;m&rdquo; are assumed to have a &ldquo;no-&rdquo; form unless this
  109. property is used.
  110. </p>
  111. </dd>
  112. <dt><code>Negative(<var>othername</var>)</code></dt>
  113. <dd><p>The option will turn off another option <var>othername</var>, which is
  114. the option name with the leading &ldquo;-&rdquo; removed. This chain action will
  115. propagate through the <code>Negative</code> property of the option to be
  116. turned off. The driver will prune options, removing those that are
  117. turned off by some later option. This pruning is not done for options
  118. with <code>Joined</code> or <code>JoinedOrMissing</code> properties, unless the
  119. options have either <code>RejectNegative</code> property or the <code>Negative</code>
  120. property mentions an option other than itself.
  121. </p>
  122. <p>As a consequence, if you have a group of mutually-exclusive
  123. options, their <code>Negative</code> properties should form a circular chain.
  124. For example, if options <samp>-<var>a</var></samp>, <samp>-<var>b</var></samp> and
  125. <samp>-<var>c</var></samp> are mutually exclusive, their respective <code>Negative</code>
  126. properties should be &lsquo;<samp>Negative(<var>b</var>)</samp>&rsquo;, &lsquo;<samp>Negative(<var>c</var>)</samp>&rsquo;
  127. and &lsquo;<samp>Negative(<var>a</var>)</samp>&rsquo;.
  128. </p>
  129. </dd>
  130. <dt><code>Joined</code></dt>
  131. <dt><code>Separate</code></dt>
  132. <dd><p>The option takes a mandatory argument. <code>Joined</code> indicates
  133. that the option and argument can be included in the same <code>argv</code>
  134. entry (as with <code>-mflush-func=<var>name</var></code>, for example).
  135. <code>Separate</code> indicates that the option and argument can be
  136. separate <code>argv</code> entries (as with <code>-o</code>). An option is
  137. allowed to have both of these properties.
  138. </p>
  139. </dd>
  140. <dt><code>JoinedOrMissing</code></dt>
  141. <dd><p>The option takes an optional argument. If the argument is given,
  142. it will be part of the same <code>argv</code> entry as the option itself.
  143. </p>
  144. <p>This property cannot be used alongside <code>Joined</code> or <code>Separate</code>.
  145. </p>
  146. </dd>
  147. <dt><code>MissingArgError(<var>message</var>)</code></dt>
  148. <dd><p>For an option marked <code>Joined</code> or <code>Separate</code>, the message
  149. <var>message</var> will be used as an error message if the mandatory
  150. argument is missing; for options without <code>MissingArgError</code>, a
  151. generic error message is used. <var>message</var> should contain a single
  152. &lsquo;<samp>%qs</samp>&rsquo; format, which will be used to format the name of the option
  153. passed.
  154. </p>
  155. </dd>
  156. <dt><code>Args(<var>n</var>)</code></dt>
  157. <dd><p>For an option marked <code>Separate</code>, indicate that it takes <var>n</var>
  158. arguments. The default is 1.
  159. </p>
  160. </dd>
  161. <dt><code>UInteger</code></dt>
  162. <dd><p>The option&rsquo;s argument is a non-negative integer consisting of either
  163. decimal or hexadecimal digits interpreted as <code>int</code>. Hexadecimal
  164. integers may optionally start with the <code>0x</code> or <code>0X</code> prefix.
  165. The option parser validates and converts the argument before passing
  166. it to the relevant option handler. <code>UInteger</code> should also be used
  167. with options like <code>-falign-loops</code> where both <code>-falign-loops</code>
  168. and <code>-falign-loops</code>=<var>n</var> are supported to make sure the saved
  169. options are given a full integer. Positive values of the argument in
  170. excess of <code>INT_MAX</code> wrap around zero.
  171. </p>
  172. </dd>
  173. <dt><code>Host_Wide_Int</code></dt>
  174. <dd><p>The option&rsquo;s argument is a non-negative integer consisting of either
  175. decimal or hexadecimal digits interpreted as the widest integer type
  176. on the host. As with an <code>UInteger</code> argument, hexadecimal integers
  177. may optionally start with the <code>0x</code> or <code>0X</code> prefix. The option
  178. parser validates and converts the argument before passing it to
  179. the relevant option handler. <code>Host_Wide_Int</code> should be used with
  180. options that need to accept very large values. Positive values of
  181. the argument in excess of <code>HOST_WIDE_INT_M1U</code> are assigned
  182. <code>HOST_WIDE_INT_M1U</code>.
  183. </p>
  184. </dd>
  185. <dt><code>IntegerRange(<var>n</var>, <var>m</var>)</code></dt>
  186. <dd><p>The options&rsquo;s arguments are integers of type <code>int</code>. The option&rsquo;s
  187. parser validates that the value of an option integer argument is within
  188. the closed range [<var>n</var>, <var>m</var>].
  189. </p>
  190. </dd>
  191. <dt><code>ByteSize</code></dt>
  192. <dd><p>A property applicable only to <code>UInteger</code> or <code>Host_Wide_Int</code>
  193. arguments. The option&rsquo;s integer argument is interpreted as if in infinite
  194. precision using saturation arithmetic in the corresponding type. The argument
  195. may be followed by a &lsquo;<samp>byte-size</samp>&rsquo; suffix designating a multiple of bytes
  196. such as <code>kB</code> and <code>KiB</code> for kilobyte and kibibyte, respectively,
  197. <code>MB</code> and <code>MiB</code> for megabyte and mebibyte, <code>GB</code> and <code>GiB</code>
  198. for gigabyte and gigibyte, and so on. <code>ByteSize</code> should be used for
  199. with options that take a very large argument representing a size in bytes,
  200. such as <samp>-Wlarger-than=</samp>.
  201. </p>
  202. </dd>
  203. <dt><code>ToLower</code></dt>
  204. <dd><p>The option&rsquo;s argument should be converted to lowercase as part of
  205. putting it in canonical form, and before comparing with the strings
  206. indicated by any <code>Enum</code> property.
  207. </p>
  208. </dd>
  209. <dt><code>NoDriverArg</code></dt>
  210. <dd><p>For an option marked <code>Separate</code>, the option only takes an
  211. argument in the compiler proper, not in the driver. This is for
  212. compatibility with existing options that are used both directly and
  213. via <samp>-Wp,</samp>; new options should not have this property.
  214. </p>
  215. </dd>
  216. <dt><code>Var(<var>var</var>)</code></dt>
  217. <dd><p>The state of this option should be stored in variable <var>var</var>
  218. (actually a macro for <code>global_options.x_<var>var</var></code>).
  219. The way that the state is stored depends on the type of option:
  220. </p>
  221. </dd>
  222. <dt><code>WarnRemoved</code></dt>
  223. <dd><p>The option is removed and every usage of such option will
  224. result in a warning. We use it option backward compatibility.
  225. </p>
  226. </dd>
  227. <dt><code>Var(<var>var</var>, <var>set</var>)</code></dt>
  228. <dd><p>The option controls an integer variable <var>var</var> and is active when
  229. <var>var</var> equals <var>set</var>. The option parser will set <var>var</var> to
  230. <var>set</var> when the positive form of the option is used and <code>!<var>set</var></code>
  231. when the &ldquo;no-&rdquo; form is used.
  232. </p>
  233. <p><var>var</var> is declared in the same way as for the single-argument form
  234. described above.
  235. </p>
  236. <ul>
  237. <li> If the option uses the <code>Mask</code> or <code>InverseMask</code> properties,
  238. <var>var</var> is the integer variable that contains the mask.
  239. </li><li> If the option is a normal on/off switch, <var>var</var> is an integer
  240. variable that is nonzero when the option is enabled. The options
  241. parser will set the variable to 1 when the positive form of the
  242. option is used and 0 when the &ldquo;no-&rdquo; form is used.
  243. </li><li> If the option takes an argument and has the <code>UInteger</code> property,
  244. <var>var</var> is an integer variable that stores the value of the argument.
  245. </li><li> If the option takes an argument and has the <code>Enum</code> property,
  246. <var>var</var> is a variable (type given in the <code>Type</code> property of the
  247. &lsquo;<samp>Enum</samp>&rsquo; record whose <code>Name</code> property has the same argument as
  248. the <code>Enum</code> property of this option) that stores the value of the
  249. argument.
  250. </li><li> If the option has the <code>Defer</code> property, <var>var</var> is a pointer to
  251. a <code>VEC(cl_deferred_option,heap)</code> that stores the option for later
  252. processing. (<var>var</var> is declared with type <code>void *</code> and needs
  253. to be cast to <code>VEC(cl_deferred_option,heap)</code> before use.)
  254. </li><li> Otherwise, if the option takes an argument, <var>var</var> is a pointer to
  255. the argument string. The pointer will be null if the argument is optional
  256. and wasn&rsquo;t given.
  257. </li></ul>
  258. <p>The option-processing script will usually zero-initialize <var>var</var>.
  259. You can modify this behavior using <code>Init</code>.
  260. </p>
  261. </dd>
  262. <dt><code>Init(<var>value</var>)</code></dt>
  263. <dd><p>The variable specified by the <code>Var</code> property should be statically
  264. initialized to <var>value</var>. If more than one option using the same
  265. variable specifies <code>Init</code>, all must specify the same initializer.
  266. </p>
  267. </dd>
  268. <dt><code>Mask(<var>name</var>)</code></dt>
  269. <dd><p>The option is associated with a bit in the <code>target_flags</code>
  270. variable (see <a href="Run_002dtime-Target.html#Run_002dtime-Target">Run-time Target</a>) and is active when that bit is set.
  271. You may also specify <code>Var</code> to select a variable other than
  272. <code>target_flags</code>.
  273. </p>
  274. <p>The options-processing script will automatically allocate a unique bit
  275. for the option. If the option is attached to &lsquo;<samp>target_flags</samp>&rsquo;,
  276. the script will set the macro <code>MASK_<var>name</var></code> to the appropriate
  277. bitmask. It will also declare a <code>TARGET_<var>name</var></code> macro that has
  278. the value 1 when the option is active and 0 otherwise. If you use <code>Var</code>
  279. to attach the option to a different variable, the bitmask macro with be
  280. called <code>OPTION_MASK_<var>name</var></code>.
  281. </p>
  282. </dd>
  283. <dt><code>InverseMask(<var>othername</var>)</code></dt>
  284. <dt><code>InverseMask(<var>othername</var>, <var>thisname</var>)</code></dt>
  285. <dd><p>The option is the inverse of another option that has the
  286. <code>Mask(<var>othername</var>)</code> property. If <var>thisname</var> is given,
  287. the options-processing script will declare a <code>TARGET_<var>thisname</var></code>
  288. macro that is 1 when the option is active and 0 otherwise.
  289. </p>
  290. </dd>
  291. <dt><code>Enum(<var>name</var>)</code></dt>
  292. <dd><p>The option&rsquo;s argument is a string from the set of strings associated
  293. with the corresponding &lsquo;<samp>Enum</samp>&rsquo; record. The string is checked and
  294. converted to the integer specified in the corresponding
  295. &lsquo;<samp>EnumValue</samp>&rsquo; record before being passed to option handlers.
  296. </p>
  297. </dd>
  298. <dt><code>Defer</code></dt>
  299. <dd><p>The option should be stored in a vector, specified with <code>Var</code>,
  300. for later processing.
  301. </p>
  302. </dd>
  303. <dt><code>Alias(<var>opt</var>)</code></dt>
  304. <dt><code>Alias(<var>opt</var>, <var>arg</var>)</code></dt>
  305. <dt><code>Alias(<var>opt</var>, <var>posarg</var>, <var>negarg</var>)</code></dt>
  306. <dd><p>The option is an alias for <samp>-<var>opt</var></samp> (or the negative form
  307. of that option, depending on <code>NegativeAlias</code>). In the first form,
  308. any argument passed to the alias is considered to be passed to
  309. <samp>-<var>opt</var></samp>, and <samp>-<var>opt</var></samp> is considered to be
  310. negated if the alias is used in negated form. In the second form, the
  311. alias may not be negated or have an argument, and <var>posarg</var> is
  312. considered to be passed as an argument to <samp>-<var>opt</var></samp>. In the
  313. third form, the alias may not have an argument, if the alias is used
  314. in the positive form then <var>posarg</var> is considered to be passed to
  315. <samp>-<var>opt</var></samp>, and if the alias is used in the negative form
  316. then <var>negarg</var> is considered to be passed to <samp>-<var>opt</var></samp>.
  317. </p>
  318. <p>Aliases should not specify <code>Var</code> or <code>Mask</code> or
  319. <code>UInteger</code>. Aliases should normally specify the same languages
  320. as the target of the alias; the flags on the target will be used to
  321. determine any diagnostic for use of an option for the wrong language,
  322. while those on the alias will be used to identify what command-line
  323. text is the option and what text is any argument to that option.
  324. </p>
  325. <p>When an <code>Alias</code> definition is used for an option, driver specs do
  326. not need to handle it and no &lsquo;<samp>OPT_</samp>&rsquo; enumeration value is defined
  327. for it; only the canonical form of the option will be seen in those
  328. places.
  329. </p>
  330. </dd>
  331. <dt><code>NegativeAlias</code></dt>
  332. <dd><p>For an option marked with <code>Alias(<var>opt</var>)</code>, the option is
  333. considered to be an alias for the positive form of <samp>-<var>opt</var></samp>
  334. if negated and for the negative form of <samp>-<var>opt</var></samp> if not
  335. negated. <code>NegativeAlias</code> may not be used with the forms of
  336. <code>Alias</code> taking more than one argument.
  337. </p>
  338. </dd>
  339. <dt><code>Ignore</code></dt>
  340. <dd><p>This option is ignored apart from printing any warning specified using
  341. <code>Warn</code>. The option will not be seen by specs and no &lsquo;<samp>OPT_</samp>&rsquo;
  342. enumeration value is defined for it.
  343. </p>
  344. </dd>
  345. <dt><code>SeparateAlias</code></dt>
  346. <dd><p>For an option marked with <code>Joined</code>, <code>Separate</code> and
  347. <code>Alias</code>, the option only acts as an alias when passed a separate
  348. argument; with a joined argument it acts as a normal option, with an
  349. &lsquo;<samp>OPT_</samp>&rsquo; enumeration value. This is for compatibility with the
  350. Java <samp>-d</samp> option and should not be used for new options.
  351. </p>
  352. </dd>
  353. <dt><code>Warn(<var>message</var>)</code></dt>
  354. <dd><p>If this option is used, output the warning <var>message</var>.
  355. <var>message</var> is a format string, either taking a single operand with
  356. a &lsquo;<samp>%qs</samp>&rsquo; format which is the option name, or not taking any
  357. operands, which is passed to the &lsquo;<samp>warning</samp>&rsquo; function. If an alias
  358. is marked <code>Warn</code>, the target of the alias must not also be marked
  359. <code>Warn</code>.
  360. </p>
  361. </dd>
  362. <dt><code>Report</code></dt>
  363. <dd><p>The state of the option should be printed by <samp>-fverbose-asm</samp>.
  364. </p>
  365. </dd>
  366. <dt><code>Warning</code></dt>
  367. <dd><p>This is a warning option and should be shown as such in
  368. <samp>--help</samp> output. This flag does not currently affect anything
  369. other than <samp>--help</samp>.
  370. </p>
  371. </dd>
  372. <dt><code>Optimization</code></dt>
  373. <dd><p>This is an optimization option. It should be shown as such in
  374. <samp>--help</samp> output, and any associated variable named using
  375. <code>Var</code> should be saved and restored when the optimization level is
  376. changed with <code>optimize</code> attributes.
  377. </p>
  378. </dd>
  379. <dt><code>PerFunction</code></dt>
  380. <dd><p>This is an option that can be overridden on a per-function basis.
  381. <code>Optimization</code> implies <code>PerFunction</code>, but options that do not
  382. affect executable code generation may use this flag instead, so that the
  383. option is not taken into account in ways that might affect executable
  384. code generation.
  385. </p>
  386. </dd>
  387. <dt><code>Param</code></dt>
  388. <dd><p>This is an option that is a parameter.
  389. </p>
  390. </dd>
  391. <dt><code>Undocumented</code></dt>
  392. <dd><p>The option is deliberately missing documentation and should not
  393. be included in the <samp>--help</samp> output.
  394. </p>
  395. </dd>
  396. <dt><code>Condition(<var>cond</var>)</code></dt>
  397. <dd><p>The option should only be accepted if preprocessor condition
  398. <var>cond</var> is true. Note that any C declarations associated with the
  399. option will be present even if <var>cond</var> is false; <var>cond</var> simply
  400. controls whether the option is accepted and whether it is printed in
  401. the <samp>--help</samp> output.
  402. </p>
  403. </dd>
  404. <dt><code>Save</code></dt>
  405. <dd><p>Build the <code>cl_target_option</code> structure to hold a copy of the
  406. option, add the functions <code>cl_target_option_save</code> and
  407. <code>cl_target_option_restore</code> to save and restore the options.
  408. </p>
  409. </dd>
  410. <dt><code>SetByCombined</code></dt>
  411. <dd><p>The option may also be set by a combined option such as
  412. <samp>-ffast-math</samp>. This causes the <code>gcc_options</code> struct to
  413. have a field <code>frontend_set_<var>name</var></code>, where <code><var>name</var></code>
  414. is the name of the field holding the value of this option (without the
  415. leading <code>x_</code>). This gives the front end a way to indicate that
  416. the value has been set explicitly and should not be changed by the
  417. combined option. For example, some front ends use this to prevent
  418. <samp>-ffast-math</samp> and <samp>-fno-fast-math</samp> from changing the
  419. value of <samp>-fmath-errno</samp> for languages that do not use
  420. <code>errno</code>.
  421. </p>
  422. </dd>
  423. <dt><code>EnabledBy(<var>opt</var>)</code></dt>
  424. <dt><code>EnabledBy(<var>opt</var> || <var>opt2</var>)</code></dt>
  425. <dt><code>EnabledBy(<var>opt</var> &amp;&amp; <var>opt2</var>)</code></dt>
  426. <dd><p>If not explicitly set, the option is set to the value of
  427. <samp>-<var>opt</var></samp>; multiple options can be given, separated by
  428. <code>||</code>. The third form using <code>&amp;&amp;</code> specifies that the option is
  429. only set if both <var>opt</var> and <var>opt2</var> are set. The options <var>opt</var>
  430. and <var>opt2</var> must have the <code>Common</code> property; otherwise, use
  431. <code>LangEnabledBy</code>.
  432. </p>
  433. </dd>
  434. <dt><code>LangEnabledBy(<var>language</var>, <var>opt</var>)</code></dt>
  435. <dt><code>LangEnabledBy(<var>language</var>, <var>opt</var>, <var>posarg</var>, <var>negarg</var>)</code></dt>
  436. <dd><p>When compiling for the given language, the option is set to the value
  437. of <samp>-<var>opt</var></samp>, if not explicitly set. <var>opt</var> can be also a list
  438. of <code>||</code> separated options. In the second form, if
  439. <var>opt</var> is used in the positive form then <var>posarg</var> is considered
  440. to be passed to the option, and if <var>opt</var> is used in the negative
  441. form then <var>negarg</var> is considered to be passed to the option. It
  442. is possible to specify several different languages. Each
  443. <var>language</var> must have been declared by an earlier <code>Language</code>
  444. record. See <a href="Option-file-format.html#Option-file-format">Option file format</a>.
  445. </p>
  446. </dd>
  447. <dt><code>NoDWARFRecord</code></dt>
  448. <dd><p>The option is omitted from the producer string written by
  449. <samp>-grecord-gcc-switches</samp>.
  450. </p>
  451. </dd>
  452. <dt><code>PchIgnore</code></dt>
  453. <dd><p>Even if this is a target option, this option will not be recorded / compared
  454. to determine if a precompiled header file matches.
  455. </p>
  456. </dd>
  457. <dt><code>CPP(<var>var</var>)</code></dt>
  458. <dd><p>The state of this option should be kept in sync with the preprocessor
  459. option <var>var</var>. If this property is set, then properties <code>Var</code>
  460. and <code>Init</code> must be set as well.
  461. </p>
  462. </dd>
  463. <dt><code>CppReason(<var>CPP_W_Enum</var>)</code></dt>
  464. <dd><p>This warning option corresponds to <code>cpplib.h</code> warning reason code
  465. <var>CPP_W_Enum</var>. This should only be used for warning options of the
  466. C-family front-ends.
  467. </p>
  468. </dd>
  469. </dl>
  470. <hr>
  471. <div class="header">
  472. <p>
  473. Previous: <a href="Option-file-format.html#Option-file-format" accesskey="p" rel="prev">Option file format</a>, Up: <a href="Options.html#Options" accesskey="u" rel="up">Options</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>
  474. </div>
  475. </body>
  476. </html>