您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

1449 行
59KB

  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>Developer Options (Using the GNU Compiler Collection (GCC))</title>
  21. <meta name="description" content="Developer Options (Using the GNU Compiler Collection (GCC))">
  22. <meta name="keywords" content="Developer Options (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="Invoking-GCC.html#Invoking-GCC" rel="up" title="Invoking GCC">
  30. <link href="Submodel-Options.html#Submodel-Options" rel="next" title="Submodel Options">
  31. <link href="Code-Gen-Options.html#Code-Gen-Options" rel="prev" title="Code Gen 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="Developer-Options"></a>
  62. <div class="header">
  63. <p>
  64. Next: <a href="Submodel-Options.html#Submodel-Options" accesskey="n" rel="next">Submodel Options</a>, Previous: <a href="Code-Gen-Options.html#Code-Gen-Options" accesskey="p" rel="prev">Code Gen Options</a>, Up: <a href="Invoking-GCC.html#Invoking-GCC" accesskey="u" rel="up">Invoking GCC</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="GCC-Developer-Options"></a>
  68. <h3 class="section">3.18 GCC Developer Options</h3>
  69. <a name="index-developer-options"></a>
  70. <a name="index-debugging-GCC"></a>
  71. <a name="index-debug-dump-options"></a>
  72. <a name="index-dump-options"></a>
  73. <a name="index-compilation-statistics"></a>
  74. <p>This section describes command-line options that are primarily of
  75. interest to GCC developers, including options to support compiler
  76. testing and investigation of compiler bugs and compile-time
  77. performance problems. This includes options that produce debug dumps
  78. at various points in the compilation; that print statistics such as
  79. memory use and execution time; and that print information about GCC&rsquo;s
  80. configuration, such as where it searches for libraries. You should
  81. rarely need to use any of these options for ordinary compilation and
  82. linking tasks.
  83. </p>
  84. <p>Many developer options that cause GCC to dump output to a file take an
  85. optional &lsquo;<samp>=<var>filename</var></samp>&rsquo; suffix. You can specify &lsquo;<samp>stdout</samp>&rsquo;
  86. or &lsquo;<samp>-</samp>&rsquo; to dump to standard output, and &lsquo;<samp>stderr</samp>&rsquo; for standard
  87. error.
  88. </p>
  89. <p>If &lsquo;<samp>=<var>filename</var></samp>&rsquo; is omitted, a default dump file name is
  90. constructed by concatenating the base dump file name, a pass number,
  91. phase letter, and pass name. The base dump file name is the name of
  92. output file produced by the compiler if explicitly specified and not
  93. an executable; otherwise it is the source file name.
  94. The pass number is determined by the order passes are registered with
  95. the compiler&rsquo;s pass manager.
  96. This is generally the same as the order of execution, but passes
  97. registered by plugins, target-specific passes, or passes that are
  98. otherwise registered late are numbered higher than the pass named
  99. &lsquo;<samp>final</samp>&rsquo;, even if they are executed earlier. The phase letter is
  100. one of &lsquo;<samp>i</samp>&rsquo; (inter-procedural analysis), &lsquo;<samp>l</samp>&rsquo;
  101. (language-specific), &lsquo;<samp>r</samp>&rsquo; (RTL), or &lsquo;<samp>t</samp>&rsquo; (tree).
  102. The files are created in the directory of the output file.
  103. </p>
  104. <dl compact="compact">
  105. <dt><code>-fcallgraph-info</code></dt>
  106. <dt><code>-fcallgraph-info=<var>MARKERS</var></code></dt>
  107. <dd><a name="index-fcallgraph_002dinfo"></a>
  108. <p>Makes the compiler output callgraph information for the program, on a
  109. per-object-file basis. The information is generated in the common VCG
  110. format. It can be decorated with additional, per-node and/or per-edge
  111. information, if a list of comma-separated markers is additionally
  112. specified. When the <code>su</code> marker is specified, the callgraph is
  113. decorated with stack usage information; it is equivalent to
  114. <samp>-fstack-usage</samp>. When the <code>da</code> marker is specified, the
  115. callgraph is decorated with information about dynamically allocated
  116. objects.
  117. </p>
  118. <p>When compiling with <samp>-flto</samp>, no callgraph information is output
  119. along with the object file. At LTO link time, <samp>-fcallgraph-info</samp>
  120. may generate multiple callgraph information files next to intermediate
  121. LTO output files.
  122. </p>
  123. </dd>
  124. <dt><code>-d<var>letters</var></code></dt>
  125. <dt><code>-fdump-rtl-<var>pass</var></code></dt>
  126. <dt><code>-fdump-rtl-<var>pass</var>=<var>filename</var></code></dt>
  127. <dd><a name="index-d-1"></a>
  128. <a name="index-fdump_002drtl_002dpass"></a>
  129. <p>Says to make debugging dumps during compilation at times specified by
  130. <var>letters</var>. This is used for debugging the RTL-based passes of the
  131. compiler.
  132. </p>
  133. <p>Some <samp>-d<var>letters</var></samp> switches have different meaning when
  134. <samp>-E</samp> is used for preprocessing. See <a href="Preprocessor-Options.html#Preprocessor-Options">Preprocessor Options</a>,
  135. for information about preprocessor-specific dump options.
  136. </p>
  137. <p>Debug dumps can be enabled with a <samp>-fdump-rtl</samp> switch or some
  138. <samp>-d</samp> option <var>letters</var>. Here are the possible
  139. letters for use in <var>pass</var> and <var>letters</var>, and their meanings:
  140. </p>
  141. <dl compact="compact">
  142. <dt><code>-fdump-rtl-alignments</code></dt>
  143. <dd><a name="index-fdump_002drtl_002dalignments"></a>
  144. <p>Dump after branch alignments have been computed.
  145. </p>
  146. </dd>
  147. <dt><code>-fdump-rtl-asmcons</code></dt>
  148. <dd><a name="index-fdump_002drtl_002dasmcons"></a>
  149. <p>Dump after fixing rtl statements that have unsatisfied in/out constraints.
  150. </p>
  151. </dd>
  152. <dt><code>-fdump-rtl-auto_inc_dec</code></dt>
  153. <dd><a name="index-fdump_002drtl_002dauto_005finc_005fdec"></a>
  154. <p>Dump after auto-inc-dec discovery. This pass is only run on
  155. architectures that have auto inc or auto dec instructions.
  156. </p>
  157. </dd>
  158. <dt><code>-fdump-rtl-barriers</code></dt>
  159. <dd><a name="index-fdump_002drtl_002dbarriers"></a>
  160. <p>Dump after cleaning up the barrier instructions.
  161. </p>
  162. </dd>
  163. <dt><code>-fdump-rtl-bbpart</code></dt>
  164. <dd><a name="index-fdump_002drtl_002dbbpart"></a>
  165. <p>Dump after partitioning hot and cold basic blocks.
  166. </p>
  167. </dd>
  168. <dt><code>-fdump-rtl-bbro</code></dt>
  169. <dd><a name="index-fdump_002drtl_002dbbro"></a>
  170. <p>Dump after block reordering.
  171. </p>
  172. </dd>
  173. <dt><code>-fdump-rtl-btl1</code></dt>
  174. <dt><code>-fdump-rtl-btl2</code></dt>
  175. <dd><a name="index-fdump_002drtl_002dbtl2"></a>
  176. <a name="index-fdump_002drtl_002dbtl2-1"></a>
  177. <p><samp>-fdump-rtl-btl1</samp> and <samp>-fdump-rtl-btl2</samp> enable dumping
  178. after the two branch
  179. target load optimization passes.
  180. </p>
  181. </dd>
  182. <dt><code>-fdump-rtl-bypass</code></dt>
  183. <dd><a name="index-fdump_002drtl_002dbypass"></a>
  184. <p>Dump after jump bypassing and control flow optimizations.
  185. </p>
  186. </dd>
  187. <dt><code>-fdump-rtl-combine</code></dt>
  188. <dd><a name="index-fdump_002drtl_002dcombine"></a>
  189. <p>Dump after the RTL instruction combination pass.
  190. </p>
  191. </dd>
  192. <dt><code>-fdump-rtl-compgotos</code></dt>
  193. <dd><a name="index-fdump_002drtl_002dcompgotos"></a>
  194. <p>Dump after duplicating the computed gotos.
  195. </p>
  196. </dd>
  197. <dt><code>-fdump-rtl-ce1</code></dt>
  198. <dt><code>-fdump-rtl-ce2</code></dt>
  199. <dt><code>-fdump-rtl-ce3</code></dt>
  200. <dd><a name="index-fdump_002drtl_002dce1"></a>
  201. <a name="index-fdump_002drtl_002dce2"></a>
  202. <a name="index-fdump_002drtl_002dce3"></a>
  203. <p><samp>-fdump-rtl-ce1</samp>, <samp>-fdump-rtl-ce2</samp>, and
  204. <samp>-fdump-rtl-ce3</samp> enable dumping after the three
  205. if conversion passes.
  206. </p>
  207. </dd>
  208. <dt><code>-fdump-rtl-cprop_hardreg</code></dt>
  209. <dd><a name="index-fdump_002drtl_002dcprop_005fhardreg"></a>
  210. <p>Dump after hard register copy propagation.
  211. </p>
  212. </dd>
  213. <dt><code>-fdump-rtl-csa</code></dt>
  214. <dd><a name="index-fdump_002drtl_002dcsa"></a>
  215. <p>Dump after combining stack adjustments.
  216. </p>
  217. </dd>
  218. <dt><code>-fdump-rtl-cse1</code></dt>
  219. <dt><code>-fdump-rtl-cse2</code></dt>
  220. <dd><a name="index-fdump_002drtl_002dcse1"></a>
  221. <a name="index-fdump_002drtl_002dcse2"></a>
  222. <p><samp>-fdump-rtl-cse1</samp> and <samp>-fdump-rtl-cse2</samp> enable dumping after
  223. the two common subexpression elimination passes.
  224. </p>
  225. </dd>
  226. <dt><code>-fdump-rtl-dce</code></dt>
  227. <dd><a name="index-fdump_002drtl_002ddce"></a>
  228. <p>Dump after the standalone dead code elimination passes.
  229. </p>
  230. </dd>
  231. <dt><code>-fdump-rtl-dbr</code></dt>
  232. <dd><a name="index-fdump_002drtl_002ddbr"></a>
  233. <p>Dump after delayed branch scheduling.
  234. </p>
  235. </dd>
  236. <dt><code>-fdump-rtl-dce1</code></dt>
  237. <dt><code>-fdump-rtl-dce2</code></dt>
  238. <dd><a name="index-fdump_002drtl_002ddce1"></a>
  239. <a name="index-fdump_002drtl_002ddce2"></a>
  240. <p><samp>-fdump-rtl-dce1</samp> and <samp>-fdump-rtl-dce2</samp> enable dumping after
  241. the two dead store elimination passes.
  242. </p>
  243. </dd>
  244. <dt><code>-fdump-rtl-eh</code></dt>
  245. <dd><a name="index-fdump_002drtl_002deh"></a>
  246. <p>Dump after finalization of EH handling code.
  247. </p>
  248. </dd>
  249. <dt><code>-fdump-rtl-eh_ranges</code></dt>
  250. <dd><a name="index-fdump_002drtl_002deh_005franges"></a>
  251. <p>Dump after conversion of EH handling range regions.
  252. </p>
  253. </dd>
  254. <dt><code>-fdump-rtl-expand</code></dt>
  255. <dd><a name="index-fdump_002drtl_002dexpand"></a>
  256. <p>Dump after RTL generation.
  257. </p>
  258. </dd>
  259. <dt><code>-fdump-rtl-fwprop1</code></dt>
  260. <dt><code>-fdump-rtl-fwprop2</code></dt>
  261. <dd><a name="index-fdump_002drtl_002dfwprop1"></a>
  262. <a name="index-fdump_002drtl_002dfwprop2"></a>
  263. <p><samp>-fdump-rtl-fwprop1</samp> and <samp>-fdump-rtl-fwprop2</samp> enable
  264. dumping after the two forward propagation passes.
  265. </p>
  266. </dd>
  267. <dt><code>-fdump-rtl-gcse1</code></dt>
  268. <dt><code>-fdump-rtl-gcse2</code></dt>
  269. <dd><a name="index-fdump_002drtl_002dgcse1"></a>
  270. <a name="index-fdump_002drtl_002dgcse2"></a>
  271. <p><samp>-fdump-rtl-gcse1</samp> and <samp>-fdump-rtl-gcse2</samp> enable dumping
  272. after global common subexpression elimination.
  273. </p>
  274. </dd>
  275. <dt><code>-fdump-rtl-init-regs</code></dt>
  276. <dd><a name="index-fdump_002drtl_002dinit_002dregs"></a>
  277. <p>Dump after the initialization of the registers.
  278. </p>
  279. </dd>
  280. <dt><code>-fdump-rtl-initvals</code></dt>
  281. <dd><a name="index-fdump_002drtl_002dinitvals"></a>
  282. <p>Dump after the computation of the initial value sets.
  283. </p>
  284. </dd>
  285. <dt><code>-fdump-rtl-into_cfglayout</code></dt>
  286. <dd><a name="index-fdump_002drtl_002dinto_005fcfglayout"></a>
  287. <p>Dump after converting to cfglayout mode.
  288. </p>
  289. </dd>
  290. <dt><code>-fdump-rtl-ira</code></dt>
  291. <dd><a name="index-fdump_002drtl_002dira"></a>
  292. <p>Dump after iterated register allocation.
  293. </p>
  294. </dd>
  295. <dt><code>-fdump-rtl-jump</code></dt>
  296. <dd><a name="index-fdump_002drtl_002djump"></a>
  297. <p>Dump after the second jump optimization.
  298. </p>
  299. </dd>
  300. <dt><code>-fdump-rtl-loop2</code></dt>
  301. <dd><a name="index-fdump_002drtl_002dloop2"></a>
  302. <p><samp>-fdump-rtl-loop2</samp> enables dumping after the rtl
  303. loop optimization passes.
  304. </p>
  305. </dd>
  306. <dt><code>-fdump-rtl-mach</code></dt>
  307. <dd><a name="index-fdump_002drtl_002dmach"></a>
  308. <p>Dump after performing the machine dependent reorganization pass, if that
  309. pass exists.
  310. </p>
  311. </dd>
  312. <dt><code>-fdump-rtl-mode_sw</code></dt>
  313. <dd><a name="index-fdump_002drtl_002dmode_005fsw"></a>
  314. <p>Dump after removing redundant mode switches.
  315. </p>
  316. </dd>
  317. <dt><code>-fdump-rtl-rnreg</code></dt>
  318. <dd><a name="index-fdump_002drtl_002drnreg"></a>
  319. <p>Dump after register renumbering.
  320. </p>
  321. </dd>
  322. <dt><code>-fdump-rtl-outof_cfglayout</code></dt>
  323. <dd><a name="index-fdump_002drtl_002doutof_005fcfglayout"></a>
  324. <p>Dump after converting from cfglayout mode.
  325. </p>
  326. </dd>
  327. <dt><code>-fdump-rtl-peephole2</code></dt>
  328. <dd><a name="index-fdump_002drtl_002dpeephole2"></a>
  329. <p>Dump after the peephole pass.
  330. </p>
  331. </dd>
  332. <dt><code>-fdump-rtl-postreload</code></dt>
  333. <dd><a name="index-fdump_002drtl_002dpostreload"></a>
  334. <p>Dump after post-reload optimizations.
  335. </p>
  336. </dd>
  337. <dt><code>-fdump-rtl-pro_and_epilogue</code></dt>
  338. <dd><a name="index-fdump_002drtl_002dpro_005fand_005fepilogue"></a>
  339. <p>Dump after generating the function prologues and epilogues.
  340. </p>
  341. </dd>
  342. <dt><code>-fdump-rtl-sched1</code></dt>
  343. <dt><code>-fdump-rtl-sched2</code></dt>
  344. <dd><a name="index-fdump_002drtl_002dsched1"></a>
  345. <a name="index-fdump_002drtl_002dsched2"></a>
  346. <p><samp>-fdump-rtl-sched1</samp> and <samp>-fdump-rtl-sched2</samp> enable dumping
  347. after the basic block scheduling passes.
  348. </p>
  349. </dd>
  350. <dt><code>-fdump-rtl-ree</code></dt>
  351. <dd><a name="index-fdump_002drtl_002dree"></a>
  352. <p>Dump after sign/zero extension elimination.
  353. </p>
  354. </dd>
  355. <dt><code>-fdump-rtl-seqabstr</code></dt>
  356. <dd><a name="index-fdump_002drtl_002dseqabstr"></a>
  357. <p>Dump after common sequence discovery.
  358. </p>
  359. </dd>
  360. <dt><code>-fdump-rtl-shorten</code></dt>
  361. <dd><a name="index-fdump_002drtl_002dshorten"></a>
  362. <p>Dump after shortening branches.
  363. </p>
  364. </dd>
  365. <dt><code>-fdump-rtl-sibling</code></dt>
  366. <dd><a name="index-fdump_002drtl_002dsibling"></a>
  367. <p>Dump after sibling call optimizations.
  368. </p>
  369. </dd>
  370. <dt><code>-fdump-rtl-split1</code></dt>
  371. <dt><code>-fdump-rtl-split2</code></dt>
  372. <dt><code>-fdump-rtl-split3</code></dt>
  373. <dt><code>-fdump-rtl-split4</code></dt>
  374. <dt><code>-fdump-rtl-split5</code></dt>
  375. <dd><a name="index-fdump_002drtl_002dsplit1"></a>
  376. <a name="index-fdump_002drtl_002dsplit2"></a>
  377. <a name="index-fdump_002drtl_002dsplit3"></a>
  378. <a name="index-fdump_002drtl_002dsplit4"></a>
  379. <a name="index-fdump_002drtl_002dsplit5"></a>
  380. <p>These options enable dumping after five rounds of
  381. instruction splitting.
  382. </p>
  383. </dd>
  384. <dt><code>-fdump-rtl-sms</code></dt>
  385. <dd><a name="index-fdump_002drtl_002dsms"></a>
  386. <p>Dump after modulo scheduling. This pass is only run on some
  387. architectures.
  388. </p>
  389. </dd>
  390. <dt><code>-fdump-rtl-stack</code></dt>
  391. <dd><a name="index-fdump_002drtl_002dstack"></a>
  392. <p>Dump after conversion from GCC&rsquo;s &ldquo;flat register file&rdquo; registers to the
  393. x87&rsquo;s stack-like registers. This pass is only run on x86 variants.
  394. </p>
  395. </dd>
  396. <dt><code>-fdump-rtl-subreg1</code></dt>
  397. <dt><code>-fdump-rtl-subreg2</code></dt>
  398. <dd><a name="index-fdump_002drtl_002dsubreg1"></a>
  399. <a name="index-fdump_002drtl_002dsubreg2"></a>
  400. <p><samp>-fdump-rtl-subreg1</samp> and <samp>-fdump-rtl-subreg2</samp> enable dumping after
  401. the two subreg expansion passes.
  402. </p>
  403. </dd>
  404. <dt><code>-fdump-rtl-unshare</code></dt>
  405. <dd><a name="index-fdump_002drtl_002dunshare"></a>
  406. <p>Dump after all rtl has been unshared.
  407. </p>
  408. </dd>
  409. <dt><code>-fdump-rtl-vartrack</code></dt>
  410. <dd><a name="index-fdump_002drtl_002dvartrack"></a>
  411. <p>Dump after variable tracking.
  412. </p>
  413. </dd>
  414. <dt><code>-fdump-rtl-vregs</code></dt>
  415. <dd><a name="index-fdump_002drtl_002dvregs"></a>
  416. <p>Dump after converting virtual registers to hard registers.
  417. </p>
  418. </dd>
  419. <dt><code>-fdump-rtl-web</code></dt>
  420. <dd><a name="index-fdump_002drtl_002dweb"></a>
  421. <p>Dump after live range splitting.
  422. </p>
  423. </dd>
  424. <dt><code>-fdump-rtl-regclass</code></dt>
  425. <dt><code>-fdump-rtl-subregs_of_mode_init</code></dt>
  426. <dt><code>-fdump-rtl-subregs_of_mode_finish</code></dt>
  427. <dt><code>-fdump-rtl-dfinit</code></dt>
  428. <dt><code>-fdump-rtl-dfinish</code></dt>
  429. <dd><a name="index-fdump_002drtl_002dregclass"></a>
  430. <a name="index-fdump_002drtl_002dsubregs_005fof_005fmode_005finit"></a>
  431. <a name="index-fdump_002drtl_002dsubregs_005fof_005fmode_005ffinish"></a>
  432. <a name="index-fdump_002drtl_002ddfinit"></a>
  433. <a name="index-fdump_002drtl_002ddfinish"></a>
  434. <p>These dumps are defined but always produce empty files.
  435. </p>
  436. </dd>
  437. <dt><code>-da</code></dt>
  438. <dt><code>-fdump-rtl-all</code></dt>
  439. <dd><a name="index-da"></a>
  440. <a name="index-fdump_002drtl_002dall"></a>
  441. <p>Produce all the dumps listed above.
  442. </p>
  443. </dd>
  444. <dt><code>-dA</code></dt>
  445. <dd><a name="index-dA"></a>
  446. <p>Annotate the assembler output with miscellaneous debugging information.
  447. </p>
  448. </dd>
  449. <dt><code>-dD</code></dt>
  450. <dd><a name="index-dD-1"></a>
  451. <p>Dump all macro definitions, at the end of preprocessing, in addition to
  452. normal output.
  453. </p>
  454. </dd>
  455. <dt><code>-dH</code></dt>
  456. <dd><a name="index-dH"></a>
  457. <p>Produce a core dump whenever an error occurs.
  458. </p>
  459. </dd>
  460. <dt><code>-dp</code></dt>
  461. <dd><a name="index-dp"></a>
  462. <p>Annotate the assembler output with a comment indicating which
  463. pattern and alternative is used. The length and cost of each instruction are
  464. also printed.
  465. </p>
  466. </dd>
  467. <dt><code>-dP</code></dt>
  468. <dd><a name="index-dP"></a>
  469. <p>Dump the RTL in the assembler output as a comment before each instruction.
  470. Also turns on <samp>-dp</samp> annotation.
  471. </p>
  472. </dd>
  473. <dt><code>-dx</code></dt>
  474. <dd><a name="index-dx"></a>
  475. <p>Just generate RTL for a function instead of compiling it. Usually used
  476. with <samp>-fdump-rtl-expand</samp>.
  477. </p></dd>
  478. </dl>
  479. </dd>
  480. <dt><code>-fdump-debug</code></dt>
  481. <dd><a name="index-fdump_002ddebug"></a>
  482. <p>Dump debugging information generated during the debug
  483. generation phase.
  484. </p>
  485. </dd>
  486. <dt><code>-fdump-earlydebug</code></dt>
  487. <dd><a name="index-fdump_002dearlydebug"></a>
  488. <p>Dump debugging information generated during the early debug
  489. generation phase.
  490. </p>
  491. </dd>
  492. <dt><code>-fdump-noaddr</code></dt>
  493. <dd><a name="index-fdump_002dnoaddr"></a>
  494. <p>When doing debugging dumps, suppress address output. This makes it more
  495. feasible to use diff on debugging dumps for compiler invocations with
  496. different compiler binaries and/or different
  497. text / bss / data / heap / stack / dso start locations.
  498. </p>
  499. </dd>
  500. <dt><code>-freport-bug</code></dt>
  501. <dd><a name="index-freport_002dbug"></a>
  502. <p>Collect and dump debug information into a temporary file if an
  503. internal compiler error (ICE) occurs.
  504. </p>
  505. </dd>
  506. <dt><code>-fdump-unnumbered</code></dt>
  507. <dd><a name="index-fdump_002dunnumbered"></a>
  508. <p>When doing debugging dumps, suppress instruction numbers and address output.
  509. This makes it more feasible to use diff on debugging dumps for compiler
  510. invocations with different options, in particular with and without
  511. <samp>-g</samp>.
  512. </p>
  513. </dd>
  514. <dt><code>-fdump-unnumbered-links</code></dt>
  515. <dd><a name="index-fdump_002dunnumbered_002dlinks"></a>
  516. <p>When doing debugging dumps (see <samp>-d</samp> option above), suppress
  517. instruction numbers for the links to the previous and next instructions
  518. in a sequence.
  519. </p>
  520. </dd>
  521. <dt><code>-fdump-ipa-<var>switch</var></code></dt>
  522. <dt><code>-fdump-ipa-<var>switch</var>-<var>options</var></code></dt>
  523. <dd><a name="index-fdump_002dipa"></a>
  524. <p>Control the dumping at various stages of inter-procedural analysis
  525. language tree to a file. The file name is generated by appending a
  526. switch specific suffix to the source file name, and the file is created
  527. in the same directory as the output file. The following dumps are
  528. possible:
  529. </p>
  530. <dl compact="compact">
  531. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  532. <dd><p>Enables all inter-procedural analysis dumps.
  533. </p>
  534. </dd>
  535. <dt>&lsquo;<samp>cgraph</samp>&rsquo;</dt>
  536. <dd><p>Dumps information about call-graph optimization, unused function removal,
  537. and inlining decisions.
  538. </p>
  539. </dd>
  540. <dt>&lsquo;<samp>inline</samp>&rsquo;</dt>
  541. <dd><p>Dump after function inlining.
  542. </p>
  543. </dd>
  544. </dl>
  545. <p>Additionally, the options <samp>-optimized</samp>, <samp>-missed</samp>,
  546. <samp>-note</samp>, and <samp>-all</samp> can be provided, with the same meaning
  547. as for <samp>-fopt-info</samp>, defaulting to <samp>-optimized</samp>.
  548. </p>
  549. <p>For example, <samp>-fdump-ipa-inline-optimized-missed</samp> will emit
  550. information on callsites that were inlined, along with callsites
  551. that were not inlined.
  552. </p>
  553. <p>By default, the dump will contain messages about successful
  554. optimizations (equivalent to <samp>-optimized</samp>) together with
  555. low-level details about the analysis.
  556. </p>
  557. </dd>
  558. <dt><code>-fdump-lang-all</code></dt>
  559. <dt><code>-fdump-lang-<var>switch</var></code></dt>
  560. <dt><code>-fdump-lang-<var>switch</var>-<var>options</var></code></dt>
  561. <dt><code>-fdump-lang-<var>switch</var>-<var>options</var>=<var>filename</var></code></dt>
  562. <dd><a name="index-fdump_002dlang_002dall"></a>
  563. <a name="index-fdump_002dlang"></a>
  564. <p>Control the dumping of language-specific information. The <var>options</var>
  565. and <var>filename</var> portions behave as described in the
  566. <samp>-fdump-tree</samp> option. The following <var>switch</var> values are
  567. accepted:
  568. </p>
  569. <dl compact="compact">
  570. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  571. <dd>
  572. <p>Enable all language-specific dumps.
  573. </p>
  574. </dd>
  575. <dt>&lsquo;<samp>class</samp>&rsquo;</dt>
  576. <dd><p>Dump class hierarchy information. Virtual table information is emitted
  577. unless &rsquo;<samp>slim</samp>&rsquo; is specified. This option is applicable to C++ only.
  578. </p>
  579. </dd>
  580. <dt>&lsquo;<samp>raw</samp>&rsquo;</dt>
  581. <dd><p>Dump the raw internal tree data. This option is applicable to C++ only.
  582. </p>
  583. </dd>
  584. </dl>
  585. </dd>
  586. <dt><code>-fdump-passes</code></dt>
  587. <dd><a name="index-fdump_002dpasses"></a>
  588. <p>Print on <samp>stderr</samp> the list of optimization passes that are turned
  589. on and off by the current command-line options.
  590. </p>
  591. </dd>
  592. <dt><code>-fdump-statistics-<var>option</var></code></dt>
  593. <dd><a name="index-fdump_002dstatistics"></a>
  594. <p>Enable and control dumping of pass statistics in a separate file. The
  595. file name is generated by appending a suffix ending in
  596. &lsquo;<samp>.statistics</samp>&rsquo; to the source file name, and the file is created in
  597. the same directory as the output file. If the &lsquo;<samp>-<var>option</var></samp>&rsquo;
  598. form is used, &lsquo;<samp>-stats</samp>&rsquo; causes counters to be summed over the
  599. whole compilation unit while &lsquo;<samp>-details</samp>&rsquo; dumps every event as
  600. the passes generate them. The default with no option is to sum
  601. counters for each function compiled.
  602. </p>
  603. </dd>
  604. <dt><code>-fdump-tree-all</code></dt>
  605. <dt><code>-fdump-tree-<var>switch</var></code></dt>
  606. <dt><code>-fdump-tree-<var>switch</var>-<var>options</var></code></dt>
  607. <dt><code>-fdump-tree-<var>switch</var>-<var>options</var>=<var>filename</var></code></dt>
  608. <dd><a name="index-fdump_002dtree_002dall"></a>
  609. <a name="index-fdump_002dtree"></a>
  610. <p>Control the dumping at various stages of processing the intermediate
  611. language tree to a file. If the &lsquo;<samp>-<var>options</var></samp>&rsquo;
  612. form is used, <var>options</var> is a list of &lsquo;<samp>-</samp>&rsquo; separated options
  613. which control the details of the dump. Not all options are applicable
  614. to all dumps; those that are not meaningful are ignored. The
  615. following options are available
  616. </p>
  617. <dl compact="compact">
  618. <dt>&lsquo;<samp>address</samp>&rsquo;</dt>
  619. <dd><p>Print the address of each node. Usually this is not meaningful as it
  620. changes according to the environment and source file. Its primary use
  621. is for tying up a dump file with a debug environment.
  622. </p></dd>
  623. <dt>&lsquo;<samp>asmname</samp>&rsquo;</dt>
  624. <dd><p>If <code>DECL_ASSEMBLER_NAME</code> has been set for a given decl, use that
  625. in the dump instead of <code>DECL_NAME</code>. Its primary use is ease of
  626. use working backward from mangled names in the assembly file.
  627. </p></dd>
  628. <dt>&lsquo;<samp>slim</samp>&rsquo;</dt>
  629. <dd><p>When dumping front-end intermediate representations, inhibit dumping
  630. of members of a scope or body of a function merely because that scope
  631. has been reached. Only dump such items when they are directly reachable
  632. by some other path.
  633. </p>
  634. <p>When dumping pretty-printed trees, this option inhibits dumping the
  635. bodies of control structures.
  636. </p>
  637. <p>When dumping RTL, print the RTL in slim (condensed) form instead of
  638. the default LISP-like representation.
  639. </p></dd>
  640. <dt>&lsquo;<samp>raw</samp>&rsquo;</dt>
  641. <dd><p>Print a raw representation of the tree. By default, trees are
  642. pretty-printed into a C-like representation.
  643. </p></dd>
  644. <dt>&lsquo;<samp>details</samp>&rsquo;</dt>
  645. <dd><p>Enable more detailed dumps (not honored by every dump option). Also
  646. include information from the optimization passes.
  647. </p></dd>
  648. <dt>&lsquo;<samp>stats</samp>&rsquo;</dt>
  649. <dd><p>Enable dumping various statistics about the pass (not honored by every dump
  650. option).
  651. </p></dd>
  652. <dt>&lsquo;<samp>blocks</samp>&rsquo;</dt>
  653. <dd><p>Enable showing basic block boundaries (disabled in raw dumps).
  654. </p></dd>
  655. <dt>&lsquo;<samp>graph</samp>&rsquo;</dt>
  656. <dd><p>For each of the other indicated dump files (<samp>-fdump-rtl-<var>pass</var></samp>),
  657. dump a representation of the control flow graph suitable for viewing with
  658. GraphViz to <samp><var>file</var>.<var>passid</var>.<var>pass</var>.dot</samp>. Each function in
  659. the file is pretty-printed as a subgraph, so that GraphViz can render them
  660. all in a single plot.
  661. </p>
  662. <p>This option currently only works for RTL dumps, and the RTL is always
  663. dumped in slim form.
  664. </p></dd>
  665. <dt>&lsquo;<samp>vops</samp>&rsquo;</dt>
  666. <dd><p>Enable showing virtual operands for every statement.
  667. </p></dd>
  668. <dt>&lsquo;<samp>lineno</samp>&rsquo;</dt>
  669. <dd><p>Enable showing line numbers for statements.
  670. </p></dd>
  671. <dt>&lsquo;<samp>uid</samp>&rsquo;</dt>
  672. <dd><p>Enable showing the unique ID (<code>DECL_UID</code>) for each variable.
  673. </p></dd>
  674. <dt>&lsquo;<samp>verbose</samp>&rsquo;</dt>
  675. <dd><p>Enable showing the tree dump for each statement.
  676. </p></dd>
  677. <dt>&lsquo;<samp>eh</samp>&rsquo;</dt>
  678. <dd><p>Enable showing the EH region number holding each statement.
  679. </p></dd>
  680. <dt>&lsquo;<samp>scev</samp>&rsquo;</dt>
  681. <dd><p>Enable showing scalar evolution analysis details.
  682. </p></dd>
  683. <dt>&lsquo;<samp>optimized</samp>&rsquo;</dt>
  684. <dd><p>Enable showing optimization information (only available in certain
  685. passes).
  686. </p></dd>
  687. <dt>&lsquo;<samp>missed</samp>&rsquo;</dt>
  688. <dd><p>Enable showing missed optimization information (only available in certain
  689. passes).
  690. </p></dd>
  691. <dt>&lsquo;<samp>note</samp>&rsquo;</dt>
  692. <dd><p>Enable other detailed optimization information (only available in
  693. certain passes).
  694. </p></dd>
  695. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  696. <dd><p>Turn on all options, except <samp>raw</samp>, <samp>slim</samp>, <samp>verbose</samp>
  697. and <samp>lineno</samp>.
  698. </p></dd>
  699. <dt>&lsquo;<samp>optall</samp>&rsquo;</dt>
  700. <dd><p>Turn on all optimization options, i.e., <samp>optimized</samp>,
  701. <samp>missed</samp>, and <samp>note</samp>.
  702. </p></dd>
  703. </dl>
  704. <p>To determine what tree dumps are available or find the dump for a pass
  705. of interest follow the steps below.
  706. </p>
  707. <ol>
  708. <li> Invoke GCC with <samp>-fdump-passes</samp> and in the <samp>stderr</samp> output
  709. look for a code that corresponds to the pass you are interested in.
  710. For example, the codes <code>tree-evrp</code>, <code>tree-vrp1</code>, and
  711. <code>tree-vrp2</code> correspond to the three Value Range Propagation passes.
  712. The number at the end distinguishes distinct invocations of the same pass.
  713. </li><li> To enable the creation of the dump file, append the pass code to
  714. the <samp>-fdump-</samp> option prefix and invoke GCC with it. For example,
  715. to enable the dump from the Early Value Range Propagation pass, invoke
  716. GCC with the <samp>-fdump-tree-evrp</samp> option. Optionally, you may
  717. specify the name of the dump file. If you don&rsquo;t specify one, GCC
  718. creates as described below.
  719. </li><li> Find the pass dump in a file whose name is composed of three components
  720. separated by a period: the name of the source file GCC was invoked to
  721. compile, a numeric suffix indicating the pass number followed by the
  722. letter &lsquo;<samp>t</samp>&rsquo; for tree passes (and the letter &lsquo;<samp>r</samp>&rsquo; for RTL passes),
  723. and finally the pass code. For example, the Early VRP pass dump might
  724. be in a file named <samp>myfile.c.038t.evrp</samp> in the current working
  725. directory. Note that the numeric codes are not stable and may change
  726. from one version of GCC to another.
  727. </li></ol>
  728. </dd>
  729. <dt><code>-fopt-info</code></dt>
  730. <dt><code>-fopt-info-<var>options</var></code></dt>
  731. <dt><code>-fopt-info-<var>options</var>=<var>filename</var></code></dt>
  732. <dd><a name="index-fopt_002dinfo"></a>
  733. <p>Controls optimization dumps from various optimization passes. If the
  734. &lsquo;<samp>-<var>options</var></samp>&rsquo; form is used, <var>options</var> is a list of
  735. &lsquo;<samp>-</samp>&rsquo; separated option keywords to select the dump details and
  736. optimizations.
  737. </p>
  738. <p>The <var>options</var> can be divided into three groups:
  739. </p><ol>
  740. <li> options describing what kinds of messages should be emitted,
  741. </li><li> options describing the verbosity of the dump, and
  742. </li><li> options describing which optimizations should be included.
  743. </li></ol>
  744. <p>The options from each group can be freely mixed as they are
  745. non-overlapping. However, in case of any conflicts,
  746. the later options override the earlier options on the command
  747. line.
  748. </p>
  749. <p>The following options control which kinds of messages should be emitted:
  750. </p>
  751. <dl compact="compact">
  752. <dt>&lsquo;<samp>optimized</samp>&rsquo;</dt>
  753. <dd><p>Print information when an optimization is successfully applied. It is
  754. up to a pass to decide which information is relevant. For example, the
  755. vectorizer passes print the source location of loops which are
  756. successfully vectorized.
  757. </p></dd>
  758. <dt>&lsquo;<samp>missed</samp>&rsquo;</dt>
  759. <dd><p>Print information about missed optimizations. Individual passes
  760. control which information to include in the output.
  761. </p></dd>
  762. <dt>&lsquo;<samp>note</samp>&rsquo;</dt>
  763. <dd><p>Print verbose information about optimizations, such as certain
  764. transformations, more detailed messages about decisions etc.
  765. </p></dd>
  766. <dt>&lsquo;<samp>all</samp>&rsquo;</dt>
  767. <dd><p>Print detailed optimization information. This includes
  768. &lsquo;<samp>optimized</samp>&rsquo;, &lsquo;<samp>missed</samp>&rsquo;, and &lsquo;<samp>note</samp>&rsquo;.
  769. </p></dd>
  770. </dl>
  771. <p>The following option controls the dump verbosity:
  772. </p>
  773. <dl compact="compact">
  774. <dt>&lsquo;<samp>internals</samp>&rsquo;</dt>
  775. <dd><p>By default, only &ldquo;high-level&rdquo; messages are emitted. This option enables
  776. additional, more detailed, messages, which are likely to only be of interest
  777. to GCC developers.
  778. </p></dd>
  779. </dl>
  780. <p>One or more of the following option keywords can be used to describe a
  781. group of optimizations:
  782. </p>
  783. <dl compact="compact">
  784. <dt>&lsquo;<samp>ipa</samp>&rsquo;</dt>
  785. <dd><p>Enable dumps from all interprocedural optimizations.
  786. </p></dd>
  787. <dt>&lsquo;<samp>loop</samp>&rsquo;</dt>
  788. <dd><p>Enable dumps from all loop optimizations.
  789. </p></dd>
  790. <dt>&lsquo;<samp>inline</samp>&rsquo;</dt>
  791. <dd><p>Enable dumps from all inlining optimizations.
  792. </p></dd>
  793. <dt>&lsquo;<samp>omp</samp>&rsquo;</dt>
  794. <dd><p>Enable dumps from all OMP (Offloading and Multi Processing) optimizations.
  795. </p></dd>
  796. <dt>&lsquo;<samp>vec</samp>&rsquo;</dt>
  797. <dd><p>Enable dumps from all vectorization optimizations.
  798. </p></dd>
  799. <dt>&lsquo;<samp>optall</samp>&rsquo;</dt>
  800. <dd><p>Enable dumps from all optimizations. This is a superset of
  801. the optimization groups listed above.
  802. </p></dd>
  803. </dl>
  804. <p>If <var>options</var> is
  805. omitted, it defaults to &lsquo;<samp>optimized-optall</samp>&rsquo;, which means to dump messages
  806. about successful optimizations from all the passes, omitting messages
  807. that are treated as &ldquo;internals&rdquo;.
  808. </p>
  809. <p>If the <var>filename</var> is provided, then the dumps from all the
  810. applicable optimizations are concatenated into the <var>filename</var>.
  811. Otherwise the dump is output onto <samp>stderr</samp>. Though multiple
  812. <samp>-fopt-info</samp> options are accepted, only one of them can include
  813. a <var>filename</var>. If other filenames are provided then all but the
  814. first such option are ignored.
  815. </p>
  816. <p>Note that the output <var>filename</var> is overwritten
  817. in case of multiple translation units. If a combined output from
  818. multiple translation units is desired, <samp>stderr</samp> should be used
  819. instead.
  820. </p>
  821. <p>In the following example, the optimization info is output to
  822. <samp>stderr</samp>:
  823. </p>
  824. <div class="smallexample">
  825. <pre class="smallexample">gcc -O3 -fopt-info
  826. </pre></div>
  827. <p>This example:
  828. </p><div class="smallexample">
  829. <pre class="smallexample">gcc -O3 -fopt-info-missed=missed.all
  830. </pre></div>
  831. <p>outputs missed optimization report from all the passes into
  832. <samp>missed.all</samp>, and this one:
  833. </p>
  834. <div class="smallexample">
  835. <pre class="smallexample">gcc -O2 -ftree-vectorize -fopt-info-vec-missed
  836. </pre></div>
  837. <p>prints information about missed optimization opportunities from
  838. vectorization passes on <samp>stderr</samp>.
  839. Note that <samp>-fopt-info-vec-missed</samp> is equivalent to
  840. <samp>-fopt-info-missed-vec</samp>. The order of the optimization group
  841. names and message types listed after <samp>-fopt-info</samp> does not matter.
  842. </p>
  843. <p>As another example,
  844. </p><div class="smallexample">
  845. <pre class="smallexample">gcc -O3 -fopt-info-inline-optimized-missed=inline.txt
  846. </pre></div>
  847. <p>outputs information about missed optimizations as well as
  848. optimized locations from all the inlining passes into
  849. <samp>inline.txt</samp>.
  850. </p>
  851. <p>Finally, consider:
  852. </p>
  853. <div class="smallexample">
  854. <pre class="smallexample">gcc -fopt-info-vec-missed=vec.miss -fopt-info-loop-optimized=loop.opt
  855. </pre></div>
  856. <p>Here the two output filenames <samp>vec.miss</samp> and <samp>loop.opt</samp> are
  857. in conflict since only one output file is allowed. In this case, only
  858. the first option takes effect and the subsequent options are
  859. ignored. Thus only <samp>vec.miss</samp> is produced which contains
  860. dumps from the vectorizer about missed opportunities.
  861. </p>
  862. </dd>
  863. <dt><code>-fsave-optimization-record</code></dt>
  864. <dd><a name="index-fsave_002doptimization_002drecord"></a>
  865. <p>Write a SRCFILE.opt-record.json.gz file detailing what optimizations
  866. were performed, for those optimizations that support <samp>-fopt-info</samp>.
  867. </p>
  868. <p>This option is experimental and the format of the data within the
  869. compressed JSON file is subject to change.
  870. </p>
  871. <p>It is roughly equivalent to a machine-readable version of
  872. <samp>-fopt-info-all</samp>, as a collection of messages with source file,
  873. line number and column number, with the following additional data for
  874. each message:
  875. </p>
  876. <ul>
  877. <li> the execution count of the code being optimized, along with metadata about
  878. whether this was from actual profile data, or just an estimate, allowing
  879. consumers to prioritize messages by code hotness,
  880. </li><li> the function name of the code being optimized, where applicable,
  881. </li><li> the &ldquo;inlining chain&rdquo; for the code being optimized, so that when
  882. a function is inlined into several different places (which might
  883. themselves be inlined), the reader can distinguish between the copies,
  884. </li><li> objects identifying those parts of the message that refer to expressions,
  885. statements or symbol-table nodes, which of these categories they are, and,
  886. when available, their source code location,
  887. </li><li> the GCC pass that emitted the message, and
  888. </li><li> the location in GCC&rsquo;s own code from which the message was emitted
  889. </li></ul>
  890. <p>Additionally, some messages are logically nested within other
  891. messages, reflecting implementation details of the optimization
  892. passes.
  893. </p>
  894. </dd>
  895. <dt><code>-fsched-verbose=<var>n</var></code></dt>
  896. <dd><a name="index-fsched_002dverbose"></a>
  897. <p>On targets that use instruction scheduling, this option controls the
  898. amount of debugging output the scheduler prints to the dump files.
  899. </p>
  900. <p>For <var>n</var> greater than zero, <samp>-fsched-verbose</samp> outputs the
  901. same information as <samp>-fdump-rtl-sched1</samp> and <samp>-fdump-rtl-sched2</samp>.
  902. For <var>n</var> greater than one, it also output basic block probabilities,
  903. detailed ready list information and unit/insn info. For <var>n</var> greater
  904. than two, it includes RTL at abort point, control-flow and regions info.
  905. And for <var>n</var> over four, <samp>-fsched-verbose</samp> also includes
  906. dependence info.
  907. </p>
  908. </dd>
  909. <dt><code>-fenable-<var>kind</var>-<var>pass</var></code></dt>
  910. <dt><code>-fdisable-<var>kind</var>-<var>pass</var>=<var>range-list</var></code></dt>
  911. <dd><a name="index-fdisable_002d"></a>
  912. <a name="index-fenable_002d"></a>
  913. <p>This is a set of options that are used to explicitly disable/enable
  914. optimization passes. These options are intended for use for debugging GCC.
  915. Compiler users should use regular options for enabling/disabling
  916. passes instead.
  917. </p>
  918. <dl compact="compact">
  919. <dt><code>-fdisable-ipa-<var>pass</var></code></dt>
  920. <dd><p>Disable IPA pass <var>pass</var>. <var>pass</var> is the pass name. If the same pass is
  921. statically invoked in the compiler multiple times, the pass name should be
  922. appended with a sequential number starting from 1.
  923. </p>
  924. </dd>
  925. <dt><code>-fdisable-rtl-<var>pass</var></code></dt>
  926. <dt><code>-fdisable-rtl-<var>pass</var>=<var>range-list</var></code></dt>
  927. <dd><p>Disable RTL pass <var>pass</var>. <var>pass</var> is the pass name. If the same pass is
  928. statically invoked in the compiler multiple times, the pass name should be
  929. appended with a sequential number starting from 1. <var>range-list</var> is a
  930. comma-separated list of function ranges or assembler names. Each range is a number
  931. pair separated by a colon. The range is inclusive in both ends. If the range
  932. is trivial, the number pair can be simplified as a single number. If the
  933. function&rsquo;s call graph node&rsquo;s <var>uid</var> falls within one of the specified ranges,
  934. the <var>pass</var> is disabled for that function. The <var>uid</var> is shown in the
  935. function header of a dump file, and the pass names can be dumped by using
  936. option <samp>-fdump-passes</samp>.
  937. </p>
  938. </dd>
  939. <dt><code>-fdisable-tree-<var>pass</var></code></dt>
  940. <dt><code>-fdisable-tree-<var>pass</var>=<var>range-list</var></code></dt>
  941. <dd><p>Disable tree pass <var>pass</var>. See <samp>-fdisable-rtl</samp> for the description of
  942. option arguments.
  943. </p>
  944. </dd>
  945. <dt><code>-fenable-ipa-<var>pass</var></code></dt>
  946. <dd><p>Enable IPA pass <var>pass</var>. <var>pass</var> is the pass name. If the same pass is
  947. statically invoked in the compiler multiple times, the pass name should be
  948. appended with a sequential number starting from 1.
  949. </p>
  950. </dd>
  951. <dt><code>-fenable-rtl-<var>pass</var></code></dt>
  952. <dt><code>-fenable-rtl-<var>pass</var>=<var>range-list</var></code></dt>
  953. <dd><p>Enable RTL pass <var>pass</var>. See <samp>-fdisable-rtl</samp> for option argument
  954. description and examples.
  955. </p>
  956. </dd>
  957. <dt><code>-fenable-tree-<var>pass</var></code></dt>
  958. <dt><code>-fenable-tree-<var>pass</var>=<var>range-list</var></code></dt>
  959. <dd><p>Enable tree pass <var>pass</var>. See <samp>-fdisable-rtl</samp> for the description
  960. of option arguments.
  961. </p>
  962. </dd>
  963. </dl>
  964. <p>Here are some examples showing uses of these options.
  965. </p>
  966. <div class="smallexample">
  967. <pre class="smallexample">
  968. # disable ccp1 for all functions
  969. -fdisable-tree-ccp1
  970. # disable complete unroll for function whose cgraph node uid is 1
  971. -fenable-tree-cunroll=1
  972. # disable gcse2 for functions at the following ranges [1,1],
  973. # [300,400], and [400,1000]
  974. # disable gcse2 for functions foo and foo2
  975. -fdisable-rtl-gcse2=foo,foo2
  976. # disable early inlining
  977. -fdisable-tree-einline
  978. # disable ipa inlining
  979. -fdisable-ipa-inline
  980. # enable tree full unroll
  981. -fenable-tree-unroll
  982. </pre></div>
  983. </dd>
  984. <dt><code>-fchecking</code></dt>
  985. <dt><code>-fchecking=<var>n</var></code></dt>
  986. <dd><a name="index-fchecking"></a>
  987. <a name="index-fno_002dchecking"></a>
  988. <p>Enable internal consistency checking. The default depends on
  989. the compiler configuration. <samp>-fchecking=2</samp> enables further
  990. internal consistency checking that might affect code generation.
  991. </p>
  992. </dd>
  993. <dt><code>-frandom-seed=<var>string</var></code></dt>
  994. <dd><a name="index-frandom_002dseed"></a>
  995. <p>This option provides a seed that GCC uses in place of
  996. random numbers in generating certain symbol names
  997. that have to be different in every compiled file. It is also used to
  998. place unique stamps in coverage data files and the object files that
  999. produce them. You can use the <samp>-frandom-seed</samp> option to produce
  1000. reproducibly identical object files.
  1001. </p>
  1002. <p>The <var>string</var> can either be a number (decimal, octal or hex) or an
  1003. arbitrary string (in which case it&rsquo;s converted to a number by
  1004. computing CRC32).
  1005. </p>
  1006. <p>The <var>string</var> should be different for every file you compile.
  1007. </p>
  1008. </dd>
  1009. <dt><code>-save-temps</code></dt>
  1010. <dt><code>-save-temps=cwd</code></dt>
  1011. <dd><a name="index-save_002dtemps"></a>
  1012. <p>Store the usual &ldquo;temporary&rdquo; intermediate files permanently; place them
  1013. in the current directory and name them based on the source file. Thus,
  1014. compiling <samp>foo.c</samp> with <samp>-c -save-temps</samp> produces files
  1015. <samp>foo.i</samp> and <samp>foo.s</samp>, as well as <samp>foo.o</samp>. This creates a
  1016. preprocessed <samp>foo.i</samp> output file even though the compiler now
  1017. normally uses an integrated preprocessor.
  1018. </p>
  1019. <p>When used in combination with the <samp>-x</samp> command-line option,
  1020. <samp>-save-temps</samp> is sensible enough to avoid over writing an
  1021. input source file with the same extension as an intermediate file.
  1022. The corresponding intermediate file may be obtained by renaming the
  1023. source file before using <samp>-save-temps</samp>.
  1024. </p>
  1025. <p>If you invoke GCC in parallel, compiling several different source
  1026. files that share a common base name in different subdirectories or the
  1027. same source file compiled for multiple output destinations, it is
  1028. likely that the different parallel compilers will interfere with each
  1029. other, and overwrite the temporary files. For instance:
  1030. </p>
  1031. <div class="smallexample">
  1032. <pre class="smallexample">gcc -save-temps -o outdir1/foo.o indir1/foo.c&amp;
  1033. gcc -save-temps -o outdir2/foo.o indir2/foo.c&amp;
  1034. </pre></div>
  1035. <p>may result in <samp>foo.i</samp> and <samp>foo.o</samp> being written to
  1036. simultaneously by both compilers.
  1037. </p>
  1038. </dd>
  1039. <dt><code>-save-temps=obj</code></dt>
  1040. <dd><a name="index-save_002dtemps_003dobj"></a>
  1041. <p>Store the usual &ldquo;temporary&rdquo; intermediate files permanently. If the
  1042. <samp>-o</samp> option is used, the temporary files are based on the
  1043. object file. If the <samp>-o</samp> option is not used, the
  1044. <samp>-save-temps=obj</samp> switch behaves like <samp>-save-temps</samp>.
  1045. </p>
  1046. <p>For example:
  1047. </p>
  1048. <div class="smallexample">
  1049. <pre class="smallexample">gcc -save-temps=obj -c foo.c
  1050. gcc -save-temps=obj -c bar.c -o dir/xbar.o
  1051. gcc -save-temps=obj foobar.c -o dir2/yfoobar
  1052. </pre></div>
  1053. <p>creates <samp>foo.i</samp>, <samp>foo.s</samp>, <samp>dir/xbar.i</samp>,
  1054. <samp>dir/xbar.s</samp>, <samp>dir2/yfoobar.i</samp>, <samp>dir2/yfoobar.s</samp>, and
  1055. <samp>dir2/yfoobar.o</samp>.
  1056. </p>
  1057. </dd>
  1058. <dt><code>-time<span class="roman">[</span>=<var>file</var><span class="roman">]</span></code></dt>
  1059. <dd><a name="index-time"></a>
  1060. <p>Report the CPU time taken by each subprocess in the compilation
  1061. sequence. For C source files, this is the compiler proper and assembler
  1062. (plus the linker if linking is done).
  1063. </p>
  1064. <p>Without the specification of an output file, the output looks like this:
  1065. </p>
  1066. <div class="smallexample">
  1067. <pre class="smallexample"># cc1 0.12 0.01
  1068. # as 0.00 0.01
  1069. </pre></div>
  1070. <p>The first number on each line is the &ldquo;user time&rdquo;, that is time spent
  1071. executing the program itself. The second number is &ldquo;system time&rdquo;,
  1072. time spent executing operating system routines on behalf of the program.
  1073. Both numbers are in seconds.
  1074. </p>
  1075. <p>With the specification of an output file, the output is appended to the
  1076. named file, and it looks like this:
  1077. </p>
  1078. <div class="smallexample">
  1079. <pre class="smallexample">0.12 0.01 cc1 <var>options</var>
  1080. 0.00 0.01 as <var>options</var>
  1081. </pre></div>
  1082. <p>The &ldquo;user time&rdquo; and the &ldquo;system time&rdquo; are moved before the program
  1083. name, and the options passed to the program are displayed, so that one
  1084. can later tell what file was being compiled, and with which options.
  1085. </p>
  1086. </dd>
  1087. <dt><code>-fdump-final-insns<span class="roman">[</span>=<var>file</var><span class="roman">]</span></code></dt>
  1088. <dd><a name="index-fdump_002dfinal_002dinsns"></a>
  1089. <p>Dump the final internal representation (RTL) to <var>file</var>. If the
  1090. optional argument is omitted (or if <var>file</var> is <code>.</code>), the name
  1091. of the dump file is determined by appending <code>.gkd</code> to the
  1092. compilation output file name.
  1093. </p>
  1094. </dd>
  1095. <dt><code>-fcompare-debug<span class="roman">[</span>=<var>opts</var><span class="roman">]</span></code></dt>
  1096. <dd><a name="index-fcompare_002ddebug"></a>
  1097. <a name="index-fno_002dcompare_002ddebug"></a>
  1098. <p>If no error occurs during compilation, run the compiler a second time,
  1099. adding <var>opts</var> and <samp>-fcompare-debug-second</samp> to the arguments
  1100. passed to the second compilation. Dump the final internal
  1101. representation in both compilations, and print an error if they differ.
  1102. </p>
  1103. <p>If the equal sign is omitted, the default <samp>-gtoggle</samp> is used.
  1104. </p>
  1105. <p>The environment variable <code>GCC_COMPARE_DEBUG</code>, if defined, non-empty
  1106. and nonzero, implicitly enables <samp>-fcompare-debug</samp>. If
  1107. <code>GCC_COMPARE_DEBUG</code> is defined to a string starting with a dash,
  1108. then it is used for <var>opts</var>, otherwise the default <samp>-gtoggle</samp>
  1109. is used.
  1110. </p>
  1111. <p><samp>-fcompare-debug=</samp>, with the equal sign but without <var>opts</var>,
  1112. is equivalent to <samp>-fno-compare-debug</samp>, which disables the dumping
  1113. of the final representation and the second compilation, preventing even
  1114. <code>GCC_COMPARE_DEBUG</code> from taking effect.
  1115. </p>
  1116. <p>To verify full coverage during <samp>-fcompare-debug</samp> testing, set
  1117. <code>GCC_COMPARE_DEBUG</code> to say <samp>-fcompare-debug-not-overridden</samp>,
  1118. which GCC rejects as an invalid option in any actual compilation
  1119. (rather than preprocessing, assembly or linking). To get just a
  1120. warning, setting <code>GCC_COMPARE_DEBUG</code> to &lsquo;<samp>-w%n-fcompare-debug
  1121. not overridden</samp>&rsquo; will do.
  1122. </p>
  1123. </dd>
  1124. <dt><code>-fcompare-debug-second</code></dt>
  1125. <dd><a name="index-fcompare_002ddebug_002dsecond"></a>
  1126. <p>This option is implicitly passed to the compiler for the second
  1127. compilation requested by <samp>-fcompare-debug</samp>, along with options to
  1128. silence warnings, and omitting other options that would cause the compiler
  1129. to produce output to files or to standard output as a side effect. Dump
  1130. files and preserved temporary files are renamed so as to contain the
  1131. <code>.gk</code> additional extension during the second compilation, to avoid
  1132. overwriting those generated by the first.
  1133. </p>
  1134. <p>When this option is passed to the compiler driver, it causes the
  1135. <em>first</em> compilation to be skipped, which makes it useful for little
  1136. other than debugging the compiler proper.
  1137. </p>
  1138. </dd>
  1139. <dt><code>-gtoggle</code></dt>
  1140. <dd><a name="index-gtoggle"></a>
  1141. <p>Turn off generation of debug info, if leaving out this option
  1142. generates it, or turn it on at level 2 otherwise. The position of this
  1143. argument in the command line does not matter; it takes effect after all
  1144. other options are processed, and it does so only once, no matter how
  1145. many times it is given. This is mainly intended to be used with
  1146. <samp>-fcompare-debug</samp>.
  1147. </p>
  1148. </dd>
  1149. <dt><code>-fvar-tracking-assignments-toggle</code></dt>
  1150. <dd><a name="index-fvar_002dtracking_002dassignments_002dtoggle"></a>
  1151. <a name="index-fno_002dvar_002dtracking_002dassignments_002dtoggle"></a>
  1152. <p>Toggle <samp>-fvar-tracking-assignments</samp>, in the same way that
  1153. <samp>-gtoggle</samp> toggles <samp>-g</samp>.
  1154. </p>
  1155. </dd>
  1156. <dt><code>-Q</code></dt>
  1157. <dd><a name="index-Q"></a>
  1158. <p>Makes the compiler print out each function name as it is compiled, and
  1159. print some statistics about each pass when it finishes.
  1160. </p>
  1161. </dd>
  1162. <dt><code>-ftime-report</code></dt>
  1163. <dd><a name="index-ftime_002dreport"></a>
  1164. <p>Makes the compiler print some statistics about the time consumed by each
  1165. pass when it finishes.
  1166. </p>
  1167. </dd>
  1168. <dt><code>-ftime-report-details</code></dt>
  1169. <dd><a name="index-ftime_002dreport_002ddetails"></a>
  1170. <p>Record the time consumed by infrastructure parts separately for each pass.
  1171. </p>
  1172. </dd>
  1173. <dt><code>-fira-verbose=<var>n</var></code></dt>
  1174. <dd><a name="index-fira_002dverbose"></a>
  1175. <p>Control the verbosity of the dump file for the integrated register allocator.
  1176. The default value is 5. If the value <var>n</var> is greater or equal to 10,
  1177. the dump output is sent to stderr using the same format as <var>n</var> minus 10.
  1178. </p>
  1179. </dd>
  1180. <dt><code>-flto-report</code></dt>
  1181. <dd><a name="index-flto_002dreport"></a>
  1182. <p>Prints a report with internal details on the workings of the link-time
  1183. optimizer. The contents of this report vary from version to version.
  1184. It is meant to be useful to GCC developers when processing object
  1185. files in LTO mode (via <samp>-flto</samp>).
  1186. </p>
  1187. <p>Disabled by default.
  1188. </p>
  1189. </dd>
  1190. <dt><code>-flto-report-wpa</code></dt>
  1191. <dd><a name="index-flto_002dreport_002dwpa"></a>
  1192. <p>Like <samp>-flto-report</samp>, but only print for the WPA phase of link-time
  1193. optimization.
  1194. </p>
  1195. </dd>
  1196. <dt><code>-fmem-report</code></dt>
  1197. <dd><a name="index-fmem_002dreport"></a>
  1198. <p>Makes the compiler print some statistics about permanent memory
  1199. allocation when it finishes.
  1200. </p>
  1201. </dd>
  1202. <dt><code>-fmem-report-wpa</code></dt>
  1203. <dd><a name="index-fmem_002dreport_002dwpa"></a>
  1204. <p>Makes the compiler print some statistics about permanent memory
  1205. allocation for the WPA phase only.
  1206. </p>
  1207. </dd>
  1208. <dt><code>-fpre-ipa-mem-report</code></dt>
  1209. <dd><a name="index-fpre_002dipa_002dmem_002dreport"></a>
  1210. </dd>
  1211. <dt><code>-fpost-ipa-mem-report</code></dt>
  1212. <dd><a name="index-fpost_002dipa_002dmem_002dreport"></a>
  1213. <p>Makes the compiler print some statistics about permanent memory
  1214. allocation before or after interprocedural optimization.
  1215. </p>
  1216. </dd>
  1217. <dt><code>-fprofile-report</code></dt>
  1218. <dd><a name="index-fprofile_002dreport"></a>
  1219. <p>Makes the compiler print some statistics about consistency of the
  1220. (estimated) profile and effect of individual passes.
  1221. </p>
  1222. </dd>
  1223. <dt><code>-fstack-usage</code></dt>
  1224. <dd><a name="index-fstack_002dusage"></a>
  1225. <p>Makes the compiler output stack usage information for the program, on a
  1226. per-function basis. The filename for the dump is made by appending
  1227. <samp>.su</samp> to the <var>auxname</var>. <var>auxname</var> is generated from the name of
  1228. the output file, if explicitly specified and it is not an executable,
  1229. otherwise it is the basename of the source file. An entry is made up
  1230. of three fields:
  1231. </p>
  1232. <ul>
  1233. <li> The name of the function.
  1234. </li><li> A number of bytes.
  1235. </li><li> One or more qualifiers: <code>static</code>, <code>dynamic</code>, <code>bounded</code>.
  1236. </li></ul>
  1237. <p>The qualifier <code>static</code> means that the function manipulates the stack
  1238. statically: a fixed number of bytes are allocated for the frame on function
  1239. entry and released on function exit; no stack adjustments are otherwise made
  1240. in the function. The second field is this fixed number of bytes.
  1241. </p>
  1242. <p>The qualifier <code>dynamic</code> means that the function manipulates the stack
  1243. dynamically: in addition to the static allocation described above, stack
  1244. adjustments are made in the body of the function, for example to push/pop
  1245. arguments around function calls. If the qualifier <code>bounded</code> is also
  1246. present, the amount of these adjustments is bounded at compile time and
  1247. the second field is an upper bound of the total amount of stack used by
  1248. the function. If it is not present, the amount of these adjustments is
  1249. not bounded at compile time and the second field only represents the
  1250. bounded part.
  1251. </p>
  1252. </dd>
  1253. <dt><code>-fstats</code></dt>
  1254. <dd><a name="index-fstats"></a>
  1255. <p>Emit statistics about front-end processing at the end of the compilation.
  1256. This option is supported only by the C++ front end, and
  1257. the information is generally only useful to the G++ development team.
  1258. </p>
  1259. </dd>
  1260. <dt><code>-fdbg-cnt-list</code></dt>
  1261. <dd><a name="index-fdbg_002dcnt_002dlist"></a>
  1262. <p>Print the name and the counter upper bound for all debug counters.
  1263. </p>
  1264. </dd>
  1265. <dt><code>-fdbg-cnt=<var>counter-value-list</var></code></dt>
  1266. <dd><a name="index-fdbg_002dcnt"></a>
  1267. <p>Set the internal debug counter lower and upper bound. <var>counter-value-list</var>
  1268. is a comma-separated list of <var>name</var>:<var>lower_bound1</var>-<var>upper_bound1</var>
  1269. [:<var>lower_bound2</var>-<var>upper_bound2</var>...] tuples which sets
  1270. the name of the counter and list of closed intervals.
  1271. The <var>lower_bound</var> is optional and is zero
  1272. initialized if not set.
  1273. For example, with <samp>-fdbg-cnt=dce:2-4:10-11,tail_call:10</samp>,
  1274. <code>dbg_cnt(dce)</code> returns true only for second, third, fourth, tenth and
  1275. eleventh invocation.
  1276. For <code>dbg_cnt(tail_call)</code> true is returned for first 10 invocations.
  1277. </p>
  1278. </dd>
  1279. <dt><code>-print-file-name=<var>library</var></code></dt>
  1280. <dd><a name="index-print_002dfile_002dname"></a>
  1281. <p>Print the full absolute name of the library file <var>library</var> that
  1282. would be used when linking&mdash;and don&rsquo;t do anything else. With this
  1283. option, GCC does not compile or link anything; it just prints the
  1284. file name.
  1285. </p>
  1286. </dd>
  1287. <dt><code>-print-multi-directory</code></dt>
  1288. <dd><a name="index-print_002dmulti_002ddirectory"></a>
  1289. <p>Print the directory name corresponding to the multilib selected by any
  1290. other switches present in the command line. This directory is supposed
  1291. to exist in <code>GCC_EXEC_PREFIX</code>.
  1292. </p>
  1293. </dd>
  1294. <dt><code>-print-multi-lib</code></dt>
  1295. <dd><a name="index-print_002dmulti_002dlib"></a>
  1296. <p>Print the mapping from multilib directory names to compiler switches
  1297. that enable them. The directory name is separated from the switches by
  1298. &lsquo;<samp>;</samp>&rsquo;, and each switch starts with an &lsquo;<samp>@</samp>&rsquo; instead of the
  1299. &lsquo;<samp>-</samp>&rsquo;, without spaces between multiple switches. This is supposed to
  1300. ease shell processing.
  1301. </p>
  1302. </dd>
  1303. <dt><code>-print-multi-os-directory</code></dt>
  1304. <dd><a name="index-print_002dmulti_002dos_002ddirectory"></a>
  1305. <p>Print the path to OS libraries for the selected
  1306. multilib, relative to some <samp>lib</samp> subdirectory. If OS libraries are
  1307. present in the <samp>lib</samp> subdirectory and no multilibs are used, this is
  1308. usually just <samp>.</samp>, if OS libraries are present in <samp>lib<var>suffix</var></samp>
  1309. sibling directories this prints e.g. <samp>../lib64</samp>, <samp>../lib</samp> or
  1310. <samp>../lib32</samp>, or if OS libraries are present in <samp>lib/<var>subdir</var></samp>
  1311. subdirectories it prints e.g. <samp>amd64</samp>, <samp>sparcv9</samp> or <samp>ev6</samp>.
  1312. </p>
  1313. </dd>
  1314. <dt><code>-print-multiarch</code></dt>
  1315. <dd><a name="index-print_002dmultiarch"></a>
  1316. <p>Print the path to OS libraries for the selected multiarch,
  1317. relative to some <samp>lib</samp> subdirectory.
  1318. </p>
  1319. </dd>
  1320. <dt><code>-print-prog-name=<var>program</var></code></dt>
  1321. <dd><a name="index-print_002dprog_002dname"></a>
  1322. <p>Like <samp>-print-file-name</samp>, but searches for a program such as <code>cpp</code>.
  1323. </p>
  1324. </dd>
  1325. <dt><code>-print-libgcc-file-name</code></dt>
  1326. <dd><a name="index-print_002dlibgcc_002dfile_002dname"></a>
  1327. <p>Same as <samp>-print-file-name=libgcc.a</samp>.
  1328. </p>
  1329. <p>This is useful when you use <samp>-nostdlib</samp> or <samp>-nodefaultlibs</samp>
  1330. but you do want to link with <samp>libgcc.a</samp>. You can do:
  1331. </p>
  1332. <div class="smallexample">
  1333. <pre class="smallexample">gcc -nostdlib <var>files</var>&hellip; `gcc -print-libgcc-file-name`
  1334. </pre></div>
  1335. </dd>
  1336. <dt><code>-print-search-dirs</code></dt>
  1337. <dd><a name="index-print_002dsearch_002ddirs"></a>
  1338. <p>Print the name of the configured installation directory and a list of
  1339. program and library directories <code>gcc</code> searches&mdash;and don&rsquo;t do anything else.
  1340. </p>
  1341. <p>This is useful when <code>gcc</code> prints the error message
  1342. &lsquo;<samp>installation problem, cannot exec cpp0: No such file or directory</samp>&rsquo;.
  1343. To resolve this you either need to put <samp>cpp0</samp> and the other compiler
  1344. components where <code>gcc</code> expects to find them, or you can set the environment
  1345. variable <code>GCC_EXEC_PREFIX</code> to the directory where you installed them.
  1346. Don&rsquo;t forget the trailing &lsquo;<samp>/</samp>&rsquo;.
  1347. See <a href="Environment-Variables.html#Environment-Variables">Environment Variables</a>.
  1348. </p>
  1349. </dd>
  1350. <dt><code>-print-sysroot</code></dt>
  1351. <dd><a name="index-print_002dsysroot"></a>
  1352. <p>Print the target sysroot directory that is used during
  1353. compilation. This is the target sysroot specified either at configure
  1354. time or using the <samp>--sysroot</samp> option, possibly with an extra
  1355. suffix that depends on compilation options. If no target sysroot is
  1356. specified, the option prints nothing.
  1357. </p>
  1358. </dd>
  1359. <dt><code>-print-sysroot-headers-suffix</code></dt>
  1360. <dd><a name="index-print_002dsysroot_002dheaders_002dsuffix"></a>
  1361. <p>Print the suffix added to the target sysroot when searching for
  1362. headers, or give an error if the compiler is not configured with such
  1363. a suffix&mdash;and don&rsquo;t do anything else.
  1364. </p>
  1365. </dd>
  1366. <dt><code>-dumpmachine</code></dt>
  1367. <dd><a name="index-dumpmachine"></a>
  1368. <p>Print the compiler&rsquo;s target machine (for example,
  1369. &lsquo;<samp>i686-pc-linux-gnu</samp>&rsquo;)&mdash;and don&rsquo;t do anything else.
  1370. </p>
  1371. </dd>
  1372. <dt><code>-dumpversion</code></dt>
  1373. <dd><a name="index-dumpversion"></a>
  1374. <p>Print the compiler version (for example, <code>3.0</code>, <code>6.3.0</code> or <code>7</code>)&mdash;and don&rsquo;t do
  1375. anything else. This is the compiler version used in filesystem paths and
  1376. specs. Depending on how the compiler has been configured it can be just
  1377. a single number (major version), two numbers separated by a dot (major and
  1378. minor version) or three numbers separated by dots (major, minor and patchlevel
  1379. version).
  1380. </p>
  1381. </dd>
  1382. <dt><code>-dumpfullversion</code></dt>
  1383. <dd><a name="index-dumpfullversion"></a>
  1384. <p>Print the full compiler version&mdash;and don&rsquo;t do anything else. The output is
  1385. always three numbers separated by dots, major, minor and patchlevel version.
  1386. </p>
  1387. </dd>
  1388. <dt><code>-dumpspecs</code></dt>
  1389. <dd><a name="index-dumpspecs"></a>
  1390. <p>Print the compiler&rsquo;s built-in specs&mdash;and don&rsquo;t do anything else. (This
  1391. is used when GCC itself is being built.) See <a href="Spec-Files.html#Spec-Files">Spec Files</a>.
  1392. </p></dd>
  1393. </dl>
  1394. <hr>
  1395. <div class="header">
  1396. <p>
  1397. Next: <a href="Submodel-Options.html#Submodel-Options" accesskey="n" rel="next">Submodel Options</a>, Previous: <a href="Code-Gen-Options.html#Code-Gen-Options" accesskey="p" rel="prev">Code Gen Options</a>, Up: <a href="Invoking-GCC.html#Invoking-GCC" accesskey="u" rel="up">Invoking GCC</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>
  1398. </div>
  1399. </body>
  1400. </html>