]>
Commit | Line | Data |
---|---|---|
d7b42618 | 1 | ; Options for the language- and target-independent parts of the compiler. |
50431bc4 | 2 | |
7adcbafe | 3 | ; Copyright (C) 2003-2022 Free Software Foundation, Inc. |
d7b42618 NB |
4 | ; |
5 | ; This file is part of GCC. | |
6 | ; | |
7 | ; GCC is free software; you can redistribute it and/or modify it under | |
8 | ; the terms of the GNU General Public License as published by the Free | |
9dcd6f09 | 9 | ; Software Foundation; either version 3, or (at your option) any later |
d7b42618 | 10 | ; version. |
c22cacf3 | 11 | ; |
d7b42618 NB |
12 | ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY |
13 | ; WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 | ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 | ; for more details. | |
c22cacf3 | 16 | ; |
d7b42618 | 17 | ; You should have received a copy of the GNU General Public License |
9dcd6f09 NC |
18 | ; along with GCC; see the file COPYING3. If not see |
19 | ; <http://www.gnu.org/licenses/>. | |
d7b42618 | 20 | |
71733172 | 21 | ; See the GCC internals manual (options.texi) for a description of this file's format. |
d7b42618 NB |
22 | |
23 | ; Please try to keep this file in ASCII collating order. | |
24 | ||
e90afde6 JM |
25 | Variable |
26 | int target_flags | |
27 | ||
46625112 JM |
28 | Variable |
29 | int optimize | |
30 | ||
31 | Variable | |
32 | int optimize_size | |
33 | ||
bf7a7185 RG |
34 | Variable |
35 | int optimize_debug | |
36 | ||
0a8134ca JM |
37 | ; Not used directly to control optimizations, only to save -Ofast |
38 | ; setting for "optimize" attributes. | |
39 | Variable | |
40 | int optimize_fast | |
41 | ||
a7d0d30f JM |
42 | ; True if this is the lto front end. This is used to disable gimple |
43 | ; generation and lowering passes that are normally run on the output | |
44 | ; of a front end. These passes must be bypassed for lto since they | |
45 | ; have already been done before the gimple was written. | |
46 | Variable | |
47 | bool in_lto_p = false | |
48 | ||
1ff9ed6f | 49 | ; This variable is set to non-0 only by LTO front-end. 1 indicates that |
46a27415 | 50 | ; the output produced will be used for incremental linking (thus weak symbols |
5b42d196 JH |
51 | ; can still be bound) and 2 indicates that the IL is going to be linked and |
52 | ; and output to LTO object file. | |
1ff9ed6f | 53 | Variable |
5b42d196 | 54 | enum incremental_link flag_incremental_link = INCREMENTAL_LINK_NONE |
1ff9ed6f | 55 | |
a75bfaa6 JM |
56 | ; 0 means straightforward implementation of complex divide acceptable. |
57 | ; 1 means wide ranges of inputs must work for complex divide. | |
58 | ; 2 means C99-like requirements for complex multiply and divide. | |
59 | Variable | |
60 | int flag_complex_method = 1 | |
61 | ||
a64697d7 ML |
62 | Variable |
63 | int flag_default_complex_method = 1 | |
64 | ||
a75bfaa6 JM |
65 | ; Language specific warning pass for unused results. |
66 | Variable | |
67 | bool flag_warn_unused_result = false | |
68 | ||
d5478783 JM |
69 | ; Nonzero if we should write GIMPLE bytecode for link-time optimization. |
70 | Variable | |
71 | int flag_generate_lto | |
72 | ||
f0d78df9 IV |
73 | ; Nonzero if we should write GIMPLE bytecode for offload compilation. |
74 | Variable | |
75 | int flag_generate_offload = 0 | |
76 | ||
d5478783 JM |
77 | ; Nonzero means we should be saving declaration info into a .X file. |
78 | Variable | |
79 | int flag_gen_aux_info = 0 | |
80 | ||
81 | ; Nonzero if we are compiling code for a shared library, zero for | |
82 | ; executable. | |
83 | Variable | |
84 | int flag_shlib | |
85 | ||
a1ad0d84 | 86 | ; These three are really VEC(char_p,heap) *. |
6a1f6c9c JM |
87 | |
88 | Variable | |
89 | void *flag_instrument_functions_exclude_functions | |
90 | ||
91 | Variable | |
92 | void *flag_instrument_functions_exclude_files | |
93 | ||
a1ad0d84 MP |
94 | Variable |
95 | void *flag_ignored_attributes | |
96 | ||
69ccdddb JM |
97 | ; Generic structs (e.g. templates not explicitly specialized) |
98 | ; may not have a compilation unit associated with them, and so | |
99 | ; may need to be treated differently from ordinary structs. | |
100 | ; | |
101 | ; Structs only handled by reference (indirectly), will also usually | |
102 | ; not need as much debugging information. | |
103 | ||
104 | Variable | |
105 | enum debug_struct_file debug_struct_ordinary[DINFO_USAGE_NUM_ENUMS] = { DINFO_STRUCT_FILE_ANY, DINFO_STRUCT_FILE_ANY, DINFO_STRUCT_FILE_ANY } | |
106 | ||
107 | Variable | |
108 | enum debug_struct_file debug_struct_generic[DINFO_USAGE_NUM_ENUMS] = { DINFO_STRUCT_FILE_ANY, DINFO_STRUCT_FILE_ANY, DINFO_STRUCT_FILE_ANY } | |
109 | ||
0576d21f JM |
110 | ; True if we should exit after parsing options. |
111 | Variable | |
112 | bool exit_after_options | |
113 | ||
114 | ; Type(s) of debugging information we are producing (if any). See | |
115 | ; flag-types.h for the definitions of the different possible types of | |
116 | ; debugging information. | |
117 | Variable | |
459d84e9 | 118 | uint32_t write_symbols = NO_DEBUG |
0576d21f JM |
119 | |
120 | ; Level of debugging information we are producing. See flag-types.h | |
121 | ; for the definitions of the different possible levels. | |
122 | Variable | |
123 | enum debug_info_levels debug_info_level = DINFO_LEVEL_NONE | |
124 | ||
b7e215a8 IB |
125 | ; Level of CTF debugging information we are producing. See flag-types.h |
126 | ; for the definitions of the different possible levels. | |
127 | Variable | |
128 | enum ctf_debug_info_levels ctf_debug_info_level = CTFINFO_LEVEL_NONE | |
129 | ||
299404a1 JM |
130 | ; Original value of maximum field alignment in bytes, specified via |
131 | ; -fpack-struct=<value>. | |
132 | Variable | |
133 | unsigned int initial_max_fld_align = TARGET_DEFAULT_PACK_STRUCT | |
134 | ||
5e471ea6 JM |
135 | ; Type of stack check. |
136 | Variable | |
137 | enum stack_check_type flag_stack_check = NO_STACK_CHECK | |
138 | ||
a11e0df4 EB |
139 | ; True if stack usage information needs to be computed. |
140 | Variable | |
141 | bool flag_stack_usage_info = false | |
142 | ||
299404a1 JM |
143 | ; -dA causes debug commentary information to be produced in |
144 | ; the generated assembly code (to make it more readable). This option | |
145 | ; is generally only of use to those who actually need to read the | |
146 | ; generated assembly code (perhaps while debugging the compiler itself). | |
e53b6e56 | 147 | ; Currently, this switch is only used by dwarf2out.cc; however, it is intended |
299404a1 JM |
148 | ; to be a catchall for printing debug information in the assembler file. |
149 | Variable | |
150 | int flag_debug_asm | |
151 | ||
6592d14b PMR |
152 | ; Balance between GNAT encodings and standard DWARF to emit. |
153 | Variable | |
154 | enum dwarf_gnat_encodings gnat_encodings = DWARF_GNAT_ENCODINGS_DEFAULT | |
155 | ||
299404a1 JM |
156 | ; -dP causes the rtl to be emitted as a comment in assembly. |
157 | Variable | |
158 | int flag_dump_rtl_in_asm | |
159 | ||
160 | ; Whether -da was passed (used only in handle_common_deferred_options). | |
161 | Variable | |
162 | bool flag_dump_all_passed | |
163 | ||
164 | ; Other flags saying which kinds of debugging dump have been requested. | |
165 | ||
166 | Variable | |
167 | int rtl_dump_and_exit | |
168 | ||
169 | Variable | |
170 | int flag_print_asm_name | |
171 | ||
a803773f JM |
172 | ; Name of top-level original source file (what was input to cpp). |
173 | ; This comes from the #-command at the beginning of the actual input. | |
174 | ; If there isn't any there, then this is the cc1 input file name. | |
175 | Variable | |
176 | const char *main_input_filename | |
177 | ||
178 | ; Pointer to base name in main_input_filename, with directories and a | |
179 | ; single final extension removed, and the length of this base | |
180 | ; name. | |
181 | ||
182 | Variable | |
183 | const char *main_input_basename | |
184 | ||
185 | Variable | |
186 | int main_input_baselength | |
187 | ||
1dedc12d AO |
188 | ; The base name used for auxiliary output files. |
189 | ; dump_base_name minus dump_base_ext. | |
190 | ||
191 | Variable | |
192 | const char *aux_base_name | |
193 | ||
299404a1 JM |
194 | ; Which options have been printed by --help. |
195 | Variable | |
196 | char *help_printed | |
197 | ||
e6d4b984 JM |
198 | ; Which enums have been printed by --help. 0 = not printed, no |
199 | ; relevant options seen, 1 = relevant option seen, not yet printed, 2 | |
200 | ; = printed. | |
201 | Variable | |
202 | char *help_enum_printed | |
203 | ||
299404a1 JM |
204 | ; The number of columns for --help output. |
205 | Variable | |
206 | unsigned int help_columns | |
207 | ||
208 | ; Whether this options structure has been through finish_options | |
209 | Variable | |
210 | bool flag_opts_finished | |
211 | ||
de5a5fa1 MP |
212 | ; What the sanitizer should instrument |
213 | Variable | |
214 | unsigned int flag_sanitize | |
215 | ||
d95a2703 JJ |
216 | ; What sanitizers should recover from errors |
217 | Variable | |
3bd87832 | 218 | unsigned int flag_sanitize_recover = (SANITIZE_UNDEFINED | SANITIZE_UNDEFINED_NONDEFAULT | SANITIZE_KERNEL_ADDRESS | SANITIZE_KERNEL_HWADDRESS) & ~(SANITIZE_UNREACHABLE | SANITIZE_RETURN) |
d95a2703 | 219 | |
2c7cfc7b JJ |
220 | ; What sanitizers should use __builtin_trap () instead of runtime diagnostics |
221 | Variable | |
222 | unsigned int flag_sanitize_trap | |
223 | ||
91035653 JJ |
224 | ; Flag whether a prefix has been added to dump_base_name |
225 | Variable | |
226 | bool dump_base_name_prefixed = false | |
227 | ||
d10f3e90 | 228 | ; What subset of registers should be zeroed on function return |
229 | Variable | |
230 | unsigned int flag_zero_call_used_regs | |
231 | ||
603349bf JM |
232 | ### |
233 | Driver | |
234 | ||
e200444e JM |
235 | -assemble |
236 | Driver Alias(S) | |
237 | ||
238 | -compile | |
239 | Driver Alias(c) | |
240 | ||
d86c7648 ML |
241 | -completion= |
242 | Common Driver Joined Undocumented | |
243 | Provide bash completion for options starting with provided string. | |
244 | ||
e200444e JM |
245 | -coverage |
246 | Driver Alias(coverage) | |
247 | ||
248 | -debug | |
249 | Common Alias(g) | |
250 | ||
251 | -dump | |
252 | Common Separate Alias(d) | |
253 | ||
254 | -dump= | |
255 | Common Joined Alias(d) | |
256 | ||
257 | -dumpbase | |
1dedc12d AO |
258 | Driver Common Separate Alias(dumpbase) |
259 | ||
260 | -dumpbase-ext | |
261 | Driver Common Separate Alias(dumpbase-ext) | |
e200444e JM |
262 | |
263 | -dumpdir | |
1dedc12d | 264 | Driver Common Separate Alias(dumpdir) |
e200444e JM |
265 | |
266 | -entry | |
267 | Driver Separate Alias(e) | |
268 | ||
269 | -entry= | |
270 | Driver Joined Alias(e) | |
271 | ||
272 | -extra-warnings | |
273 | Common Warning Alias(Wextra) | |
274 | ||
275 | -for-assembler | |
276 | Driver Separate Alias(Xassembler) | |
277 | ||
278 | -for-assembler= | |
279 | Driver JoinedOrMissing Alias(Xassembler) | |
280 | ||
281 | -for-linker | |
282 | Driver Separate Alias(Xlinker) | |
283 | ||
284 | -for-linker= | |
285 | Driver JoinedOrMissing Alias(Xlinker) | |
286 | ||
287 | -force-link | |
288 | Driver Separate Alias(u) | |
289 | ||
290 | -force-link= | |
291 | Driver Joined Alias(u) | |
292 | ||
d185d268 | 293 | -help |
e200444e | 294 | Common Driver Var(help_flag) |
a7b2e184 | 295 | Display this information. |
d185d268 | 296 | |
c662432e | 297 | -help= |
eece52b5 | 298 | Common Driver Joined |
a7b2e184 | 299 | --help=<class> Display descriptions of a specific class of options. <class> is one or more of optimizers, target, warnings, undocumented, params. |
903caebf | 300 | |
e200444e JM |
301 | -language |
302 | Driver Separate Alias(x) | |
303 | ||
304 | -language= | |
305 | Driver Joined Alias(x) | |
306 | ||
307 | -library-directory | |
308 | Driver Separate Alias(L) | |
309 | ||
310 | -library-directory= | |
311 | Driver Joined Alias(L) | |
312 | ||
313 | -no-canonical-prefixes | |
314 | Driver Alias(no-canonical-prefixes) | |
315 | ||
316 | -no-standard-libraries | |
317 | Driver Alias(nostdlib) | |
318 | ||
28b4fc51 JM |
319 | -no-sysroot-suffix |
320 | Driver Var(no_sysroot_suffix) | |
321 | ||
e200444e JM |
322 | -no-warnings |
323 | Common Alias(w) | |
324 | ||
325 | -optimize | |
326 | Common Alias(O) | |
327 | ||
328 | -output | |
329 | Common Driver Separate Alias(o) MissingArgError(missing filename after %qs) | |
330 | ||
331 | -output= | |
332 | Common Driver Joined Alias(o) MissingArgError(missing filename after %qs) | |
333 | ||
334 | -pass-exit-codes | |
335 | Driver Alias(pass-exit-codes) | |
336 | ||
337 | -pedantic | |
c1771a20 | 338 | Common Alias(Wpedantic) |
e200444e JM |
339 | |
340 | -pedantic-errors | |
341 | Common Alias(pedantic-errors) | |
342 | ||
343 | -pie | |
5460e1fc | 344 | Driver Alias(pie) |
e200444e | 345 | |
b4fed890 L |
346 | -static-pie |
347 | Driver Alias(static-pie) | |
348 | ||
e200444e JM |
349 | -pipe |
350 | Driver Alias(pipe) | |
351 | ||
352 | -prefix | |
353 | Driver Separate Alias(B) | |
354 | ||
355 | -prefix= | |
356 | Driver JoinedOrMissing Alias(B) | |
357 | ||
358 | -preprocess | |
359 | Driver Alias(E) | |
360 | ||
361 | -print-file-name | |
362 | Driver Separate Alias(print-file-name=) | |
363 | ||
364 | -print-file-name= | |
365 | Driver JoinedOrMissing Alias(print-file-name=) | |
366 | ||
367 | -print-libgcc-file-name | |
368 | Driver Alias(print-libgcc-file-name) | |
369 | ||
370 | -print-multi-directory | |
371 | Driver Alias(print-multi-directory) | |
372 | ||
373 | -print-multi-lib | |
374 | Driver Alias(print-multi-lib) | |
375 | ||
376 | -print-multi-os-directory | |
377 | Driver Alias(print-multi-os-directory) | |
378 | ||
e0cdc09f MK |
379 | -print-multiarch |
380 | Driver Alias(print-multiarch) | |
381 | ||
e200444e JM |
382 | -print-prog-name |
383 | Driver Separate Alias(print-prog-name=) | |
384 | ||
385 | -print-prog-name= | |
386 | Driver JoinedOrMissing Alias(print-prog-name=) | |
387 | ||
388 | -print-search-dirs | |
389 | Driver Alias(print-search-dirs) | |
390 | ||
391 | -print-sysroot | |
392 | Driver Alias(print-sysroot) | |
393 | ||
394 | -print-sysroot-headers-suffix | |
395 | Driver Alias(print-sysroot-headers-suffix) | |
396 | ||
397 | -profile | |
398 | Common Alias(p) | |
399 | ||
400 | -save-temps | |
401 | Driver Alias(save-temps) | |
402 | ||
403 | -shared | |
5460e1fc | 404 | Driver Alias(shared) |
e200444e JM |
405 | |
406 | -specs | |
407 | Driver Separate Alias(specs=) | |
408 | ||
409 | -specs= | |
410 | Driver Joined Alias(specs=) | |
411 | ||
412 | -static | |
413 | Driver Alias(static) | |
414 | ||
415 | -symbolic | |
416 | Driver Alias(symbolic) | |
417 | ||
d185d268 | 418 | -target-help |
603349bf | 419 | Common Driver |
717b2d41 | 420 | Display target specific command line options (including assembler and linker options). |
c662432e | 421 | |
e200444e JM |
422 | -time |
423 | Driver Alias(time) | |
424 | ||
425 | -verbose | |
426 | Driver Alias(v) | |
427 | ||
428 | ;; The driver used to convert options such as --help into forms such | |
429 | ;; as -fhelp; the following four entries are for compatibility with | |
430 | ;; any direct uses of those (undocumented) -f forms | |
c662432e | 431 | fhelp |
e200444e | 432 | Common Driver Alias(-help) |
c662432e NC |
433 | |
434 | fhelp= | |
e200444e | 435 | Common Driver Joined Alias(-help=) |
c662432e NC |
436 | |
437 | ftarget-help | |
e200444e | 438 | Common Driver Alias(-target-help) |
c662432e | 439 | |
41fd0f9b | 440 | fversion |
e200444e | 441 | Common Driver Alias(-version) |
41fd0f9b | 442 | |
e200444e JM |
443 | -sysroot |
444 | Driver Separate Alias(-sysroot=) | |
445 | ||
603349bf JM |
446 | -sysroot= |
447 | Driver JoinedOrMissing | |
448 | ||
d185d268 | 449 | -version |
603349bf JM |
450 | Common Driver |
451 | ||
452 | B | |
453 | Driver Joined Separate | |
454 | ||
455 | E | |
456 | Driver | |
d185d268 | 457 | |
d9d16a19 JM |
458 | L |
459 | Driver Joined Separate | |
460 | ||
dd9f93dc JM |
461 | N |
462 | Driver | |
463 | ||
903caebf | 464 | O |
ab442df7 | 465 | Common JoinedOrMissing Optimization |
a7b2e184 | 466 | -O<number> Set optimization level to <number>. |
903caebf NB |
467 | |
468 | Os | |
ab442df7 | 469 | Common Optimization |
a7b2e184 | 470 | Optimize for space rather than speed. |
903caebf | 471 | |
be6d3f0e RG |
472 | Ofast |
473 | Common Optimization | |
a7b2e184 | 474 | Optimize for speed disregarding exact standards compliance. |
be6d3f0e | 475 | |
bf7a7185 RG |
476 | Og |
477 | Common Optimization | |
a7b2e184 | 478 | Optimize for debugging experience rather than speed or size. |
bf7a7185 | 479 | |
e742722f RS |
480 | Oz |
481 | Common Optimization | |
482 | Optimize for space aggressively rather than speed. | |
483 | ||
dd9f93dc JM |
484 | Q |
485 | Driver | |
486 | ||
487 | Qn | |
488 | Driver Negative(Qy) | |
489 | ||
490 | Qy | |
491 | Driver Negative(Qn) | |
492 | ||
6d721f67 JM |
493 | R |
494 | Driver Joined Separate | |
495 | ||
603349bf JM |
496 | S |
497 | Driver | |
498 | ||
6d721f67 JM |
499 | T |
500 | Driver Joined Separate | |
501 | ||
502 | Tbss | |
503 | Driver Separate | |
504 | ||
e69d7376 JM |
505 | Tbss= |
506 | Driver Joined | |
507 | ||
6d721f67 JM |
508 | Tdata |
509 | Driver Separate | |
510 | ||
e69d7376 JM |
511 | Tdata= |
512 | Driver Joined | |
513 | ||
6d721f67 JM |
514 | Ttext |
515 | Driver Separate | |
516 | ||
e69d7376 JM |
517 | Ttext= |
518 | Driver Joined | |
519 | ||
903caebf | 520 | W |
5de8299c | 521 | Common RejectNegative Warning Alias(Wextra) |
a7b2e184 | 522 | This switch is deprecated; use -Wextra instead. |
903caebf | 523 | |
603349bf | 524 | Wa, |
9ed32e27 | 525 | Driver JoinedOrMissing RejectNegative |
603349bf JM |
526 | |
527 | Wl, | |
9ed32e27 | 528 | Driver JoinedOrMissing RejectNegative |
603349bf JM |
529 | |
530 | Wp, | |
9ed32e27 | 531 | Driver JoinedOrMissing RejectNegative |
603349bf | 532 | |
e01cc6dc | 533 | Waggregate-return |
c662432e | 534 | Common Var(warn_aggregate_return) Warning |
a7b2e184 | 535 | Warn about returning structures, unions or arrays. |
e01cc6dc | 536 | |
fbd28bc3 JJ |
537 | Waggressive-loop-optimizations |
538 | Common Var(warn_aggressive_loop_optimizations) Init(1) Warning | |
a7b2e184 | 539 | Warn if a loop with constant number of iterations triggers undefined behavior. |
fbd28bc3 | 540 | |
590b1f2d | 541 | Warray-bounds |
21af5cdf | 542 | Common Var(warn_array_bounds) Warning |
a7b2e184 | 543 | Warn if an array is accessed out of bounds. |
590b1f2d | 544 | |
de1b5c17 | 545 | Warray-bounds= |
63010089 | 546 | Common Joined RejectNegative UInteger Var(warn_array_bounds) Warning IntegerRange(0, 2) |
a7b2e184 | 547 | Warn if an array is accessed out of bounds. |
de1b5c17 | 548 | |
671a2836 MS |
549 | Wuse-after-free |
550 | Common Var(warn_use_after_free) Warning | |
dc898b2b | 551 | Warn for uses of pointers to deallocated storage. |
671a2836 MS |
552 | |
553 | Wuse-after-free= | |
554 | Common Joined RejectNegative UInteger Var(warn_use_after_free) Warning IntegerRange(0, 3) | |
dc898b2b | 555 | Warn for uses of pointers to deallocated storage. |
671a2836 | 556 | |
5c498b10 | 557 | Wattributes |
c662432e | 558 | Common Var(warn_attributes) Init(1) Warning |
a7b2e184 | 559 | Warn about inappropriate attribute usage. |
5c498b10 | 560 | |
a1ad0d84 MP |
561 | Wattributes= |
562 | Common Joined | |
563 | Do not warn about specified attributes. | |
564 | ||
5ebfd62b BE |
565 | Wattribute-alias |
566 | Common Alias(Wattribute_alias=, 1, 0) Warning | |
d3a02ae5 | 567 | Warn about type safety and similar errors and mismatches in declarations with alias attributes. |
5ebfd62b | 568 | |
79a2c428 MS |
569 | Wattribute-alias= |
570 | Common Joined RejectNegative UInteger Var(warn_attribute_alias) Init(1) Warning IntegerRange(0, 2) | |
d3a02ae5 | 571 | Warn about type safety and similar errors and mismatches in declarations with alias attributes. |
79a2c428 | 572 | |
6902799c IL |
573 | Wcannot-profile |
574 | Common Var(warn_cannot_profile) Init(1) Warning | |
575 | Warn when profiling instrumentation was requested, but could not be applied to | |
576 | a certain function. | |
577 | ||
e01cc6dc | 578 | Wcast-align |
c662432e | 579 | Common Var(warn_cast_align) Warning |
a7b2e184 | 580 | Warn about pointer casts which increase alignment. |
e01cc6dc | 581 | |
1d933576 BE |
582 | Wcast-align=strict |
583 | Common Var(warn_cast_align,2) Warning | |
584 | Warn about pointer casts which increase alignment. | |
585 | ||
87cf0651 SB |
586 | Wcpp |
587 | Common Var(warn_cpp) Init(1) Warning | |
a7b2e184 | 588 | Warn when a #warning directive is encountered. |
87cf0651 | 589 | |
e217792b NM |
590 | Wattribute-warning |
591 | Common Var(warn_attribute_warning) Init(1) Warning | |
592 | Warn about uses of __attribute__((warning)) declarations. | |
593 | ||
99063eee RS |
594 | Wdeprecated |
595 | Common Var(warn_deprecated) Init(1) Warning | |
596 | Warn if a deprecated compiler feature, class, method, or field is used. | |
597 | ||
e01cc6dc | 598 | Wdeprecated-declarations |
c662432e | 599 | Common Var(warn_deprecated_decl) Init(1) Warning |
a7b2e184 | 600 | Warn about uses of __attribute__((deprecated)) declarations. |
e01cc6dc NB |
601 | |
602 | Wdisabled-optimization | |
c662432e | 603 | Common Var(warn_disabled_optimization) Warning |
a7b2e184 | 604 | Warn when an optimization pass is disabled. |
e01cc6dc NB |
605 | |
606 | Werror | |
50431bc4 | 607 | Common Var(warnings_are_errors) |
a7b2e184 | 608 | Treat all warnings as errors. |
e01cc6dc | 609 | |
79cf5994 DD |
610 | Werror= |
611 | Common Joined | |
a7b2e184 | 612 | Treat specified warning as error. |
79cf5994 | 613 | |
903caebf | 614 | Wextra |
62a67c94 | 615 | Common Var(extra_warnings) Warning |
a7b2e184 | 616 | Print extra (possibly unwanted) warnings. |
903caebf | 617 | |
c65a01af | 618 | Wfatal-errors |
50431bc4 | 619 | Common Var(flag_fatal_errors) |
a7b2e184 | 620 | Exit on the first error occurred. |
c65a01af | 621 | |
a214518f | 622 | Wframe-larger-than= |
00abf86c MS |
623 | Common RejectNegative Joined Host_Wide_Int ByteSize Warning Var(warn_frame_larger_than_size) Init(HOST_WIDE_INT_MAX) |
624 | -Wframe-larger-than=<byte-size> Warn if a function's stack frame requires in excess of <byte-size>. | |
a214518f | 625 | |
ae962e57 MS |
626 | Wno-frame-larger-than |
627 | Common Alias(Wframe-larger-than=,18446744073709551615EiB,none) Warning | |
628 | Disable -Wframe-larger-than= warning. Equivalent to -Wframe-larger-than=<SIZE_MAX> or larger. | |
629 | ||
a3a704a4 MH |
630 | Wfree-nonheap-object |
631 | Common Var(warn_free_nonheap_object) Init(1) Warning | |
a7b2e184 | 632 | Warn when attempting to free a non-heap object. |
a3a704a4 | 633 | |
b2b40051 | 634 | Whsa |
c56684fd MJ |
635 | Common Ignore Warning |
636 | Does nothing. Preserved for backward compatibility. | |
b2b40051 | 637 | |
81fea426 | 638 | Wimplicit-fallthrough |
70f6d5e1 JJ |
639 | Common Alias(Wimplicit-fallthrough=,3,0) Warning |
640 | ||
641 | Wimplicit-fallthrough= | |
63010089 | 642 | Common Var(warn_implicit_fallthrough) RejectNegative Joined UInteger Warning IntegerRange(0, 5) |
81fea426 MP |
643 | Warn when a switch case falls through. |
644 | ||
30ba058f MS |
645 | Winfinite-recursion |
646 | Var(warn_infinite_recursion) Warning | |
647 | Warn for infinitely recursive calls. | |
648 | ||
e01cc6dc | 649 | Winline |
a924bffb | 650 | Common Var(warn_inline) Warning Optimization |
a7b2e184 | 651 | Warn when an inlined function cannot be inlined. |
e01cc6dc | 652 | |
86951993 AM |
653 | Winvalid-memory-model |
654 | Common Var(warn_invalid_memory_model) Init(1) Warning | |
655 | Warn when an atomic memory model parameter is known to be outside the valid range. | |
656 | ||
e01cc6dc | 657 | Wlarger-than- |
5de8299c | 658 | Common RejectNegative Joined Warning Undocumented Alias(Wlarger-than=) |
e8fc888d MLI |
659 | |
660 | Wlarger-than= | |
00abf86c MS |
661 | Common RejectNegative Joined Host_Wide_Int ByteSize Warning Var(warn_larger_than_size) Init(HOST_WIDE_INT_MAX) |
662 | -Wlarger-than=<byte-size> Warn if an object's size exceeds <byte-size>. | |
e01cc6dc | 663 | |
ae962e57 MS |
664 | Wno-larger-than |
665 | Common Alias(Wlarger-than=,18446744073709551615EiB,none) Warning | |
666 | Disable -Wlarger-than= warning. Equivalent to -Wlarger-than=<SIZE_MAX> or larger. | |
667 | ||
bf14eba2 JJ |
668 | Wnonnull-compare |
669 | Var(warn_nonnull_compare) Warning | |
670 | Warn if comparing pointer parameter with nonnull attribute with NULL. | |
671 | ||
76787f70 | 672 | Wnull-dereference |
c2d89095 | 673 | Common Var(warn_null_dereference) Warning |
a7b2e184 | 674 | Warn if dereferencing a NULL pointer may lead to erroneous or undefined behavior. |
76787f70 | 675 | |
f9cc1a70 | 676 | Wunsafe-loop-optimizations |
ee79110c JJ |
677 | Common Ignore Warning |
678 | Does nothing. Preserved for backward compatibility. | |
f9cc1a70 | 679 | |
e01cc6dc | 680 | Wmissing-noreturn |
54d62f51 | 681 | Common Warning Alias(Wsuggest-attribute=noreturn) |
e01cc6dc | 682 | |
c59f7203 | 683 | Wodr |
a0fd3373 | 684 | Common Var(warn_odr_violations) Init(1) Warning |
a7b2e184 | 685 | Warn about some C++ One Definition Rule violations during link time optimization. |
c59f7203 | 686 | |
71834ad3 | 687 | Woverflow |
c662432e | 688 | Common Var(warn_overflow) Init(1) Warning |
a7b2e184 | 689 | Warn about overflow in arithmetic expressions. |
71834ad3 | 690 | |
259d29e3 JH |
691 | Wlto-type-mismatch |
692 | Common Var(warn_lto_type_mismatch) Init(1) Warning | |
a7b2e184 | 693 | During link time optimization warn about mismatched types of global declarations. |
259d29e3 | 694 | |
e01cc6dc | 695 | Wpacked |
c662432e | 696 | Common Var(warn_packed) Warning |
a7b2e184 | 697 | Warn when the packed attribute has no effect on struct layout. |
e01cc6dc NB |
698 | |
699 | Wpadded | |
c662432e | 700 | Common Var(warn_padded) Warning |
a7b2e184 | 701 | Warn when padding is required to align structure members. |
e01cc6dc | 702 | |
c1771a20 | 703 | Wpedantic |
2b71f4a4 | 704 | Common Var(pedantic) Init(0) Warning |
a7b2e184 | 705 | Issue warnings needed for strict compliance to the standard. |
c1771a20 | 706 | |
b4dfdc11 MG |
707 | Wreturn-local-addr |
708 | Common Var(warn_return_local_addr) Init(1) Warning | |
709 | Warn about returning a pointer/reference to a local or temporary variable. | |
710 | ||
e01cc6dc | 711 | Wshadow |
c662432e | 712 | Common Var(warn_shadow) Warning |
84ff4775 LCW |
713 | Warn when one variable shadows another. Same as -Wshadow=global. |
714 | ||
715 | Wshadow=global | |
716 | Common Warning Alias(Wshadow) | |
717 | Warn when one variable shadows another (globally). | |
718 | ||
719 | Wshadow=local | |
720 | Common Var(warn_shadow_local) Warning EnabledBy(Wshadow) | |
721 | Warn when one local variable shadows another local variable or parameter. | |
722 | ||
723 | Wshadow-local | |
724 | Common Warning Undocumented Alias(Wshadow=local) | |
725 | ||
726 | Wshadow=compatible-local | |
727 | Common Var(warn_shadow_compatible_local) Warning EnabledBy(Wshadow=local) | |
728 | Warn when one local variable shadows another local variable or parameter of compatible type. | |
729 | ||
730 | Wshadow-compatible-local | |
731 | Common Warning Undocumented Alias(Wshadow=compatible-local) | |
e01cc6dc | 732 | |
7d69de61 | 733 | Wstack-protector |
c662432e | 734 | Common Var(warn_stack_protect) Warning |
a7b2e184 | 735 | Warn when not issuing stack smashing protection for some reason. |
7d69de61 | 736 | |
a11e0df4 | 737 | Wstack-usage= |
00abf86c MS |
738 | Common Joined RejectNegative Host_Wide_Int ByteSize Var(warn_stack_usage) Warning Init(HOST_WIDE_INT_MAX) |
739 | -Wstack-usage=<byte-size> Warn if stack usage might exceed <byte-size>. | |
a11e0df4 | 740 | |
ae962e57 MS |
741 | Wno-stack-usage |
742 | Common Alias(Wstack-usage=,18446744073709551615EiB,none) Warning | |
743 | Disable Wstack-usage= warning. Equivalent to Wstack-usage=<SIZE_MAX> or larger. | |
744 | ||
e01cc6dc | 745 | Wstrict-aliasing |
c662432e | 746 | Common Warning |
a7b2e184 | 747 | Warn about code which might break strict aliasing rules. |
e01cc6dc | 748 | |
5399d643 | 749 | Wstrict-aliasing= |
65d4f2cd | 750 | Common Joined RejectNegative UInteger Var(warn_strict_aliasing) Warning |
a7b2e184 | 751 | Warn about code which might break strict aliasing rules. |
5399d643 | 752 | |
6ac01510 | 753 | Wstrict-overflow |
21af5cdf | 754 | Common Warning |
a7b2e184 | 755 | Warn about optimizations that assume that signed overflow is undefined. |
6ac01510 ILT |
756 | |
757 | Wstrict-overflow= | |
65d4f2cd | 758 | Common Joined RejectNegative UInteger Var(warn_strict_overflow) Warning |
a7b2e184 | 759 | Warn about optimizations that assume that signed overflow is undefined. |
6ac01510 | 760 | |
12b9f3ac JH |
761 | Wsuggest-attribute=cold |
762 | Common Var(warn_suggest_attribute_cold) Warning | |
763 | Warn about functions which might be candidates for __attribute__((cold)). | |
764 | ||
5dc16b19 MLI |
765 | Wsuggest-attribute=const |
766 | Common Var(warn_suggest_attribute_const) Warning | |
a7b2e184 | 767 | Warn about functions which might be candidates for __attribute__((const)). |
5dc16b19 MLI |
768 | |
769 | Wsuggest-attribute=pure | |
770 | Common Var(warn_suggest_attribute_pure) Warning | |
a7b2e184 | 771 | Warn about functions which might be candidates for __attribute__((pure)). |
5dc16b19 | 772 | |
7ea6b6cf JH |
773 | Wsuggest-attribute=noreturn |
774 | Common Var(warn_suggest_attribute_noreturn) Warning | |
a7b2e184 | 775 | Warn about functions which might be candidates for __attribute__((noreturn)). |
7ea6b6cf | 776 | |
0fab169b PK |
777 | Wsuggest-attribute=malloc |
778 | Common Var(warn_suggest_attribute_malloc) Warning | |
779 | Warn about functions which might be candidates for __attribute__((malloc)). | |
780 | ||
91bc34a9 JH |
781 | Wsuggest-final-types |
782 | Common Var(warn_suggest_final_types) Warning | |
a7b2e184 | 783 | Warn about C++ polymorphic types where adding final keyword would improve code quality. |
91bc34a9 JH |
784 | |
785 | Wsuggest-final-methods | |
786 | Common Var(warn_suggest_final_methods) Warning | |
a7b2e184 | 787 | Warn about C++ virtual methods where adding final keyword would improve code quality. |
91bc34a9 | 788 | |
a7dc5980 MP |
789 | Wswitch-unreachable |
790 | Common Var(warn_switch_unreachable) Warning Init(1) | |
791 | Warn about statements between switch's controlling expression and the first | |
792 | case. | |
793 | ||
e01cc6dc | 794 | Wsystem-headers |
c662432e | 795 | Common Var(warn_system_headers) Warning |
a7b2e184 | 796 | Do not suppress warnings from system headers. |
e01cc6dc | 797 | |
8ffadef9 MG |
798 | Wtrampolines |
799 | Common Var(warn_trampolines) Warning | |
a7b2e184 | 800 | Warn whenever a trampoline is generated. |
8ffadef9 | 801 | |
dbaabd06 QZ |
802 | Wtrivial-auto-var-init |
803 | Common Var(warn_trivial_auto_var_init) Warning Init(0) | |
804 | Warn about cases where -ftrivial-auto-var-init cannot initialize an auto variable. | |
805 | ||
faebccf9 | 806 | Wtype-limits |
95744782 | 807 | Common Var(warn_type_limits) Warning EnabledBy(Wextra) |
a7b2e184 | 808 | Warn if a comparison is always true or always false due to the limited range of the data type. |
faebccf9 | 809 | |
e01cc6dc | 810 | Wuninitialized |
7d5a5747 | 811 | Common Var(warn_uninitialized) Warning EnabledBy(Wextra) |
a7b2e184 | 812 | Warn about uninitialized automatic variables. |
e01cc6dc | 813 | |
2f964ad6 | 814 | Wmaybe-uninitialized |
7d5a5747 | 815 | Common Var(warn_maybe_uninitialized) Warning EnabledBy(Wuninitialized) |
a7b2e184 | 816 | Warn about maybe uninitialized automatic variables. |
2f964ad6 | 817 | |
e01cc6dc | 818 | Wunreachable-code |
f1a62b6f | 819 | Common Ignore Warning |
bc3c12a2 | 820 | Does nothing. Preserved for backward compatibility. |
e01cc6dc | 821 | |
903caebf | 822 | Wunused |
e73f7547 | 823 | Common Var(warn_unused) Init(0) Warning |
a7b2e184 | 824 | Enable all -Wunused- warnings. |
903caebf | 825 | |
ebfbbdc5 | 826 | Wunused-but-set-parameter |
d919140b | 827 | Common Var(warn_unused_but_set_parameter) Warning EnabledBy(Wunused && Wextra) |
a7b2e184 | 828 | Warn when a function parameter is only set, otherwise unused. |
ebfbbdc5 JJ |
829 | |
830 | Wunused-but-set-variable | |
7d5a5747 | 831 | Common Var(warn_unused_but_set_variable) Warning EnabledBy(Wunused) |
a7b2e184 | 832 | Warn when a variable is only set, otherwise unused. |
ebfbbdc5 | 833 | |
e01cc6dc | 834 | Wunused-function |
7d5a5747 | 835 | Common Var(warn_unused_function) Warning EnabledBy(Wunused) |
a7b2e184 | 836 | Warn when a function is unused. |
e01cc6dc NB |
837 | |
838 | Wunused-label | |
7d5a5747 | 839 | Common Var(warn_unused_label) Warning EnabledBy(Wunused) |
a7b2e184 | 840 | Warn when a label is unused. |
e01cc6dc NB |
841 | |
842 | Wunused-parameter | |
d919140b | 843 | Common Var(warn_unused_parameter) Warning EnabledBy(Wunused && Wextra) |
a7b2e184 | 844 | Warn when a function parameter is unused. |
e01cc6dc NB |
845 | |
846 | Wunused-value | |
7d5a5747 | 847 | Common Var(warn_unused_value) Warning EnabledBy(Wunused) |
a7b2e184 | 848 | Warn when an expression value is unused. |
e01cc6dc NB |
849 | |
850 | Wunused-variable | |
7d5a5747 | 851 | Common Var(warn_unused_variable) Warning EnabledBy(Wunused) |
a7b2e184 | 852 | Warn when a variable is unused. |
e01cc6dc | 853 | |
16c1c158 | 854 | Wcoverage-mismatch |
650cfcab | 855 | Common Var(warn_coverage_mismatch) Init(1) Warning |
a7b2e184 | 856 | Warn in case profiles in -fprofile-use do not match. |
16c1c158 | 857 | |
8bf728ae ML |
858 | Wcoverage-invalid-line-number |
859 | Common Var(warn_coverage_invalid_linenum) Init(1) Warning | |
860 | Warn in case a function ends earlier than it begins due to an invalid linenum macros. | |
861 | ||
bc162b0e IB |
862 | Wmissing-profile |
863 | Common Var(warn_missing_profile) Init(1) Warning | |
864 | Warn in case profiles in -fprofile-use do not exist. | |
865 | ||
cdbb5ba3 AS |
866 | Wvector-operation-performance |
867 | Common Var(warn_vector_operation_performance) Warning | |
a7b2e184 | 868 | Warn when a vector operation is compiled outside the SIMD. |
cdbb5ba3 | 869 | |
8833eab4 ML |
870 | Wtsan |
871 | Common Var(warn_tsan) Init(1) Warning | |
872 | Warn about unsupported features in ThreadSanitizer. | |
873 | ||
603349bf JM |
874 | Xassembler |
875 | Driver Separate | |
876 | ||
877 | Xlinker | |
878 | Driver Separate | |
879 | ||
880 | Xpreprocessor | |
881 | Driver Separate | |
882 | ||
dd9f93dc JM |
883 | Z |
884 | Driver | |
885 | ||
d185d268 | 886 | aux-info |
d5478783 | 887 | Common Separate Var(aux_info_file_name) |
a7b2e184 | 888 | -aux-info <file> Emit declaration information into <file>. |
d185d268 NB |
889 | |
890 | aux-info= | |
5de8299c | 891 | Common Joined Alias(aux-info) |
d185d268 | 892 | |
e200444e JM |
893 | coverage |
894 | Driver | |
895 | ||
603349bf JM |
896 | c |
897 | Driver | |
d185d268 NB |
898 | |
899 | d | |
900 | Common Joined | |
a7b2e184 | 901 | -d<letters> Enable dumps from specific passes of the compiler. |
d185d268 NB |
902 | |
903 | dumpbase | |
1dedc12d | 904 | Driver Common Separate Var(dump_base_name) |
a7b2e184 | 905 | -dumpbase <file> Set the file basename to be used for dumps. |
d185d268 | 906 | |
1dedc12d AO |
907 | dumpbase-ext |
908 | Driver Common Separate Var(dump_base_ext) | |
909 | -dumpbase-ext .<ext> Drop a trailing .<ext> from the dump basename to name auxiliary output files. | |
910 | ||
d7fb0a6d | 911 | dumpdir |
1dedc12d | 912 | Driver Common Separate Var(dump_dir_name) |
a7b2e184 | 913 | -dumpdir <dir> Set the directory name to be used for dumps. |
d7fb0a6d | 914 | |
603349bf JM |
915 | dumpmachine |
916 | Driver | |
917 | ||
918 | dumpspecs | |
919 | Driver | |
920 | ||
921 | dumpversion | |
922 | Driver | |
923 | ||
3c36aa6b JJ |
924 | dumpfullversion |
925 | Driver | |
926 | ||
e200444e JM |
927 | e |
928 | Driver Joined Separate | |
929 | ||
fa381cb2 JM |
930 | ; This option has historically been passed down to the linker by an |
931 | ; accident of a %{e*} spec, so ensure it continues to be passed down | |
932 | ; as a single option. The supported option for this purpose is | |
933 | ; -rdynamic. See PR 47390. | |
934 | export-dynamic | |
935 | Driver Undocumented | |
936 | ||
31b66477 KC |
937 | ; The version of the C++ ABI in use. The following values are allowed: |
938 | ; | |
939 | ; 0: The version of the ABI believed most conformant with the C++ ABI | |
940 | ; specification. This ABI may change as bugs are discovered and fixed. | |
941 | ; Therefore, 0 will not necessarily indicate the same ABI in different | |
942 | ; versions of G++. | |
943 | ; | |
90d84934 | 944 | ; 1: The version of the ABI first used in G++ 3.2. No longer selectable. |
31b66477 | 945 | ; |
785f21af JM |
946 | ; 2: The version of the ABI first used in G++ 3.4, and the default |
947 | ; until GCC 4.9. | |
abfe01ce JM |
948 | ; |
949 | ; 3: The version of the ABI that fixes the missing underscore | |
950 | ; in template non-type arguments of pointer type. | |
951 | ; | |
952 | ; 4: The version of the ABI that introduces unambiguous mangling of | |
55af847f | 953 | ; vector types. First selectable in G++ 4.5. |
99a8d35b | 954 | ; |
67e18edb | 955 | ; 5: The version of the ABI that ignores attribute const/noreturn |
55af847f | 956 | ; in function pointer mangling, and corrects mangling of decltype and |
67e18edb | 957 | ; function parameters used in other parameters and the return type. |
55af847f | 958 | ; First selectable in G++ 4.6. |
67e18edb | 959 | ; |
4b6aaa99 JM |
960 | ; 6: The version of the ABI that doesn't promote scoped enums to int and |
961 | ; changes the mangling of template argument packs, const/static_cast, | |
962 | ; prefix ++ and --, and a class scope function used as a template | |
963 | ; argument. | |
967444bb JM |
964 | ; First selectable in G++ 4.7. |
965 | ; | |
622aac0b JM |
966 | ; 7: The version of the ABI that treats nullptr_t as a builtin type and |
967 | ; corrects the mangling of lambdas in default argument scope. | |
a3ddb738 | 968 | ; First selectable in G++ 4.8. |
0861bec8 JM |
969 | ; |
970 | ; 8: The version of the ABI that corrects the substitution behavior of | |
971 | ; function types with function-cv-qualifiers. | |
603eaec4 JM |
972 | ; First selectable in G++ 4.9 and default in G++ 5. |
973 | ; | |
a03c9bf1 JM |
974 | ; 9: The version of the ABI that corrects the alignment of nullptr_t. |
975 | ; First selectable and default in G++ 5.2. | |
976 | ; | |
977 | ; 10: The version of the ABI that mangles attributes that affect type | |
978 | ; identity, such as ia32 calling convention attributes (stdcall, etc.) | |
979 | ; Default in G++ 6 (set in c_common_post_options). | |
0861bec8 | 980 | ; |
31f7f784 JM |
981 | ; 11: The version of the ABI that corrects mangling of sizeof... expressions |
982 | ; and introduces new inheriting constructor handling. | |
34bbc4c5 JM |
983 | ; Default in G++ 7. |
984 | ; | |
f3ec182d | 985 | ; 12: Corrects the calling convention for classes with only deleted copy/move |
974aedcc | 986 | ; constructors and changes passing/returning of empty records. |
34a7a230 JM |
987 | ; Default in G++ 8.1. |
988 | ; | |
989 | ; 13: Fixes the accidental change in 12 to the calling convention for classes | |
990 | ; with deleted copy constructor and trivial move constructor. | |
991 | ; Default in G++ 8.2. | |
b1c9b3c3 | 992 | ; |
e0c866dd KK |
993 | ; 14: Corrects the mangling of nullptr expression. |
994 | ; Default in G++ 10. | |
f3ec182d | 995 | ; |
5f00df59 JM |
996 | ; 15: Corrects G++ 10 ABI tag regression [PR98481]. |
997 | ; Available, but not default, in G++ 10.3. | |
998 | ; | |
999 | ; 16: Changes the mangling of __alignof__ to be distinct from that of alignof. | |
1000 | ; Adds missing 'on' in mangling of operator names in some cases. | |
b1c9b3c3 PP |
1001 | ; Default in G++ 11. |
1002 | ; | |
a37e8ce3 JM |
1003 | ; 17: Fixes layout of classes that inherit from aggregate classes with default |
1004 | ; member initializers in C++14 and up. | |
1005 | ; Default in G++ 12. | |
1006 | ; | |
c7cb239f NS |
1007 | ; 18: Corrects errors in mangling of lambdas with additional context. |
1008 | ; Default in G++ 13. | |
1009 | ; | |
31b66477 KC |
1010 | ; Additional positive integers will be assigned as new versions of |
1011 | ; the ABI become the default version of the ABI. | |
57782ad8 | 1012 | fabi-version= |
ca0e51a0 | 1013 | Common Joined RejectNegative UInteger Var(flag_abi_version) Init(0) |
a7b2e184 | 1014 | The version of the C++ ABI in use. |
57782ad8 | 1015 | |
6e616110 | 1016 | faggressive-loop-optimizations |
eece52b5 | 1017 | Common Var(flag_aggressive_loop_optimizations) Optimization Init(1) |
a7b2e184 | 1018 | Aggressively optimize loops using language constraints. |
6e616110 | 1019 | |
6ff3a151 | 1020 | falign-functions |
eece52b5 | 1021 | Common Var(flag_align_functions) Optimization |
a7b2e184 | 1022 | Align the start of functions. |
6ff3a151 | 1023 | |
058de654 | 1024 | falign-functions= |
c518c102 | 1025 | Common RejectNegative Joined Var(str_align_functions) Optimization |
058de654 | 1026 | |
8cac4d85 | 1027 | flimit-function-alignment |
eece52b5 | 1028 | Common Var(flag_limit_function_alignment) Optimization Init(0) |
8cac4d85 | 1029 | |
6ff3a151 | 1030 | falign-jumps |
eece52b5 | 1031 | Common Var(flag_align_jumps) Optimization |
a7b2e184 | 1032 | Align labels which are only reached by jumping. |
6ff3a151 | 1033 | |
058de654 | 1034 | falign-jumps= |
c518c102 | 1035 | Common RejectNegative Joined Var(str_align_jumps) Optimization |
058de654 | 1036 | |
6ff3a151 | 1037 | falign-labels |
eece52b5 | 1038 | Common Var(flag_align_labels) Optimization |
a7b2e184 | 1039 | Align all labels. |
6ff3a151 | 1040 | |
058de654 | 1041 | falign-labels= |
c518c102 | 1042 | Common RejectNegative Joined Var(str_align_labels) Optimization |
058de654 | 1043 | |
6ff3a151 | 1044 | falign-loops |
eece52b5 | 1045 | Common Var(flag_align_loops) Optimization |
a7b2e184 | 1046 | Align the start of loops. |
6ff3a151 | 1047 | |
058de654 | 1048 | falign-loops= |
8956e247 | 1049 | Common RejectNegative Joined Var(str_align_loops) Optimization |
058de654 | 1050 | |
e622a32d | 1051 | fallow-store-data-races |
eece52b5 | 1052 | Common Var(flag_store_data_races) Optimization |
e622a32d RB |
1053 | Allow the compiler to introduce new data races on stores. |
1054 | ||
757bf1df DM |
1055 | fanalyzer |
1056 | Common Var(flag_analyzer) | |
1057 | Enable static analysis pass. | |
1058 | ||
6ff3a151 | 1059 | fargument-alias |
2d2bd949 | 1060 | Common Ignore |
0d3c82d6 | 1061 | Does nothing. Preserved for backward compatibility. |
6ff3a151 NB |
1062 | |
1063 | fargument-noalias | |
2d2bd949 | 1064 | Common Ignore |
0d3c82d6 | 1065 | Does nothing. Preserved for backward compatibility. |
6ff3a151 NB |
1066 | |
1067 | fargument-noalias-global | |
2d2bd949 | 1068 | Common Ignore |
0d3c82d6 | 1069 | Does nothing. Preserved for backward compatibility. |
6ff3a151 | 1070 | |
0698a1d2 | 1071 | fargument-noalias-anything |
2d2bd949 | 1072 | Common Ignore |
0d3c82d6 | 1073 | Does nothing. Preserved for backward compatibility. |
0698a1d2 | 1074 | |
de5a5fa1 | 1075 | fsanitize= |
eece52b5 | 1076 | Common Driver Joined |
a7b2e184 | 1077 | Select what to sanitize. |
32b4b7f5 | 1078 | |
f6e50a7d | 1079 | fsanitize-coverage= |
0ebb09f5 | 1080 | Common Joined Enum(sanitize_coverage) Var(flag_sanitize_coverage) EnumBitSet |
cefc0906 | 1081 | Select type of coverage sanitization. |
f6e50a7d | 1082 | |
c1681f22 ML |
1083 | Enum |
1084 | Name(sanitize_coverage) Type(int) | |
1085 | ||
1086 | EnumValue | |
0ebb09f5 | 1087 | Enum(sanitize_coverage) String(trace-pc) Value(SANITIZE_COV_TRACE_PC) |
c1681f22 ML |
1088 | |
1089 | EnumValue | |
0ebb09f5 | 1090 | Enum(sanitize_coverage) String(trace-cmp) Value(SANITIZE_COV_TRACE_CMP) |
c1681f22 | 1091 | |
fd960af2 YG |
1092 | fasan-shadow-offset= |
1093 | Common Joined RejectNegative Var(common_deferred_options) Defer | |
1094 | -fasan-shadow-offset=<number> Use custom shadow memory offset. | |
1095 | ||
18af8d16 YG |
1096 | fsanitize-sections= |
1097 | Common Joined RejectNegative Var(common_deferred_options) Defer | |
1098 | -fsanitize-sections=<sec1,sec2,...> Sanitize global variables | |
1099 | in user-defined sections. | |
1100 | ||
d95a2703 | 1101 | fsanitize-recover= |
eece52b5 | 1102 | Common Joined |
a7b2e184 | 1103 | After diagnosing undefined behavior attempt to continue execution. |
1c33c9b7 | 1104 | |
d95a2703 | 1105 | fsanitize-recover |
eece52b5 | 1106 | Common |
a7b2e184 | 1107 | This switch is deprecated; use -fsanitize-recover= instead. |
d95a2703 | 1108 | |
2c7cfc7b JJ |
1109 | fsanitize-trap= |
1110 | Common Driver Joined | |
1111 | Use traps instead of diagnostics of undefined behavior sanitizers. | |
1112 | ||
1113 | fsanitize-trap | |
1114 | Common Driver | |
1115 | ||
6dc4a604 | 1116 | fsanitize-address-use-after-scope |
eece52b5 | 1117 | Common Driver Var(flag_sanitize_address_use_after_scope) Init(0) |
6dc4a604 | 1118 | |
1c33c9b7 | 1119 | fsanitize-undefined-trap-on-error |
2c7cfc7b JJ |
1120 | Common Driver Alias(fsanitize-trap) |
1121 | This switch is deprecated; use -fsanitize-trap= instead. | |
1c33c9b7 | 1122 | |
6ff3a151 | 1123 | fasynchronous-unwind-tables |
eece52b5 | 1124 | Common Var(flag_asynchronous_unwind_tables) Optimization |
a7b2e184 | 1125 | Generate unwind tables that are exact at each instruction boundary. |
6ff3a151 | 1126 | |
6fb5fa3c | 1127 | fauto-inc-dec |
eece52b5 | 1128 | Common Var(flag_auto_inc_dec) Init(1) Optimization |
a7b2e184 | 1129 | Generate auto-inc/dec instructions. |
6fb5fa3c | 1130 | |
be3c16c4 | 1131 | fauto-profile |
eece52b5 | 1132 | Common Var(flag_auto_profile) |
be3c16c4 DC |
1133 | Use sample profile information for call graph node weights. The default |
1134 | profile file is fbdata.afdo in 'pwd'. | |
1135 | ||
1136 | fauto-profile= | |
1137 | Common Joined RejectNegative Var(auto_profile_file) | |
1138 | Use sample profile information for call graph node weights. The profile | |
1139 | file is specified in the argument. | |
1140 | ||
31b66477 KC |
1141 | ; -fcheck-bounds causes gcc to generate array bounds checks. |
1142 | ; For C, C++ and ObjC: defaults off. | |
1143 | ; For Java: defaults to on. | |
1144 | ; For Fortran: defaults to off. | |
6ff3a151 | 1145 | fbounds-check |
eece52b5 | 1146 | Common Var(flag_bounds_check) |
a7b2e184 | 1147 | Generate code to check bounds before indexing arrays. |
6ff3a151 NB |
1148 | |
1149 | fbranch-count-reg | |
eece52b5 | 1150 | Common Var(flag_branch_on_count_reg) Optimization |
a7b2e184 | 1151 | Replace add, compare, branch with branch on count register. |
6ff3a151 NB |
1152 | |
1153 | fbranch-probabilities | |
eece52b5 | 1154 | Common Var(flag_branch_probabilities) Optimization |
a7b2e184 | 1155 | Use profiling information for branch probabilities. |
6ff3a151 | 1156 | |
de32c0cb | 1157 | fbranch-target-load-optimize |
f78f73cb RS |
1158 | Common Ignore |
1159 | Does nothing. Preserved for backward compatibility. | |
de32c0cb NB |
1160 | |
1161 | fbranch-target-load-optimize2 | |
f78f73cb RS |
1162 | Common Ignore |
1163 | Does nothing. Preserved for backward compatibility. | |
de32c0cb | 1164 | |
1194fc79 | 1165 | fbtr-bb-exclusive |
f78f73cb RS |
1166 | Common Ignore |
1167 | Does nothing. Preserved for backward compatibility. | |
1194fc79 | 1168 | |
3cf3da88 | 1169 | fcallgraph-info |
eece52b5 | 1170 | Common RejectNegative Var(flag_callgraph_info) Init(NO_CALLGRAPH_INFO); |
3cf3da88 EB |
1171 | Output callgraph information on a per-file basis. |
1172 | ||
1173 | fcallgraph-info= | |
eece52b5 | 1174 | Common RejectNegative Joined |
3cf3da88 EB |
1175 | Output callgraph information on a per-file basis with decorations. |
1176 | ||
058de654 | 1177 | fcall-saved- |
21bf1558 | 1178 | Common Joined RejectNegative Var(common_deferred_options) Defer |
a7b2e184 | 1179 | -fcall-saved-<register> Mark <register> as being preserved across functions. |
058de654 NB |
1180 | |
1181 | fcall-used- | |
21bf1558 | 1182 | Common Joined RejectNegative Var(common_deferred_options) Defer |
a7b2e184 | 1183 | -fcall-used-<register> Mark <register> as being corrupted by function calls. |
058de654 | 1184 | |
31b66477 KC |
1185 | ; Nonzero for -fcaller-saves: allocate values in regs that need to |
1186 | ; be saved across function calls, if that produces overall better code. | |
1187 | ; Optional now, so people can test it. | |
de32c0cb | 1188 | fcaller-saves |
eece52b5 | 1189 | Common Var(flag_caller_saves) Optimization |
a7b2e184 | 1190 | Save registers around function calls. |
de32c0cb | 1191 | |
3d8864c0 | 1192 | fcheck-data-deps |
c0c12356 | 1193 | Common Ignore |
49b8fe6c | 1194 | This switch is deprecated; do not use. |
3d8864c0 | 1195 | |
2284b034 MG |
1196 | fcheck-new |
1197 | Common Var(flag_check_new) | |
a7b2e184 | 1198 | Check the return value of new in C++. |
2284b034 | 1199 | |
6d27d749 | 1200 | fchecking |
b06f87c7 | 1201 | Common Var(flag_checking) Init(CHECKING_P ? ENABLE_EXTRA_CHECKING ? 2 : 1 : 0) |
6d27d749 RB |
1202 | Perform internal consistency checkings. |
1203 | ||
7db11a5a JJ |
1204 | fchecking= |
1205 | Common Joined RejectNegative UInteger Var(flag_checking) | |
1206 | Perform internal consistency checkings. | |
1207 | ||
37ccb0ba | 1208 | fcode-hoisting |
eece52b5 | 1209 | Common Var(flag_code_hoisting) Optimization |
37ccb0ba SB |
1210 | Enable code hoisting. |
1211 | ||
ccaeeafe | 1212 | fcombine-stack-adjustments |
eece52b5 | 1213 | Common Var(flag_combine_stack_adjustments) Optimization |
ccaeeafe NC |
1214 | Looks for opportunities to reduce stack adjustments and stack references. |
1215 | ||
6ff3a151 | 1216 | fcommon |
eece52b5 | 1217 | Common Var(flag_no_common,0) Init(1) |
df73e971 | 1218 | Put uninitialized globals in the common section. |
6ff3a151 | 1219 | |
603349bf JM |
1220 | fcompare-debug |
1221 | Driver | |
1222 | ; Converted by the driver to -fcompare-debug= options. | |
1223 | ||
2153915d | 1224 | fcompare-debug= |
603349bf | 1225 | Common Driver JoinedOrMissing RejectNegative Var(flag_compare_debug_opt) |
a7b2e184 | 1226 | -fcompare-debug[=<opts>] Compile with and without e.g. -gtoggle, and compare the final-insns dump. |
2153915d AO |
1227 | |
1228 | fcompare-debug-second | |
5e471ea6 | 1229 | Common Driver RejectNegative Var(flag_compare_debug) |
a7b2e184 | 1230 | Run only the second compilation of -fcompare-debug. |
2153915d | 1231 | |
e692f276 | 1232 | fcompare-elim |
eece52b5 | 1233 | Common Var(flag_compare_elim_after_reload) Optimization |
a7b2e184 | 1234 | Perform comparison elimination after register allocation has finished. |
e692f276 | 1235 | |
b5b8b0ac AO |
1236 | fconserve-stack |
1237 | Common Var(flag_conserve_stack) Optimization | |
a7b2e184 | 1238 | Do not perform optimizations increasing noticeably stack usage. |
b5b8b0ac | 1239 | |
6ff3a151 | 1240 | fcprop-registers |
eece52b5 | 1241 | Common Var(flag_cprop_registers) Optimization |
a7b2e184 | 1242 | Perform a register copy-propagation optimization pass. |
6ff3a151 | 1243 | |
de32c0cb | 1244 | fcrossjumping |
eece52b5 | 1245 | Common Var(flag_crossjumping) Optimization |
a7b2e184 | 1246 | Perform cross-jumping optimization. |
de32c0cb NB |
1247 | |
1248 | fcse-follow-jumps | |
eece52b5 | 1249 | Common Var(flag_cse_follow_jumps) Optimization |
a7b2e184 | 1250 | When running CSE, follow jumps to their targets. |
de32c0cb NB |
1251 | |
1252 | fcse-skip-blocks | |
2d2bd949 | 1253 | Common Ignore |
5f39ad47 | 1254 | Does nothing. Preserved for backward compatibility. |
de32c0cb | 1255 | |
c7463669 | 1256 | fcx-limited-range |
eece52b5 | 1257 | Common Var(flag_cx_limited_range) Optimization SetByCombined |
a7b2e184 | 1258 | Omit range reduction step when performing complex division. |
c7463669 | 1259 | |
35085f76 | 1260 | fcx-fortran-rules |
eece52b5 | 1261 | Common Var(flag_cx_fortran_rules) Optimization |
a7b2e184 | 1262 | Complex multiplication and division follow Fortran rules. |
35085f76 | 1263 | |
6ff3a151 | 1264 | fdata-sections |
eece52b5 | 1265 | Common Var(flag_data_sections) |
a7b2e184 | 1266 | Place data items into their own section. |
6ff3a151 | 1267 | |
0a090f42 | 1268 | fdbg-cnt-list |
eece52b5 | 1269 | Common Var(flag_dbg_cnt_list) |
0a090f42 SP |
1270 | List all available debugging counters with their limits and counts. |
1271 | ||
6fb5fa3c | 1272 | fdbg-cnt= |
299404a1 | 1273 | Common RejectNegative Joined Var(common_deferred_options) Defer |
83a49336 | 1274 | -fdbg-cnt=<counter>[:<lower_limit1>-]<upper_limit1>[:<lower_limit2>-<upper_limit2>:...][,<counter>:...] Set the debug counter limit. |
6fb5fa3c | 1275 | |
c8aea42c | 1276 | fdebug-prefix-map= |
299404a1 | 1277 | Common Joined RejectNegative Var(common_deferred_options) Defer |
b408e010 | 1278 | -fdebug-prefix-map=<old>=<new> Map one directory name to another in debug information. |
7365279f BK |
1279 | |
1280 | ffile-prefix-map= | |
1281 | Common Joined RejectNegative Var(common_deferred_options) Defer | |
b408e010 | 1282 | -ffile-prefix-map=<old>=<new> Map one directory name to another in compilation result. |
c8aea42c | 1283 | |
76f9db36 | 1284 | fdebug-types-section |
eece52b5 | 1285 | Common Var(flag_debug_types_section) Init(0) |
76f9db36 JJ |
1286 | Output .debug_types section when using DWARF v4 debuginfo. |
1287 | ||
31b66477 KC |
1288 | ; Nonzero for -fdefer-pop: don't pop args after each function call |
1289 | ; instead save them up to pop many calls' args with one insns. | |
de32c0cb | 1290 | fdefer-pop |
eece52b5 | 1291 | Common Var(flag_defer_pop) Optimization |
a7b2e184 | 1292 | Defer popping functions args from stack until later. |
de32c0cb NB |
1293 | |
1294 | fdelayed-branch | |
eece52b5 | 1295 | Common Var(flag_delayed_branch) Optimization |
a7b2e184 | 1296 | Attempt to fill delay slots of branch instructions. |
de32c0cb | 1297 | |
2da02156 | 1298 | fdelete-dead-exceptions |
eece52b5 | 1299 | Common Var(flag_delete_dead_exceptions) Init(0) Optimization |
a7b2e184 | 1300 | Delete dead instructions that may throw exceptions. |
2da02156 | 1301 | |
de32c0cb | 1302 | fdelete-null-pointer-checks |
eece52b5 | 1303 | Common Var(flag_delete_null_pointer_checks) Init(-1) Optimization |
a7b2e184 | 1304 | Delete useless null pointer checks. |
de32c0cb | 1305 | |
1e29e4d3 | 1306 | fdevirtualize-at-ltrans |
eece52b5 | 1307 | Common Var(flag_ltrans_devirtualize) |
a7b2e184 | 1308 | Stream extra data to support more aggressive devirtualization in LTO local transformation mode. |
1e29e4d3 | 1309 | |
bbc9396b | 1310 | fdevirtualize-speculatively |
eece52b5 | 1311 | Common Var(flag_devirtualize_speculatively) Optimization |
a7b2e184 | 1312 | Perform speculative devirtualization. |
bbc9396b | 1313 | |
ca1eedf6 | 1314 | fdevirtualize |
eece52b5 | 1315 | Common Var(flag_devirtualize) Optimization |
ca1eedf6 JH |
1316 | Try to convert virtual calls to direct ones. |
1317 | ||
de32c0cb | 1318 | fdiagnostics-show-location= |
e6d4b984 | 1319 | Common Joined RejectNegative Enum(diagnostic_prefixing_rule) |
a7b2e184 | 1320 | -fdiagnostics-show-location=[once|every-line] How often to emit source location at the beginning of line-wrapped diagnostics. |
de32c0cb | 1321 | |
e6d4b984 JM |
1322 | ; Required for these enum values. |
1323 | SourceInclude | |
1324 | pretty-print.h | |
1325 | ||
1326 | Enum | |
1327 | Name(diagnostic_prefixing_rule) Type(int) | |
1328 | ||
1329 | EnumValue | |
1330 | Enum(diagnostic_prefixing_rule) String(once) Value(DIAGNOSTICS_SHOW_PREFIX_ONCE) | |
1331 | ||
1332 | EnumValue | |
1333 | Enum(diagnostic_prefixing_rule) String(every-line) Value(DIAGNOSTICS_SHOW_PREFIX_EVERY_LINE) | |
1334 | ||
9fec0042 MLI |
1335 | fdiagnostics-show-caret |
1336 | Common Var(flag_diagnostics_show_caret) Init(1) | |
a7b2e184 | 1337 | Show the source line with a caret indicating the column. |
9fec0042 | 1338 | |
96e6ae57 DM |
1339 | fdiagnostics-show-labels |
1340 | Common Var(flag_diagnostics_show_labels) Init(1) | |
04e5c73d | 1341 | Show labels annotating ranges of source code when showing source. |
96e6ae57 | 1342 | |
56b61d7f DM |
1343 | fdiagnostics-show-line-numbers |
1344 | Common Var(flag_diagnostics_show_line_numbers) Init(1) | |
04e5c73d | 1345 | Show line numbers in the left margin when showing source. |
56b61d7f | 1346 | |
4b84d650 JJ |
1347 | fdiagnostics-color |
1348 | Common Alias(fdiagnostics-color=,always,never) | |
1349 | ; | |
1350 | ||
1351 | fdiagnostics-color= | |
97aa8bb6 | 1352 | Driver Common Joined RejectNegative Var(flag_diagnostics_show_color) Enum(diagnostic_color_rule) Init(DIAGNOSTICS_COLOR_NO) |
a7b2e184 | 1353 | -fdiagnostics-color=[never|always|auto] Colorize diagnostics. |
4b84d650 JJ |
1354 | |
1355 | ; Required for these enum values. | |
1356 | SourceInclude | |
1357 | diagnostic-color.h | |
1358 | ||
1359 | Enum | |
1360 | Name(diagnostic_color_rule) Type(int) | |
1361 | ||
1362 | EnumValue | |
1363 | Enum(diagnostic_color_rule) String(never) Value(DIAGNOSTICS_COLOR_NO) | |
1364 | ||
1365 | EnumValue | |
1366 | Enum(diagnostic_color_rule) String(always) Value(DIAGNOSTICS_COLOR_YES) | |
1367 | ||
1368 | EnumValue | |
1369 | Enum(diagnostic_color_rule) String(auto) Value(DIAGNOSTICS_COLOR_AUTO) | |
1370 | ||
d2608235 DM |
1371 | fdiagnostics-urls= |
1372 | Driver Common Joined RejectNegative Var(flag_diagnostics_show_urls) Enum(diagnostic_url_rule) Init(DIAGNOSTICS_URL_AUTO) | |
1373 | -fdiagnostics-urls=[never|always|auto] Embed URLs in diagnostics. | |
1374 | ||
1375 | ; Required for these enum values. | |
1376 | SourceInclude | |
1377 | diagnostic-url.h | |
1378 | ||
1379 | Enum | |
1380 | Name(diagnostic_url_rule) Type(int) | |
1381 | ||
1382 | EnumValue | |
1383 | Enum(diagnostic_url_rule) String(never) Value(DIAGNOSTICS_URL_NO) | |
1384 | ||
1385 | EnumValue | |
1386 | Enum(diagnostic_url_rule) String(always) Value(DIAGNOSTICS_URL_YES) | |
1387 | ||
1388 | EnumValue | |
1389 | Enum(diagnostic_url_rule) String(auto) Value(DIAGNOSTICS_URL_AUTO) | |
1390 | ||
004bb936 LH |
1391 | fdiagnostics-column-unit= |
1392 | Common Joined RejectNegative Enum(diagnostics_column_unit) | |
1393 | -fdiagnostics-column-unit=[display|byte] Select whether column numbers are output as display columns (default) or raw bytes. | |
1394 | ||
1395 | fdiagnostics-column-origin= | |
1396 | Common Joined RejectNegative UInteger | |
1397 | -fdiagnostics-column-origin=<number> Set the number of the first column. The default is 1-based as per GNU style, but some utilities may expect 0-based, for example. | |
1398 | ||
478dd60d DM |
1399 | fdiagnostics-format= |
1400 | Common Joined RejectNegative Enum(diagnostics_output_format) | |
6cf276dd | 1401 | -fdiagnostics-format=[text|sarif-stderr|sarif-file|json|json-stderr|json-file] Select output format. |
478dd60d | 1402 | |
bd5e882c DM |
1403 | fdiagnostics-escape-format= |
1404 | Common Joined RejectNegative Enum(diagnostics_escape_format) | |
1405 | -fdiagnostics-escape-format=[unicode|bytes] Select how to escape non-printable-ASCII bytes in the source for diagnostics that suggest it. | |
1406 | ||
478dd60d DM |
1407 | ; Required for these enum values. |
1408 | SourceInclude | |
1409 | diagnostic.h | |
1410 | ||
004bb936 LH |
1411 | Enum |
1412 | Name(diagnostics_column_unit) Type(int) | |
1413 | ||
1414 | EnumValue | |
1415 | Enum(diagnostics_column_unit) String(display) Value(DIAGNOSTICS_COLUMN_UNIT_DISPLAY) | |
1416 | ||
1417 | EnumValue | |
1418 | Enum(diagnostics_column_unit) String(byte) Value(DIAGNOSTICS_COLUMN_UNIT_BYTE) | |
1419 | ||
bd5e882c DM |
1420 | Enum |
1421 | Name(diagnostics_escape_format) Type(int) | |
1422 | ||
1423 | EnumValue | |
1424 | Enum(diagnostics_escape_format) String(unicode) Value(DIAGNOSTICS_ESCAPE_FORMAT_UNICODE) | |
1425 | ||
1426 | EnumValue | |
1427 | Enum(diagnostics_escape_format) String(bytes) Value(DIAGNOSTICS_ESCAPE_FORMAT_BYTES) | |
1428 | ||
478dd60d DM |
1429 | Enum |
1430 | Name(diagnostics_output_format) Type(int) | |
1431 | ||
1432 | EnumValue | |
1433 | Enum(diagnostics_output_format) String(text) Value(DIAGNOSTICS_OUTPUT_FORMAT_TEXT) | |
1434 | ||
1435 | EnumValue | |
5ab73173 DM |
1436 | Enum(diagnostics_output_format) String(json) Value(DIAGNOSTICS_OUTPUT_FORMAT_JSON_STDERR) |
1437 | ||
1438 | EnumValue | |
1439 | Enum(diagnostics_output_format) String(json-stderr) Value(DIAGNOSTICS_OUTPUT_FORMAT_JSON_STDERR) | |
1440 | ||
1441 | EnumValue | |
1442 | Enum(diagnostics_output_format) String(json-file) Value(DIAGNOSTICS_OUTPUT_FORMAT_JSON_FILE) | |
478dd60d | 1443 | |
6cf276dd DM |
1444 | EnumValue |
1445 | Enum(diagnostics_output_format) String(sarif-stderr) Value(DIAGNOSTICS_OUTPUT_FORMAT_SARIF_STDERR) | |
1446 | ||
1447 | EnumValue | |
1448 | Enum(diagnostics_output_format) String(sarif-file) Value(DIAGNOSTICS_OUTPUT_FORMAT_SARIF_FILE) | |
1449 | ||
a93eac6a DM |
1450 | fdiagnostics-parseable-fixits |
1451 | Common Var(flag_diagnostics_parseable_fixits) | |
8135a004 | 1452 | Print fix-it hints in machine-readable form. |
a93eac6a | 1453 | |
717ebe91 DM |
1454 | fdiagnostics-generate-patch |
1455 | Common Var(flag_diagnostics_generate_patch) | |
1456 | Print fix-it hints to stderr in unified diff format. | |
1457 | ||
ccf08a6e | 1458 | fdiagnostics-show-option |
c7d0de89 | 1459 | Common Var(flag_diagnostics_show_option) Init(1) |
a7b2e184 | 1460 | Amend appropriate diagnostic messages with the command line option that controls them. |
ccf08a6e | 1461 | |
6d4a35ca DM |
1462 | fdiagnostics-show-cwe |
1463 | Common Var(flag_diagnostics_show_cwe) Init(1) | |
1464 | Print CWE identifiers for diagnostic messages, where available. | |
1465 | ||
0b14f590 DM |
1466 | fdiagnostics-show-rules |
1467 | Common Var(flag_diagnostics_show_rules) Init(1) | |
1468 | Print any rules associated with diagnostic messages. | |
1469 | ||
4bc1899b DM |
1470 | fdiagnostics-path-format= |
1471 | Common Joined RejectNegative Var(flag_diagnostics_path_format) Enum(diagnostic_path_format) Init(DPF_INLINE_EVENTS) | |
1472 | Specify how to print any control-flow path associated with a diagnostic. | |
1473 | ||
129a1319 LH |
1474 | fdiagnostics-plain-output |
1475 | Driver Common RejectNegative | |
1476 | Turn off any diagnostics features that complicate the output, such as line numbers, color, and warning URLs. | |
1477 | ||
004bb936 LH |
1478 | ftabstop= |
1479 | Common Joined RejectNegative UInteger | |
1480 | -ftabstop=<number> Distance between tab stops for column reporting. | |
1481 | ||
4bc1899b DM |
1482 | Enum |
1483 | Name(diagnostic_path_format) Type(int) | |
1484 | ||
1485 | EnumValue | |
1486 | Enum(diagnostic_path_format) String(none) Value(DPF_NONE) | |
1487 | ||
1488 | EnumValue | |
1489 | Enum(diagnostic_path_format) String(separate-events) Value(DPF_SEPARATE_EVENTS) | |
1490 | ||
1491 | EnumValue | |
1492 | Enum(diagnostic_path_format) String(inline-events) Value(DPF_INLINE_EVENTS) | |
1493 | ||
1494 | fdiagnostics-show-path-depths | |
1495 | Common Var(flag_diagnostics_show_path_depths) Init(0) | |
1496 | Show stack depths of events in paths. | |
1497 | ||
0141ab44 DM |
1498 | fdiagnostics-minimum-margin-width= |
1499 | Common Joined UInteger Var(diagnostics_minimum_margin_width) Init(6) | |
04e5c73d | 1500 | Set minimum width of left margin of source code when showing source. |
0141ab44 | 1501 | |
226c52aa XDL |
1502 | fdisable- |
1503 | Common Joined RejectNegative Var(common_deferred_options) Defer | |
b408e010 | 1504 | -fdisable-[tree|rtl|ipa]-<pass>=range1+range2 Disable an optimization pass. |
226c52aa XDL |
1505 | |
1506 | fenable- | |
1507 | Common Joined RejectNegative Var(common_deferred_options) Defer | |
b408e010 | 1508 | -fenable-[tree|rtl|ipa]-<pass>=range1+range2 Enable an optimization pass. |
226c52aa | 1509 | |
6de9cd9a | 1510 | fdump- |
21bf1558 | 1511 | Common Joined RejectNegative Var(common_deferred_options) Defer |
a7b2e184 | 1512 | -fdump-<type> Dump various compiler internals to a file. |
6de9cd9a | 1513 | |
d1583032 JM |
1514 | fdump-final-insns |
1515 | Driver RejectNegative | |
1516 | ||
2153915d AO |
1517 | fdump-final-insns= |
1518 | Common RejectNegative Joined Var(flag_dump_final_insns) | |
a7b2e184 | 1519 | -fdump-final-insns=filename Dump to filename the insns at the end of translation. |
2153915d | 1520 | |
c6a13190 ILT |
1521 | fdump-go-spec= |
1522 | Common RejectNegative Joined Var(flag_dump_go_spec) | |
a7b2e184 | 1523 | -fdump-go-spec=filename Write all declarations to file as Go code. |
c6a13190 | 1524 | |
24a7799e | 1525 | fdump-noaddr |
eece52b5 | 1526 | Common Var(flag_dump_noaddr) |
a7b2e184 | 1527 | Suppress output of addresses in debugging dumps. |
24a7799e | 1528 | |
dc10fd96 JJ |
1529 | freport-bug |
1530 | Common Driver Var(flag_report_bug) | |
1531 | Collect and dump debug information into temporary file if ICE in C/C++ | |
bd2c6270 | 1532 | compiler occurred. |
dc10fd96 | 1533 | |
ba4ad400 DM |
1534 | fdump-internal-locations |
1535 | Common Var(flag_dump_locations) Init(0) | |
a7b2e184 | 1536 | Dump detailed information on GCC's internal representation of source code locations. |
ba4ad400 | 1537 | |
deced1e2 XDL |
1538 | fdump-passes |
1539 | Common Var(flag_dump_passes) Init(0) | |
a7b2e184 | 1540 | Dump optimization passes. |
deced1e2 | 1541 | |
6ff3a151 | 1542 | fdump-unnumbered |
eece52b5 | 1543 | Common Var(flag_dump_unnumbered) |
a7b2e184 | 1544 | Suppress output of instruction numbers, line number notes and addresses in debugging dumps. |
6ff3a151 | 1545 | |
2aa7c49b | 1546 | fdump-unnumbered-links |
eece52b5 | 1547 | Common Var(flag_dump_unnumbered_links) |
a7b2e184 | 1548 | Suppress output of previous and next insn numbers in debugging dumps. |
2aa7c49b | 1549 | |
b5b8b0ac | 1550 | fdwarf2-cfi-asm |
eece52b5 | 1551 | Common Var(flag_dwarf2_cfi_asm) Init(HAVE_GAS_CFI_DIRECTIVE) |
b5b8b0ac AO |
1552 | Enable CFI tables via GAS assembler directives. |
1553 | ||
355866de | 1554 | fearly-inlining |
eece52b5 | 1555 | Common Var(flag_early_inlining) Init(1) Optimization |
a7b2e184 | 1556 | Perform early inlining. |
355866de | 1557 | |
de32c0cb | 1558 | feliminate-dwarf2-dups |
1823c4f6 RB |
1559 | Common Ignore |
1560 | Does nothing. Preserved for backward compatibility. | |
de32c0cb | 1561 | |
07ffa034 | 1562 | fipa-sra |
eece52b5 | 1563 | Common Var(flag_ipa_sra) Init(0) Optimization |
a7b2e184 | 1564 | Perform interprocedural reduction of aggregates. |
07ffa034 | 1565 | |
6a08f7b3 | 1566 | feliminate-unused-debug-symbols |
eece52b5 | 1567 | Common Var(flag_debug_only_used_symbols) Init(1) |
a7b2e184 | 1568 | Perform unused symbol elimination in debug info. |
6a08f7b3 | 1569 | |
de32c0cb | 1570 | feliminate-unused-debug-types |
eece52b5 | 1571 | Common Var(flag_eliminate_unused_debug_types) Init(1) |
a7b2e184 | 1572 | Perform unused type elimination in debug info. |
de32c0cb | 1573 | |
e713adf6 | 1574 | femit-class-debug-always |
eece52b5 | 1575 | Common Var(flag_emit_class_debug_always) Init(0) |
e713adf6 CD |
1576 | Do not suppress C++ class debug information. |
1577 | ||
6ff3a151 | 1578 | fexceptions |
1313111f | 1579 | Common Var(flag_exceptions) Optimization EnabledBy(fnon-call-exceptions) |
a7b2e184 | 1580 | Enable exception handling. |
6ff3a151 | 1581 | |
de32c0cb | 1582 | fexpensive-optimizations |
eece52b5 | 1583 | Common Var(flag_expensive_optimizations) Optimization |
a7b2e184 | 1584 | Perform a number of minor, expensive optimizations. |
de32c0cb | 1585 | |
8ce94e44 | 1586 | fexcess-precision= |
df375b03 | 1587 | Common Joined RejectNegative Enum(excess_precision) Var(flag_excess_precision) Init(EXCESS_PRECISION_DEFAULT) Optimization SetByCombined |
f19a3270 | 1588 | -fexcess-precision=[fast|standard|16] Specify handling of excess floating-point precision. |
8ce94e44 | 1589 | |
e6d4b984 JM |
1590 | Enum |
1591 | Name(excess_precision) Type(enum excess_precision) UnknownError(unknown excess precision style %qs) | |
1592 | ||
1593 | EnumValue | |
1594 | Enum(excess_precision) String(fast) Value(EXCESS_PRECISION_FAST) | |
1595 | ||
1596 | EnumValue | |
1597 | Enum(excess_precision) String(standard) Value(EXCESS_PRECISION_STANDARD) | |
1598 | ||
f19a3270 | 1599 | EnumValue |
1600 | Enum(excess_precision) String(16) Value(EXCESS_PRECISION_FLOAT16) | |
1601 | ||
04f0fcf7 JG |
1602 | ; Whether we permit the extended set of values for FLT_EVAL_METHOD |
1603 | ; introduced in ISO/IEC TS 18661-3, or limit ourselves to those in C99/C11. | |
1604 | fpermitted-flt-eval-methods= | |
1605 | Common Joined RejectNegative Enum(permitted_flt_eval_methods) Var(flag_permitted_flt_eval_methods) Init(PERMITTED_FLT_EVAL_METHODS_DEFAULT) | |
1606 | -fpermitted-flt-eval-methods=[c11|ts-18661] Specify which values of FLT_EVAL_METHOD are permitted. | |
1607 | ||
1608 | Enum | |
1609 | Name(permitted_flt_eval_methods) Type(enum permitted_flt_eval_methods) UnknownError(unknown specification for the set of FLT_EVAL_METHOD values to permit %qs) | |
1610 | ||
1611 | EnumValue | |
1612 | Enum(permitted_flt_eval_methods) String(c11) Value(PERMITTED_FLT_EVAL_METHODS_C11) | |
1613 | ||
1614 | EnumValue | |
1615 | Enum(permitted_flt_eval_methods) String(ts-18661-3) Value(PERMITTED_FLT_EVAL_METHODS_TS_18661) | |
1616 | ||
058de654 | 1617 | ffast-math |
bfd67b47 | 1618 | Common Optimization |
058de654 | 1619 | |
cc8547a7 | 1620 | ffat-lto-objects |
e9f67e62 | 1621 | Common Var(flag_fat_lto_objects) |
cc8547a7 AK |
1622 | Output lto objects containing both the intermediate language and binary output. |
1623 | ||
6ff3a151 | 1624 | ffinite-math-only |
eece52b5 | 1625 | Common Var(flag_finite_math_only) Optimization SetByCombined |
a7b2e184 | 1626 | Assume no NaNs or infinities are generated. |
6ff3a151 | 1627 | |
c29c92c7 | 1628 | ffinite-loops |
eece52b5 | 1629 | Common Var(flag_finite_loops) Optimization Init(0) |
c29c92c7 FX |
1630 | Assume that loops with an exit will terminate and not loop indefinitely. |
1631 | ||
058de654 | 1632 | ffixed- |
21bf1558 | 1633 | Common Joined RejectNegative Var(common_deferred_options) Defer |
a7b2e184 | 1634 | -ffixed-<register> Mark <register> as being unavailable to the compiler. |
058de654 | 1635 | |
de32c0cb | 1636 | ffloat-store |
eece52b5 | 1637 | Common Var(flag_float_store) Optimization |
a7b2e184 | 1638 | Don't allocate floats and doubles in extended-precision registers. |
de32c0cb NB |
1639 | |
1640 | fforce-addr | |
2d2bd949 | 1641 | Common Ignore |
3de5e93a | 1642 | Does nothing. Preserved for backward compatibility. |
de32c0cb | 1643 | |
2ca2b607 | 1644 | fforward-propagate |
eece52b5 | 1645 | Common Var(flag_forward_propagate) Optimization |
a7b2e184 | 1646 | Perform a forward propagation pass on RTL. |
a52b023a | 1647 | |
16949072 | 1648 | ffp-contract= |
bea30e0d | 1649 | Common Joined RejectNegative Enum(fp_contract_mode) Var(flag_fp_contract_mode) Init(FP_CONTRACT_FAST) Optimization |
6a825afe | 1650 | -ffp-contract=[off|on|fast] Perform floating-point expression contraction. |
16949072 | 1651 | |
e6d4b984 JM |
1652 | Enum |
1653 | Name(fp_contract_mode) Type(enum fp_contract_mode) UnknownError(unknown floating point contraction style %qs) | |
1654 | ||
1655 | EnumValue | |
1656 | Enum(fp_contract_mode) String(off) Value(FP_CONTRACT_OFF) | |
1657 | ||
1658 | ; Not implemented, fall back to conservative FP_CONTRACT_OFF. | |
1659 | EnumValue | |
1660 | Enum(fp_contract_mode) String(on) Value(FP_CONTRACT_OFF) | |
1661 | ||
1662 | EnumValue | |
1663 | Enum(fp_contract_mode) String(fast) Value(FP_CONTRACT_FAST) | |
1664 | ||
0d2f700f | 1665 | ffp-int-builtin-inexact |
eece52b5 | 1666 | Common Var(flag_fp_int_builtin_inexact) Init(1) Optimization |
0d2f700f JM |
1667 | Allow built-in functions ceil, floor, round, trunc to raise \"inexact\" exceptions. |
1668 | ||
31b66477 KC |
1669 | ; Nonzero means don't put addresses of constant functions in registers. |
1670 | ; Used for compiling the Unix kernel, where strange substitutions are | |
1671 | ; done on the assembly output. | |
de32c0cb | 1672 | ffunction-cse |
eece52b5 | 1673 | Common Var(flag_no_function_cse,0) Optimization |
a7b2e184 | 1674 | Allow function addresses to be held in registers. |
de32c0cb | 1675 | |
6ff3a151 | 1676 | ffunction-sections |
eece52b5 | 1677 | Common Var(flag_function_sections) |
a7b2e184 | 1678 | Place each function into its own section. |
6ff3a151 | 1679 | |
de32c0cb | 1680 | fgcse |
eece52b5 | 1681 | Common Var(flag_gcse) Optimization |
a7b2e184 | 1682 | Perform global common subexpression elimination. |
de32c0cb NB |
1683 | |
1684 | fgcse-lm | |
eece52b5 | 1685 | Common Var(flag_gcse_lm) Init(1) Optimization |
a7b2e184 | 1686 | Perform enhanced load motion during global common subexpression elimination. |
de32c0cb NB |
1687 | |
1688 | fgcse-sm | |
eece52b5 | 1689 | Common Var(flag_gcse_sm) Init(0) Optimization |
a7b2e184 | 1690 | Perform store motion after global common subexpression elimination. |
de32c0cb | 1691 | |
f5f2e3cd | 1692 | fgcse-las |
eece52b5 | 1693 | Common Var(flag_gcse_las) Init(0) Optimization |
f9957958 | 1694 | Perform redundant load after store elimination in global common subexpression |
a7b2e184 | 1695 | elimination. |
f9957958 MH |
1696 | |
1697 | fgcse-after-reload | |
eece52b5 | 1698 | Common Var(flag_gcse_after_reload) Optimization |
a7b2e184 MS |
1699 | Perform global common subexpression elimination after register allocation has |
1700 | finished. | |
f5f2e3cd | 1701 | |
6592d14b PMR |
1702 | Enum |
1703 | Name(dwarf_gnat_encodings) Type(int) | |
1704 | ||
1705 | EnumValue | |
1706 | Enum(dwarf_gnat_encodings) String(all) Value(DWARF_GNAT_ENCODINGS_ALL) | |
1707 | ||
1708 | EnumValue | |
1709 | Enum(dwarf_gnat_encodings) String(gdb) Value(DWARF_GNAT_ENCODINGS_GDB) | |
1710 | ||
1711 | EnumValue | |
1712 | Enum(dwarf_gnat_encodings) String(minimal) Value(DWARF_GNAT_ENCODINGS_MINIMAL) | |
1713 | ||
1714 | fgnat-encodings= | |
eece52b5 | 1715 | Common Enum(dwarf_gnat_encodings) Joined RejectNegative Undocumented Var(gnat_encodings) |
04e5c73d | 1716 | -fgnat-encodings=[all|gdb|minimal] Select the balance between GNAT encodings and standard DWARF emitted in the debug information. |
6592d14b | 1717 | |
d0a58904 | 1718 | ; This option is not documented yet as its semantics will change. |
f8bf9252 | 1719 | fgraphite |
eece52b5 | 1720 | Common Var(flag_graphite) Optimization |
a7b2e184 | 1721 | Enable in and out of Graphite representation. |
f8bf9252 | 1722 | |
204b560f | 1723 | fgraphite-identity |
eece52b5 | 1724 | Common Var(flag_graphite_identity) Optimization |
a7b2e184 | 1725 | Enable Graphite Identity transformation. |
204b560f | 1726 | |
372a6eb8 | 1727 | fhoist-adjacent-loads |
eece52b5 | 1728 | Common Var(flag_hoist_adjacent_loads) Optimization |
372a6eb8 | 1729 | Enable hoisting adjacent loads to encourage generating conditional move |
a7b2e184 | 1730 | instructions. |
372a6eb8 | 1731 | |
1a218fc9 | 1732 | fkeep-gc-roots-live |
eece52b5 | 1733 | Common Undocumented Var(flag_keep_gc_roots_live) Optimization |
1a218fc9 ILT |
1734 | ; Always keep a pointer to a live memory block |
1735 | ||
530b4409 | 1736 | flarge-source-files |
eece52b5 | 1737 | Common Var(flag_large_source_files) Init(0) |
530b4409 | 1738 | Improve GCC's ability to track column numbers in large source files, |
1739 | at the expense of slower compilation. | |
1740 | ||
3cf0e270 | 1741 | floop-parallelize-all |
eece52b5 | 1742 | Common Var(flag_loop_parallelize_all) Optimization |
a7b2e184 | 1743 | Mark all loops as parallel. |
204b560f | 1744 | |
f8bf9252 | 1745 | floop-strip-mine |
d6bb5ccf | 1746 | Common Alias(floop-nest-optimize) |
a7b2e184 | 1747 | Enable loop nest transforms. Same as -floop-nest-optimize. |
f8bf9252 SP |
1748 | |
1749 | floop-interchange | |
eece52b5 | 1750 | Common Var(flag_loop_interchange) Optimization |
fbdec14e | 1751 | Enable loop interchange on trees. |
f8bf9252 SP |
1752 | |
1753 | floop-block | |
d6bb5ccf | 1754 | Common Alias(floop-nest-optimize) |
a7b2e184 | 1755 | Enable loop nest transforms. Same as -floop-nest-optimize. |
f8bf9252 | 1756 | |
20d3465b | 1757 | floop-unroll-and-jam |
eece52b5 | 1758 | Common Var(flag_unroll_jam) Optimization |
dc236397 | 1759 | Perform unroll-and-jam on loops. |
a7b2e184 | 1760 | |
0a35513e | 1761 | fgnu-tm |
eece52b5 | 1762 | Common Var(flag_tm) |
a7b2e184 | 1763 | Enable support for GNU transactional memory. |
0a35513e | 1764 | |
da34ade5 | 1765 | fgnu-unique |
eece52b5 | 1766 | Common Var(flag_gnu_unique) Init(1) |
a7b2e184 | 1767 | Use STB_GNU_UNIQUE if supported by the assembler. |
da34ade5 | 1768 | |
98af4c9f | 1769 | floop-flatten |
093193be MK |
1770 | Common Ignore |
1771 | Does nothing. Preserved for backward compatibility. | |
98af4c9f | 1772 | |
b60cc080 | 1773 | floop-nest-optimize |
eece52b5 | 1774 | Common Var(flag_loop_nest_optimize) Optimization |
e357a5e0 | 1775 | Enable the loop nest optimizer. |
b60cc080 | 1776 | |
6a78b724 | 1777 | fstrict-volatile-bitfields |
eece52b5 | 1778 | Common Var(flag_strict_volatile_bitfields) Init(-1) Optimization |
a7b2e184 | 1779 | Force bitfield accesses to match their type width. |
6a78b724 | 1780 | |
f663d9ad | 1781 | fstore-merging |
eece52b5 | 1782 | Common Var(flag_store_merging) Optimization |
f663d9ad KT |
1783 | Merge adjacent stores. |
1784 | ||
6ff3a151 | 1785 | fguess-branch-probability |
eece52b5 | 1786 | Common Var(flag_guess_branch_prob) Optimization |
a7b2e184 | 1787 | Enable guessing of branch probabilities. |
6ff3a151 | 1788 | |
95bb87b2 AO |
1789 | fharden-compares |
1790 | Common Var(flag_harden_compares) Optimization | |
1791 | Harden conditionals not used in branches, checking reversed conditions. | |
1792 | ||
1793 | fharden-conditional-branches | |
1794 | Common Var(flag_harden_conditional_branches) Optimization | |
1795 | Harden conditional branches by checking reversed conditions. | |
1796 | ||
31b66477 KC |
1797 | ; Nonzero means ignore `#ident' directives. 0 means handle them. |
1798 | ; Generate position-independent code for executables if possible | |
1799 | ; On SVR4 targets, it also controls whether or not to emit a | |
1800 | ; string identifying the compiler. | |
6ff3a151 | 1801 | fident |
eece52b5 | 1802 | Common Var(flag_no_ident,0) |
a7b2e184 | 1803 | Process #ident directives. |
6ff3a151 | 1804 | |
de32c0cb | 1805 | fif-conversion |
eece52b5 | 1806 | Common Var(flag_if_conversion) Optimization |
a7b2e184 | 1807 | Perform conversion of conditional jumps to branchless equivalents. |
de32c0cb NB |
1808 | |
1809 | fif-conversion2 | |
eece52b5 | 1810 | Common Var(flag_if_conversion2) Optimization |
a7b2e184 | 1811 | Perform conversion of conditional jumps to conditional execution. |
de32c0cb | 1812 | |
87e2a8fd | 1813 | fstack-reuse= |
082908e3 | 1814 | Common Joined RejectNegative Enum(stack_reuse_level) Var(flag_stack_reuse) Init(SR_ALL) Optimization |
6a825afe | 1815 | -fstack-reuse=[all|named_vars|none] Set stack reuse level for local variables. |
87e2a8fd XDL |
1816 | |
1817 | Enum | |
1818 | Name(stack_reuse_level) Type(enum stack_reuse_level) UnknownError(unknown Stack Reuse Level %qs) | |
1819 | ||
1820 | EnumValue | |
1821 | Enum(stack_reuse_level) String(all) Value(SR_ALL) | |
1822 | ||
1823 | EnumValue | |
1824 | Enum(stack_reuse_level) String(named_vars) Value(SR_NAMED_VARS) | |
1825 | ||
1826 | EnumValue | |
1827 | Enum(stack_reuse_level) String(none) Value(SR_NONE) | |
1828 | ||
384a5197 | 1829 | ftree-loop-if-convert |
eece52b5 | 1830 | Common Var(flag_tree_loop_if_convert) Init(-1) Optimization |
a7b2e184 | 1831 | Convert conditional jumps in innermost loops to branchless equivalents. |
384a5197 | 1832 | |
bd544141 | 1833 | ftree-loop-if-convert-stores |
bef69eb5 RB |
1834 | Common Ignore |
1835 | Does nothing. Preserved for backward compatibility. | |
bd544141 | 1836 | |
31b66477 KC |
1837 | ; -finhibit-size-directive inhibits output of .size for ELF. |
1838 | ; This is used only for compiling crtstuff.c, | |
1839 | ; and it may be extended to other effects | |
1840 | ; needed for crtstuff.c on other systems. | |
6ff3a151 | 1841 | finhibit-size-directive |
eece52b5 | 1842 | Common Var(flag_inhibit_size_directive) |
a7b2e184 | 1843 | Do not generate .size directives. |
6ff3a151 | 1844 | |
3e293154 | 1845 | findirect-inlining |
eece52b5 | 1846 | Common Var(flag_indirect_inlining) Optimization |
a7b2e184 | 1847 | Perform indirect inlining. |
3e293154 | 1848 | |
99ea07f8 RG |
1849 | ; General flag to enable inlining. Specifying -fno-inline will disable |
1850 | ; all inlining apart from always-inline functions. | |
de32c0cb | 1851 | finline |
eece52b5 | 1852 | Common Var(flag_no_inline,0) Init(0) Optimization |
a7b2e184 | 1853 | Enable inlining of function declared \"inline\", disabling disables all inlining. |
de32c0cb | 1854 | |
4d4b8cb9 | 1855 | finline-small-functions |
eece52b5 | 1856 | Common Var(flag_inline_small_functions) Optimization |
a7b2e184 | 1857 | Integrate functions into their callers when code size is known not to grow. |
4d4b8cb9 | 1858 | |
de32c0cb | 1859 | finline-functions |
eece52b5 | 1860 | Common Var(flag_inline_functions) Optimization |
a7b2e184 | 1861 | Integrate functions not declared \"inline\" into their callers when profitable. |
de32c0cb | 1862 | |
355866de | 1863 | finline-functions-called-once |
eece52b5 | 1864 | Common Var(flag_inline_functions_called_once) Optimization |
a7b2e184 | 1865 | Integrate functions only required by their single caller. |
d63db217 | 1866 | |
d302c9d6 | 1867 | finline-limit- |
5de8299c | 1868 | Common RejectNegative Joined Alias(finline-limit=) |
d302c9d6 NB |
1869 | |
1870 | finline-limit= | |
1871 | Common RejectNegative Joined UInteger | |
a7b2e184 | 1872 | -finline-limit=<number> Limit the size of inlined functions to <number>. |
d302c9d6 | 1873 | |
86951993 | 1874 | finline-atomics |
eece52b5 | 1875 | Common Var(flag_inline_atomics) Init(1) Optimization |
86951993 AM |
1876 | Inline __atomic operations when a lock free instruction sequence is available. |
1877 | ||
5c5f0b65 IT |
1878 | fcf-protection |
1879 | Common RejectNegative Alias(fcf-protection=,full) | |
1880 | ||
1881 | fcf-protection= | |
eece52b5 | 1882 | Common Joined RejectNegative Enum(cf_protection_level) Var(flag_cf_protection) Init(CF_NONE) |
c4c22e83 | 1883 | -fcf-protection=[full|branch|return|none|check] Instrument functions with checks to verify jump/call/return control-flow transfer |
5c5f0b65 IT |
1884 | instructions have valid targets. |
1885 | ||
1886 | Enum | |
cefc0906 | 1887 | Name(cf_protection_level) Type(enum cf_protection_level) UnknownError(unknown Control-Flow Protection Level %qs) |
5c5f0b65 IT |
1888 | |
1889 | EnumValue | |
1890 | Enum(cf_protection_level) String(full) Value(CF_FULL) | |
1891 | ||
1892 | EnumValue | |
1893 | Enum(cf_protection_level) String(branch) Value(CF_BRANCH) | |
1894 | ||
1895 | EnumValue | |
1896 | Enum(cf_protection_level) String(return) Value(CF_RETURN) | |
1897 | ||
c4c22e83 L |
1898 | EnumValue |
1899 | Enum(cf_protection_level) String(check) Value(CF_CHECK) | |
1900 | ||
5c5f0b65 IT |
1901 | EnumValue |
1902 | Enum(cf_protection_level) String(none) Value(CF_NONE) | |
1903 | ||
6ff3a151 | 1904 | finstrument-functions |
3b598848 | 1905 | Common Var(flag_instrument_function_entry_exit,1) |
a7b2e184 | 1906 | Instrument function entry and exit with profiling calls. |
6ff3a151 | 1907 | |
3b598848 EB |
1908 | finstrument-functions-once |
1909 | Common Var(flag_instrument_function_entry_exit,2) | |
1910 | Instrument function entry and exit with profiling calls invoked once. | |
1911 | ||
8d5a7d1f ILT |
1912 | finstrument-functions-exclude-function-list= |
1913 | Common RejectNegative Joined | |
b408e010 | 1914 | -finstrument-functions-exclude-function-list=name,... Do not instrument listed functions. |
8d5a7d1f ILT |
1915 | |
1916 | finstrument-functions-exclude-file-list= | |
1917 | Common RejectNegative Joined | |
b408e010 | 1918 | -finstrument-functions-exclude-file-list=filename,... Do not instrument functions listed in files. |
8d5a7d1f | 1919 | |
d6e14e8f | 1920 | fipa-cp |
eece52b5 | 1921 | Common Var(flag_ipa_cp) Optimization |
a7b2e184 | 1922 | Perform interprocedural constant propagation. |
d6e14e8f | 1923 | |
5e45130d | 1924 | fipa-cp-clone |
eece52b5 | 1925 | Common Var(flag_ipa_cp_clone) Optimization |
a7b2e184 | 1926 | Perform cloning to make Interprocedural constant propagation stronger. |
5e45130d | 1927 | |
3c99176a | 1928 | fipa-cp-alignment |
78117646 MJ |
1929 | Common Ignore |
1930 | Does nothing. Preserved for backward compatibility. | |
3c99176a | 1931 | |
209ca542 | 1932 | fipa-bit-cp |
eece52b5 | 1933 | Common Var(flag_ipa_bit_cp) Optimization |
209ca542 PK |
1934 | Perform interprocedural bitwise constant propagation. |
1935 | ||
d119f34c | 1936 | fipa-modref |
eece52b5 | 1937 | Common Var(flag_ipa_modref) Optimization |
466b907f | 1938 | Perform interprocedural modref analysis. |
d119f34c | 1939 | |
e65bb9be | 1940 | fipa-profile |
eece52b5 | 1941 | Common Var(flag_ipa_profile) Init(0) Optimization |
a7b2e184 | 1942 | Perform interprocedural profile propagation. |
ea900239 | 1943 | |
4cf4d6a3 | 1944 | fipa-pta |
eece52b5 | 1945 | Common Var(flag_ipa_pta) Init(0) Optimization |
a7b2e184 | 1946 | Perform interprocedural points-to analysis. |
4cf4d6a3 | 1947 | |
e65bb9be | 1948 | fipa-pure-const |
eece52b5 | 1949 | Common Var(flag_ipa_pure_const) Init(0) Optimization |
a7b2e184 | 1950 | Discover pure and const functions. |
e65bb9be | 1951 | |
b84d4347 | 1952 | fipa-icf |
eece52b5 | 1953 | Common Var(flag_ipa_icf) Optimization |
a7b2e184 | 1954 | Perform Identical Code Folding for functions and read-only variables. |
b84d4347 ML |
1955 | |
1956 | fipa-icf-functions | |
eece52b5 | 1957 | Common Var(flag_ipa_icf_functions) Optimization |
a7b2e184 | 1958 | Perform Identical Code Folding for functions. |
b84d4347 ML |
1959 | |
1960 | fipa-icf-variables | |
eece52b5 | 1961 | Common Var(flag_ipa_icf_variables) Optimization |
a7b2e184 | 1962 | Perform Identical Code Folding for variables. |
b84d4347 | 1963 | |
ea900239 | 1964 | fipa-reference |
eece52b5 | 1965 | Common Var(flag_ipa_reference) Init(0) Optimization |
2e14744f ML |
1966 | Discover read-only and non addressable static variables. |
1967 | ||
1968 | fipa-reference-addressable | |
eece52b5 | 1969 | Common Var(flag_ipa_reference_addressable) Init(0) Optimization |
2e14744f | 1970 | Discover read-only, write-only and non-addressable static variables. |
ea900239 | 1971 | |
47b840eb | 1972 | fipa-stack-alignment |
eece52b5 | 1973 | Common Var(flag_ipa_stack_alignment) Init(1) Optimization |
47b840eb ML |
1974 | Reduce stack alignment on call sites if possible. |
1975 | ||
43d861a5 | 1976 | fipa-matrix-reorg |
04f92ff4 RG |
1977 | Common Ignore |
1978 | Does nothing. Preserved for backward compatibility. | |
43d861a5 | 1979 | |
e1dc98b2 | 1980 | fipa-struct-reorg |
b8beb4d1 RG |
1981 | Common Ignore |
1982 | Does nothing. Preserved for backward compatibility. | |
e1dc98b2 | 1983 | |
8bc5448f | 1984 | fipa-vrp |
eece52b5 | 1985 | Common Var(flag_ipa_vrp) Optimization |
8bc5448f KV |
1986 | Perform IPA Value Range Propagation. |
1987 | ||
058e97ec | 1988 | fira-algorithm= |
b16650ac | 1989 | Common Joined RejectNegative Enum(ira_algorithm) Var(flag_ira_algorithm) Init(IRA_ALGORITHM_CB) Optimization |
6a825afe | 1990 | -fira-algorithm=[CB|priority] Set the used IRA algorithm. |
7db7ed3c | 1991 | |
16c84809 JH |
1992 | fipa-strict-aliasing |
1993 | Common Var(flag_ipa_strict_aliasing) Init(1) Optimization | |
1994 | Assume strict aliasing rules apply across (uninlined) function boundaries. | |
1995 | ||
e6d4b984 JM |
1996 | Enum |
1997 | Name(ira_algorithm) Type(enum ira_algorithm) UnknownError(unknown IRA algorithm %qs) | |
1998 | ||
1999 | EnumValue | |
2000 | Enum(ira_algorithm) String(CB) Value(IRA_ALGORITHM_CB) | |
2001 | ||
2002 | EnumValue | |
2003 | Enum(ira_algorithm) String(priority) Value(IRA_ALGORITHM_PRIORITY) | |
2004 | ||
7db7ed3c | 2005 | fira-region= |
6b7a246d | 2006 | Common Joined RejectNegative Enum(ira_region) Var(flag_ira_region) Init(IRA_REGION_ONE) Optimization |
6a825afe | 2007 | -fira-region=[one|all|mixed] Set regions for IRA. |
058e97ec | 2008 | |
e6d4b984 JM |
2009 | Enum |
2010 | Name(ira_region) Type(enum ira_region) UnknownError(unknown IRA region %qs) | |
2011 | ||
2012 | EnumValue | |
2013 | Enum(ira_region) String(one) Value(IRA_REGION_ONE) | |
2014 | ||
2015 | EnumValue | |
2016 | Enum(ira_region) String(all) Value(IRA_REGION_ALL) | |
2017 | ||
2018 | EnumValue | |
2019 | Enum(ira_region) String(mixed) Value(IRA_REGION_MIXED) | |
2020 | ||
b11f0116 | 2021 | fira-hoist-pressure |
eece52b5 | 2022 | Common Var(flag_ira_hoist_pressure) Init(1) Optimization |
b11f0116 BC |
2023 | Use IRA based register pressure calculation |
2024 | in RTL hoist optimizations. | |
2025 | ||
1833192f | 2026 | fira-loop-pressure |
eece52b5 | 2027 | Common Var(flag_ira_loop_pressure) Optimization |
1833192f VM |
2028 | Use IRA based register pressure calculation |
2029 | in RTL loop optimizations. | |
2030 | ||
058e97ec | 2031 | fira-share-save-slots |
eece52b5 | 2032 | Common Var(flag_ira_share_save_slots) Init(1) Optimization |
058e97ec VM |
2033 | Share slots for saving different hard registers. |
2034 | ||
2035 | fira-share-spill-slots | |
eece52b5 | 2036 | Common Var(flag_ira_share_spill_slots) Init(1) Optimization |
058e97ec VM |
2037 | Share stack slots for spilled pseudo-registers. |
2038 | ||
2039 | fira-verbose= | |
5498f011 | 2040 | Common RejectNegative Joined UInteger Var(flag_ira_verbose) Init(5) |
f94e1d66 | 2041 | -fira-verbose=<number> Control IRA's level of diagnostic messages. |
058e97ec | 2042 | |
8b11a64c | 2043 | fivopts |
eece52b5 | 2044 | Common Var(flag_ivopts) Init(1) Optimization |
a7b2e184 | 2045 | Optimize induction variables on trees. |
8b11a64c | 2046 | |
82c0180d | 2047 | fjump-tables |
c662432e | 2048 | Common Var(flag_jump_tables) Init(1) Optimization |
a7b2e184 | 2049 | Use jump tables for sufficiently large switch statements. |
82c0180d | 2050 | |
9b11203e ML |
2051 | fbit-tests |
2052 | Common Var(flag_bit_tests) Init(1) Optimization | |
2053 | Use bit tests for sufficiently large switch statements. | |
2054 | ||
de32c0cb | 2055 | fkeep-inline-functions |
eece52b5 | 2056 | Common Var(flag_keep_inline_functions) |
a7b2e184 | 2057 | Generate code for functions even if they are fully inlined. |
de32c0cb | 2058 | |
787da5fd | 2059 | fkeep-static-functions |
eece52b5 | 2060 | Common Var(flag_keep_static_functions) |
a7b2e184 | 2061 | Generate code for static functions even if they are never called. |
787da5fd | 2062 | |
de32c0cb | 2063 | fkeep-static-consts |
eece52b5 | 2064 | Common Var(flag_keep_static_consts) Init(1) |
a7b2e184 | 2065 | Emit static const variables even if they are not used. |
de32c0cb | 2066 | |
6ff3a151 | 2067 | fleading-underscore |
eece52b5 | 2068 | Common Var(flag_leading_underscore) Init(-1) |
a7b2e184 | 2069 | Give external symbols a leading underscore. |
6ff3a151 | 2070 | |
efa1cdf0 | 2071 | floop-optimize |
2d2bd949 | 2072 | Common Ignore |
c0220ea4 | 2073 | Does nothing. Preserved for backward compatibility. |
efa1cdf0 | 2074 | |
d9cf932c | 2075 | flra-remat |
eece52b5 | 2076 | Common Var(flag_lra_remat) Optimization |
a7b2e184 | 2077 | Do CFG-sensitive rematerialization in LRA. |
d9cf932c | 2078 | |
d7f09764 | 2079 | flto |
014d92e1 | 2080 | Common |
d7f09764 DN |
2081 | Enable link-time optimization. |
2082 | ||
014d92e1 JH |
2083 | flto= |
2084 | Common RejectNegative Joined Var(flag_lto) | |
2085 | Link-time optimization with number of parallel jobs or jobserver. | |
2086 | ||
783dab6b RB |
2087 | Enum |
2088 | Name(lto_partition_model) Type(enum lto_partition_model) UnknownError(unknown LTO partitioning model %qs) | |
852e4bd2 | 2089 | |
783dab6b RB |
2090 | EnumValue |
2091 | Enum(lto_partition_model) String(none) Value(LTO_PARTITION_NONE) | |
852e4bd2 | 2092 | |
783dab6b RB |
2093 | EnumValue |
2094 | Enum(lto_partition_model) String(one) Value(LTO_PARTITION_ONE) | |
2095 | ||
2096 | EnumValue | |
2097 | Enum(lto_partition_model) String(balanced) Value(LTO_PARTITION_BALANCED) | |
2098 | ||
2099 | EnumValue | |
2100 | Enum(lto_partition_model) String(1to1) Value(LTO_PARTITION_1TO1) | |
2101 | ||
2102 | EnumValue | |
2103 | Enum(lto_partition_model) String(max) Value(LTO_PARTITION_MAX) | |
c3c445e1 | 2104 | |
783dab6b RB |
2105 | flto-partition= |
2106 | Common Joined RejectNegative Enum(lto_partition_model) Var(flag_lto_partition) Init(LTO_PARTITION_BALANCED) | |
a7b2e184 | 2107 | Specify the algorithm to partition symbols and vars at linktime. |
014d92e1 | 2108 | |
d7f09764 DN |
2109 | ; The initial value of -1 comes from Z_DEFAULT_COMPRESSION in zlib.h. |
2110 | flto-compression-level= | |
87741e51 | 2111 | Common Joined RejectNegative UInteger Var(flag_lto_compression_level) Init(-1) IntegerRange(0, 19) |
65162572 | 2112 | Use zlib/zstd compression level <number> for IL. |
d7f09764 | 2113 | |
1ee85ee1 | 2114 | flto-odr-type-merging |
686a56a8 JH |
2115 | Common Ignore |
2116 | Does nothing. Preserved for backward compatibility. | |
1ee85ee1 | 2117 | |
d7f09764 | 2118 | flto-report |
eece52b5 | 2119 | Common Var(flag_lto_report) Init(0) |
a7b2e184 | 2120 | Report various link-time optimization statistics. |
d7f09764 | 2121 | |
057f8f20 | 2122 | flto-report-wpa |
eece52b5 | 2123 | Common Var(flag_lto_report_wpa) Init(0) |
a7b2e184 | 2124 | Report various link-time optimization statistics for WPA only. |
057f8f20 | 2125 | |
6ff3a151 | 2126 | fmath-errno |
eece52b5 | 2127 | Common Var(flag_errno_math) Init(1) Optimization SetByCombined |
a7b2e184 | 2128 | Set errno after built-in math functions. |
6ff3a151 | 2129 | |
3a789837 NF |
2130 | fmax-errors= |
2131 | Common Joined RejectNegative UInteger Var(flag_max_errors) | |
a7b2e184 | 2132 | -fmax-errors=<number> Maximum number of errors to report. |
3a789837 | 2133 | |
6ff3a151 | 2134 | fmem-report |
eece52b5 | 2135 | Common Var(mem_report) |
a7b2e184 | 2136 | Report on permanent memory allocation. |
6ff3a151 | 2137 | |
b3e44629 | 2138 | fmem-report-wpa |
eece52b5 | 2139 | Common Var(mem_report_wpa) |
a7b2e184 | 2140 | Report on permanent memory allocation in WPA only. |
b3e44629 | 2141 | |
31b66477 KC |
2142 | ; This will attempt to merge constant section constants, if 1 only |
2143 | ; string constants and constants from constant pool, if 2 also constant | |
2144 | ; variables. | |
6ff3a151 | 2145 | fmerge-all-constants |
eece52b5 | 2146 | Common Var(flag_merge_constants,2) Init(1) |
a7b2e184 | 2147 | Attempt to merge identical constants and constant variables. |
6ff3a151 NB |
2148 | |
2149 | fmerge-constants | |
eece52b5 | 2150 | Common Var(flag_merge_constants,1) |
a7b2e184 | 2151 | Attempt to merge identical constants across compilation units. |
6ff3a151 | 2152 | |
28a08168 | 2153 | fmerge-debug-strings |
eece52b5 | 2154 | Common Var(flag_merge_debug_strings) Init(1) |
a7b2e184 | 2155 | Attempt to merge identical debug strings across compilation units. |
28a08168 | 2156 | |
de32c0cb NB |
2157 | fmessage-length= |
2158 | Common RejectNegative Joined UInteger | |
a7b2e184 | 2159 | -fmessage-length=<number> Limit diagnostics to <number> characters per line. 0 suppresses line-wrapping. |
de32c0cb | 2160 | |
e5626198 | 2161 | fmodulo-sched |
eece52b5 | 2162 | Common Var(flag_modulo_sched) Optimization |
a7b2e184 | 2163 | Perform SMS based modulo scheduling before the first scheduling pass. |
e5626198 | 2164 | |
517d76fa | 2165 | fmodulo-sched-allow-regmoves |
eece52b5 | 2166 | Common Var(flag_modulo_sched_allow_regmoves) Optimization |
a7b2e184 | 2167 | Perform SMS based modulo scheduling with register moves allowed. |
517d76fa | 2168 | |
5e962776 | 2169 | fmove-loop-invariants |
eece52b5 | 2170 | Common Var(flag_move_loop_invariants) Optimization |
a7b2e184 | 2171 | Move loop invariant computations out of loops. |
5e962776 | 2172 | |
9f489a57 RB |
2173 | fmove-loop-stores |
2174 | Common Var(flag_move_loop_stores) Optimization | |
2175 | Move stores out of loops. | |
2176 | ||
6b1a2474 AO |
2177 | fmultiflags |
2178 | Common Driver | |
2179 | Building block for specs-based multilib-aware TFLAGS. | |
2180 | ||
6fb5fa3c | 2181 | fdce |
6ae4be32 | 2182 | Common Var(flag_dce) Init(1) Optimization |
a7b2e184 | 2183 | Use the RTL dead code elimination pass. |
6fb5fa3c DB |
2184 | |
2185 | fdse | |
c0fe6bce | 2186 | Common Var(flag_dse) Init(0) Optimization |
a7b2e184 | 2187 | Use the RTL dead store elimination pass. |
6fb5fa3c | 2188 | |
d72372e4 | 2189 | freschedule-modulo-scheduled-loops |
eece52b5 | 2190 | Common Var(flag_resched_modulo_sched) Optimization |
a7b2e184 | 2191 | Enable/Disable the traditional scheduling in loops that already passed modulo scheduling. |
d72372e4 | 2192 | |
6ff3a151 | 2193 | fnon-call-exceptions |
eece52b5 | 2194 | Common Var(flag_non_call_exceptions) Optimization |
a7b2e184 | 2195 | Support synchronous non-call exceptions. |
6ff3a151 | 2196 | |
c713ddc0 | 2197 | foffload= |
33c4e466 | 2198 | Driver Joined MissingArgError(targets missing after %qs) |
33c4e466 TB |
2199 | |
2200 | foffload-options= | |
2201 | Common Driver Joined MissingArgError(options or targets=options missing after %qs) | |
a3ce7d75 | 2202 | -foffload-options=<targets>=<options> Specify options for the offloading targets. |
c713ddc0 BS |
2203 | |
2204 | foffload-abi= | |
2a700fb8 | 2205 | Common Joined RejectNegative Enum(offload_abi) |
b408e010 | 2206 | -foffload-abi=[lp64|ilp32] Set the ABI to use in an offload compiler. |
c713ddc0 BS |
2207 | |
2208 | Enum | |
2209 | Name(offload_abi) Type(enum offload_abi) UnknownError(unknown offload ABI %qs) | |
2210 | ||
2211 | EnumValue | |
2212 | Enum(offload_abi) String(ilp32) Value(OFFLOAD_ABI_ILP32) | |
2213 | ||
2214 | EnumValue | |
2215 | Enum(offload_abi) String(lp64) Value(OFFLOAD_ABI_LP64) | |
2216 | ||
de32c0cb | 2217 | fomit-frame-pointer |
eece52b5 | 2218 | Common Var(flag_omit_frame_pointer) Optimization |
a7b2e184 | 2219 | When possible do not generate stack frames. |
de32c0cb | 2220 | |
78c60e3d | 2221 | fopt-info |
eece52b5 | 2222 | Common Var(flag_opt_info) Optimization |
a7b2e184 | 2223 | Enable all optimization info dumps on stderr. |
78c60e3d SS |
2224 | |
2225 | fopt-info- | |
2226 | Common Joined RejectNegative Var(common_deferred_options) Defer | |
a7b2e184 | 2227 | -fopt-info[-<type>=filename] Dump compiler optimization details. |
78c60e3d | 2228 | |
4a4412b9 | 2229 | fsave-optimization-record |
eece52b5 | 2230 | Common Var(flag_save_optimization_record) Optimization |
4a4412b9 DM |
2231 | Write a SRCFILE.opt-record.json file detailing what optimizations were performed. |
2232 | ||
6ff3a151 | 2233 | foptimize-register-move |
3b6d1699 VM |
2234 | Common Ignore |
2235 | Does nothing. Preserved for backward compatibility. | |
6ff3a151 | 2236 | |
de32c0cb | 2237 | foptimize-sibling-calls |
eece52b5 | 2238 | Common Var(flag_optimize_sibling_calls) Optimization |
a7b2e184 | 2239 | Optimize sibling and tail recursive calls. |
de32c0cb | 2240 | |
3e485f62 | 2241 | fpartial-inlining |
eece52b5 | 2242 | Common Var(flag_partial_inlining) Optimization |
a7b2e184 | 2243 | Perform partial inlining. |
3e485f62 | 2244 | |
a5573239 | 2245 | fpre-ipa-mem-report |
eece52b5 | 2246 | Common Var(pre_ipa_mem_report) |
a7b2e184 | 2247 | Report on memory allocation before interprocedural optimization. |
a5573239 JH |
2248 | |
2249 | fpost-ipa-mem-report | |
eece52b5 | 2250 | Common Var(post_ipa_mem_report) |
a7b2e184 | 2251 | Report on memory allocation before interprocedural optimization. |
a5573239 | 2252 | |
6ff3a151 | 2253 | fpack-struct |
eece52b5 | 2254 | Common Var(flag_pack_struct) Optimization |
a7b2e184 | 2255 | Pack structure members together without holes. |
6ff3a151 | 2256 | |
467cecf3 | 2257 | fpack-struct= |
c662432e | 2258 | Common RejectNegative Joined UInteger Optimization |
a7b2e184 | 2259 | -fpack-struct=<number> Set initial maximum structure member alignment. |
467cecf3 | 2260 | |
de32c0cb | 2261 | fpcc-struct-return |
eece52b5 | 2262 | Common Var(flag_pcc_struct_return,1) Init(DEFAULT_PCC_STRUCT_RETURN) |
a7b2e184 | 2263 | Return small aggregates in memory, not registers. |
de32c0cb NB |
2264 | |
2265 | fpeel-loops | |
eece52b5 | 2266 | Common Var(flag_peel_loops) Optimization |
a7b2e184 | 2267 | Perform loop peeling. |
de32c0cb NB |
2268 | |
2269 | fpeephole | |
eece52b5 | 2270 | Common Var(flag_no_peephole,0) Optimization |
a7b2e184 | 2271 | Enable machine specific peephole optimizations. |
de32c0cb | 2272 | |
6ff3a151 | 2273 | fpeephole2 |
eece52b5 | 2274 | Common Var(flag_peephole2) Optimization |
a7b2e184 | 2275 | Enable an RTL peephole pass before sched2. |
6ff3a151 | 2276 | |
31b66477 | 2277 | fPIC |
eece52b5 | 2278 | Common Var(flag_pic,2) Negative(fPIE) Init(-1) |
a7b2e184 | 2279 | Generate position-independent code if possible (large mode). |
31b66477 KC |
2280 | |
2281 | fPIE | |
eece52b5 | 2282 | Common Var(flag_pie,2) Negative(fpic) Init(-1) |
a7b2e184 | 2283 | Generate position-independent code for executables if possible (large mode). |
31b66477 | 2284 | |
6ff3a151 | 2285 | fpic |
eece52b5 | 2286 | Common Var(flag_pic,1) Negative(fpie) Init(-1) |
a7b2e184 | 2287 | Generate position-independent code if possible (small mode). |
6ff3a151 NB |
2288 | |
2289 | fpie | |
eece52b5 | 2290 | Common Var(flag_pie,1) Negative(fPIC) Init(-1) |
a7b2e184 | 2291 | Generate position-independent code for executables if possible (small mode). |
6ff3a151 | 2292 | |
b91fd3c7 | 2293 | fplt |
eece52b5 | 2294 | Common Var(flag_plt) Init(1) Optimization |
a7b2e184 | 2295 | Use PLT for PIC calls (-fno-plt: load the address from GOT at call site). |
b91fd3c7 | 2296 | |
68a607d8 | 2297 | fplugin= |
21bf1558 | 2298 | Common Joined RejectNegative Var(common_deferred_options) Defer |
a7b2e184 | 2299 | Specify a plugin to load. |
68a607d8 DN |
2300 | |
2301 | fplugin-arg- | |
21bf1558 | 2302 | Common Joined RejectNegative Var(common_deferred_options) Defer |
a7b2e184 | 2303 | -fplugin-arg-<name>-<key>[=<value>] Specify argument <key>=<value> for plugin <name>. |
68a607d8 | 2304 | |
bbc8a8dc | 2305 | fpredictive-commoning |
eece52b5 | 2306 | Common Var(flag_predictive_commoning) Optimization |
bbc8a8dc ZD |
2307 | Run predictive commoning optimization. |
2308 | ||
de32c0cb | 2309 | fprefetch-loop-arrays |
eece52b5 | 2310 | Common Var(flag_prefetch_loop_arrays) Init(-1) Optimization |
a7b2e184 | 2311 | Generate prefetch instructions, if available, for arrays in loops. |
de32c0cb | 2312 | |
6ff3a151 | 2313 | fprofile |
eece52b5 | 2314 | Common Var(profile_flag) |
a7b2e184 | 2315 | Enable basic program profiling code. |
6ff3a151 | 2316 | |
676519f7 | 2317 | fprofile-abs-path |
eece52b5 | 2318 | Common Var(profile_abs_path_flag) |
676519f7 BE |
2319 | Generate absolute source path names for gcov. |
2320 | ||
6ff3a151 | 2321 | fprofile-arcs |
eece52b5 | 2322 | Common Var(profile_arc_flag) |
a7b2e184 | 2323 | Insert arc-based program profiling code. |
6ff3a151 | 2324 | |
2f908293 | 2325 | fprofile-dir= |
0576d21f | 2326 | Common Joined RejectNegative Var(profile_data_prefix) |
2f908293 SP |
2327 | Set the top-level directory for storing the profile data. |
2328 | The default is 'pwd'. | |
2329 | ||
8e37c995 ML |
2330 | fprofile-note= |
2331 | Common Joined RejectNegative Var(profile_note_location) | |
2332 | Select the name for storing the profile note file. | |
2333 | ||
52c76998 | 2334 | fprofile-correction |
eece52b5 | 2335 | Common Var(flag_profile_correction) |
a7b2e184 | 2336 | Enable correction of flow inconsistent profile data input. |
52c76998 | 2337 | |
22063dbc ML |
2338 | fprofile-update= |
2339 | Common Joined RejectNegative Enum(profile_update) Var(flag_profile_update) Init(PROFILE_UPDATE_SINGLE) | |
4d209853 | 2340 | -fprofile-update=[single|atomic|prefer-atomic] Set the profile update method. |
22063dbc | 2341 | |
e18240ff ML |
2342 | fprofile-filter-files= |
2343 | Common Joined RejectNegative Var(flag_profile_filter_files) | |
8ca43e4e | 2344 | Instrument only functions from files whose name matches any of the regular expressions (separated by semi-colons). |
e18240ff ML |
2345 | |
2346 | fprofile-exclude-files= | |
2347 | Common Joined RejectNegative Var(flag_profile_exclude_files) | |
8ca43e4e | 2348 | Instrument only functions from files whose name does not match any of the regular expressions (separated by semi-colons). |
e18240ff | 2349 | |
ea0b1252 ML |
2350 | Enum |
2351 | Name(profile_reproducibility) Type(enum profile_reproducibility) UnknownError(unknown profile reproducibility method %qs) | |
2352 | ||
2353 | EnumValue | |
2354 | Enum(profile_reproducibility) String(serial) Value(PROFILE_REPRODUCIBILITY_SERIAL) | |
2355 | ||
2356 | EnumValue | |
2357 | Enum(profile_reproducibility) String(parallel-runs) Value(PROFILE_REPRODUCIBILITY_PARALLEL_RUNS) | |
2358 | ||
2359 | EnumValue | |
2360 | Enum(profile_reproducibility) String(multithreaded) Value(PROFILE_REPRODUCIBILITY_MULTITHREADED) | |
2361 | ||
5089df53 | 2362 | fprofile-reproducible= |
ea0b1252 | 2363 | Common Joined RejectNegative Var(flag_profile_reproducible) Enum(profile_reproducibility) Init(PROFILE_REPRODUCIBILITY_SERIAL) |
b408e010 | 2364 | -fprofile-reproducible=[serial|parallel-runs|multithreaded] Control level of reproducibility of profile gathered by -fprofile-generate. |
ea0b1252 | 2365 | |
22063dbc ML |
2366 | Enum |
2367 | Name(profile_update) Type(enum profile_update) UnknownError(unknown profile update method %qs) | |
2368 | ||
2369 | EnumValue | |
2370 | Enum(profile_update) String(single) Value(PROFILE_UPDATE_SINGLE) | |
2371 | ||
2372 | EnumValue | |
2373 | Enum(profile_update) String(atomic) Value(PROFILE_UPDATE_ATOMIC) | |
2374 | ||
4d209853 ML |
2375 | EnumValue |
2376 | Enum(profile_update) String(prefer-atomic) Value(PROFILE_UPDATE_PREFER_ATOMIC) | |
2377 | ||
44b32683 JH |
2378 | fprofile-prefix-path= |
2379 | Common Joined RejectNegative Var(profile_prefix_path) | |
850322df | 2380 | Remove prefix from absolute path before mangling name for -fprofile-generate= and -fprofile-use=. |
44b32683 | 2381 | |
cde87638 ML |
2382 | fprofile-prefix-map= |
2383 | Common Joined RejectNegative Var(common_deferred_options) Defer | |
2384 | -fprofile-prefix-map=<old>=<new> Map one directory name to another in GCOV coverage result. | |
2385 | ||
a8a5f53a JH |
2386 | fprofile-generate |
2387 | Common | |
a7b2e184 | 2388 | Enable common options for generating profile info for profile feedback directed optimizations. |
a8a5f53a | 2389 | |
2f908293 SP |
2390 | fprofile-generate= |
2391 | Common Joined RejectNegative | |
a7b2e184 | 2392 | Enable common options for generating profile info for profile feedback directed optimizations, and set -fprofile-dir=. |
2f908293 | 2393 | |
27f7fb79 SH |
2394 | fprofile-info-section |
2395 | Common RejectNegative | |
2396 | Register the profile information in the .gcov_info section instead of using a constructor/destructor. | |
2397 | ||
2398 | fprofile-info-section= | |
2399 | Common Joined RejectNegative Var(profile_info_section) | |
2400 | Register the profile information in the specified section instead of using a constructor/destructor. | |
2401 | ||
34fbe3f0 | 2402 | fprofile-partial-training |
eece52b5 | 2403 | Common Var(flag_profile_partial_training) Optimization |
c86b722b | 2404 | Do not assume that functions never executed during the train run are cold. |
34fbe3f0 | 2405 | |
a8a5f53a | 2406 | fprofile-use |
2f908293 | 2407 | Common Var(flag_profile_use) |
a7b2e184 | 2408 | Enable common options for performing profile feedback directed optimizations. |
a8a5f53a | 2409 | |
2f908293 SP |
2410 | fprofile-use= |
2411 | Common Joined RejectNegative | |
a7b2e184 | 2412 | Enable common options for performing profile feedback directed optimizations, and set -fprofile-dir=. |
2f908293 | 2413 | |
fca9dc00 | 2414 | fprofile-values |
eece52b5 | 2415 | Common Var(flag_profile_values) |
a7b2e184 | 2416 | Insert code to profile values of expressions. |
fca9dc00 | 2417 | |
37e5402b | 2418 | fprofile-report |
eece52b5 | 2419 | Common Var(profile_report) |
a7b2e184 | 2420 | Report on consistency of profile. |
37e5402b | 2421 | |
9cec31f4 | 2422 | fprofile-reorder-functions |
eece52b5 | 2423 | Common Var(flag_profile_reorder_functions) Optimization |
a7b2e184 | 2424 | Enable function reordering that improves code placement. |
9cec31f4 | 2425 | |
417ca011 | 2426 | fpatchable-function-entry= |
0d701e3e | 2427 | Common Var(flag_patchable_function_entry) Joined Optimization |
417ca011 TD |
2428 | Insert NOP instructions at each function entry. |
2429 | ||
de32c0cb | 2430 | frandom-seed |
299404a1 | 2431 | Common Var(common_deferred_options) Defer |
de32c0cb NB |
2432 | |
2433 | frandom-seed= | |
299404a1 | 2434 | Common Joined RejectNegative Var(common_deferred_options) Defer |
4bfede85 | 2435 | -frandom-seed=<string> Make compile reproducible using <string>. |
de32c0cb | 2436 | |
e0d9d0dd NC |
2437 | ; This switch causes the command line that was used to create an |
2438 | ; object file to be recorded into the object file. The exact format | |
2439 | ; of this recording is target and binary file format dependent. | |
2440 | ; It is related to the -fverbose-asm switch, but that switch only | |
2441 | ; records information in the assembler output file as comments, so | |
2442 | ; they never reach the object file. | |
2443 | frecord-gcc-switches | |
eece52b5 | 2444 | Common Var(flag_record_gcc_switches) |
e0d9d0dd NC |
2445 | Record gcc command line switches in the object file. |
2446 | ||
de32c0cb | 2447 | freg-struct-return |
eece52b5 | 2448 | Common Var(flag_pcc_struct_return,0) Optimization |
a7b2e184 | 2449 | Return small aggregates in registers. |
de32c0cb | 2450 | |
6ff3a151 | 2451 | fregmove |
3b6d1699 VM |
2452 | Common Ignore |
2453 | Does nothing. Preserved for backward compatibility. | |
6ff3a151 | 2454 | |
f522930c | 2455 | flifetime-dse |
eece52b5 | 2456 | Common Var(flag_lifetime_dse,2) Init(2) Optimization |
f522930c JM |
2457 | Tell DSE that the storage for a C++ object is dead when the constructor |
2458 | starts and when the destructor finishes. | |
2459 | ||
a021961c | 2460 | flifetime-dse= |
63010089 | 2461 | Common Joined RejectNegative UInteger Var(flag_lifetime_dse) Optimization IntegerRange(0, 2) |
a021961c | 2462 | |
6fd6a2ff QZ |
2463 | flive-patching |
2464 | Common RejectNegative Alias(flive-patching=,inline-clone) Optimization | |
2465 | ||
2466 | flive-patching= | |
eece52b5 | 2467 | Common Joined RejectNegative Enum(live_patching_level) Var(flag_live_patching) Init(LIVE_PATCHING_NONE) Optimization |
6fd6a2ff QZ |
2468 | -flive-patching=[inline-only-static|inline-clone] Control IPA |
2469 | optimizations to provide a safe compilation for live-patching. At the same | |
2470 | time, provides multiple-level control on the enabled IPA optimizations. | |
2471 | ||
2472 | Enum | |
2473 | Name(live_patching_level) Type(enum live_patching_level) UnknownError(unknown Live-Patching Level %qs) | |
2474 | ||
2475 | EnumValue | |
2476 | Enum(live_patching_level) String(inline-only-static) Value(LIVE_PATCHING_INLINE_ONLY_STATIC) | |
2477 | ||
2478 | EnumValue | |
2479 | Enum(live_patching_level) String(inline-clone) Value(LIVE_PATCHING_INLINE_CLONE) | |
2480 | ||
6343b6bf | 2481 | fallocation-dce |
eece52b5 | 2482 | Common Var(flag_allocation_dce) Init(1) Optimization |
6343b6bf ML |
2483 | Tell DCE to remove unused C++ allocations. |
2484 | ||
f20f2613 | 2485 | flive-range-shrinkage |
eece52b5 | 2486 | Common Var(flag_live_range_shrinkage) Init(0) Optimization |
a7b2e184 | 2487 | Relief of register pressure through live range shrinkage. |
f20f2613 | 2488 | |
6ff3a151 | 2489 | frename-registers |
e415bc4c | 2490 | Common Var(flag_rename_registers) Optimization EnabledBy(funroll-loops) |
a7b2e184 | 2491 | Perform a register renaming optimization pass. |
6ff3a151 | 2492 | |
b16abbcb | 2493 | fschedule-fusion |
eece52b5 | 2494 | Common Var(flag_schedule_fusion) Init(2) Optimization |
a7b2e184 | 2495 | Perform a target dependent instruction fusion optimization pass. |
b16abbcb | 2496 | |
6ff3a151 | 2497 | freorder-blocks |
eece52b5 | 2498 | Common Var(flag_reorder_blocks) Optimization |
a7b2e184 | 2499 | Reorder basic blocks to improve code placement. |
6ff3a151 | 2500 | |
59faab7c SB |
2501 | freorder-blocks-algorithm= |
2502 | Common Joined RejectNegative Enum(reorder_blocks_algorithm) Var(flag_reorder_blocks_algorithm) Init(REORDER_BLOCKS_ALGORITHM_SIMPLE) Optimization | |
6a825afe | 2503 | -freorder-blocks-algorithm=[simple|stc] Set the used basic block reordering algorithm. |
59faab7c SB |
2504 | |
2505 | Enum | |
2506 | Name(reorder_blocks_algorithm) Type(enum reorder_blocks_algorithm) UnknownError(unknown basic block reordering algorithm %qs) | |
2507 | ||
2508 | EnumValue | |
2509 | Enum(reorder_blocks_algorithm) String(simple) Value(REORDER_BLOCKS_ALGORITHM_SIMPLE) | |
2510 | ||
2511 | EnumValue | |
2512 | Enum(reorder_blocks_algorithm) String(stc) Value(REORDER_BLOCKS_ALGORITHM_STC) | |
2513 | ||
750054a2 | 2514 | freorder-blocks-and-partition |
eece52b5 | 2515 | Common Var(flag_reorder_blocks_and_partition) Optimization |
a7b2e184 | 2516 | Reorder basic blocks and partition into hot and cold sections. |
750054a2 | 2517 | |
6ff3a151 | 2518 | freorder-functions |
eece52b5 | 2519 | Common Var(flag_reorder_functions) Optimization |
a7b2e184 | 2520 | Reorder functions to improve code placement. |
6ff3a151 | 2521 | |
de32c0cb | 2522 | frerun-cse-after-loop |
eece52b5 | 2523 | Common Var(flag_rerun_cse_after_loop) Optimization |
a7b2e184 | 2524 | Add a common subexpression elimination pass after loop optimizations. |
de32c0cb | 2525 | |
efa1cdf0 | 2526 | frerun-loop-opt |
2d2bd949 | 2527 | Common Ignore |
c0220ea4 | 2528 | Does nothing. Preserved for backward compatibility. |
efa1cdf0 | 2529 | |
039c3d42 | 2530 | frounding-math |
eece52b5 | 2531 | Common Var(flag_rounding_math) Optimization SetByCombined |
a7b2e184 | 2532 | Disable optimizations that assume default FP rounding behavior. |
039c3d42 | 2533 | |
6ff3a151 | 2534 | fsched-interblock |
eece52b5 | 2535 | Common Var(flag_schedule_interblock) Init(1) Optimization |
a7b2e184 | 2536 | Enable scheduling across basic blocks. |
6ff3a151 | 2537 | |
ce18efcb | 2538 | fsched-pressure |
eece52b5 | 2539 | Common Var(flag_sched_pressure) Init(0) Optimization |
a7b2e184 | 2540 | Enable register pressure sensitive insn scheduling. |
ce18efcb | 2541 | |
6ff3a151 | 2542 | fsched-spec |
eece52b5 | 2543 | Common Var(flag_schedule_speculative) Init(1) Optimization |
a7b2e184 | 2544 | Allow speculative motion of non-loads. |
6ff3a151 NB |
2545 | |
2546 | fsched-spec-load | |
eece52b5 | 2547 | Common Var(flag_schedule_speculative_load) Optimization |
a7b2e184 | 2548 | Allow speculative motion of some loads. |
6ff3a151 NB |
2549 | |
2550 | fsched-spec-load-dangerous | |
eece52b5 | 2551 | Common Var(flag_schedule_speculative_load_dangerous) Optimization |
a7b2e184 | 2552 | Allow speculative motion of more loads. |
6ff3a151 | 2553 | |
de32c0cb | 2554 | fsched-verbose= |
4111f1c9 | 2555 | Common RejectNegative Joined UInteger Var(sched_verbose_param) Init(1) |
a7b2e184 | 2556 | -fsched-verbose=<number> Set the verbosity level of the scheduler. |
de32c0cb | 2557 | |
6ff3a151 | 2558 | fsched2-use-superblocks |
eece52b5 | 2559 | Common Var(flag_sched2_use_superblocks) Optimization |
a7b2e184 | 2560 | If scheduling post reload, do superblock scheduling. |
6ff3a151 NB |
2561 | |
2562 | fsched2-use-traces | |
2d2bd949 | 2563 | Common Ignore |
57257f0d | 2564 | Does nothing. Preserved for backward compatibility. |
6ff3a151 | 2565 | |
de32c0cb | 2566 | fschedule-insns |
eece52b5 | 2567 | Common Var(flag_schedule_insns) Optimization |
a7b2e184 | 2568 | Reschedule instructions before register allocation. |
de32c0cb NB |
2569 | |
2570 | fschedule-insns2 | |
eece52b5 | 2571 | Common Var(flag_schedule_insns_after_reload) Optimization |
a7b2e184 | 2572 | Reschedule instructions after register allocation. |
de32c0cb | 2573 | |
e855c69d AB |
2574 | ; This flag should be on when a target implements non-trivial |
2575 | ; scheduling hooks, maybe saving some information for its own sake. | |
a7b2e184 | 2576 | ; On IA64, for example, this is used for correct bundling. |
e855c69d | 2577 | fselective-scheduling |
eece52b5 | 2578 | Common Var(flag_selective_scheduling) Optimization |
a7b2e184 | 2579 | Schedule instructions using selective scheduling algorithm. |
e855c69d AB |
2580 | |
2581 | fselective-scheduling2 | |
eece52b5 | 2582 | Common Var(flag_selective_scheduling2) Optimization |
a7b2e184 | 2583 | Run selective scheduling after reload. |
e855c69d | 2584 | |
ecfc21ff DM |
2585 | fself-test= |
2586 | Common Undocumented Joined Var(flag_self_test) | |
2587 | Run self-tests, using the given path to locate test files. | |
d9b950dd | 2588 | |
e855c69d | 2589 | fsel-sched-pipelining |
eece52b5 | 2590 | Common Var(flag_sel_sched_pipelining) Init(0) Optimization |
a7b2e184 | 2591 | Perform software pipelining of inner loops during selective scheduling. |
e855c69d AB |
2592 | |
2593 | fsel-sched-pipelining-outer-loops | |
eece52b5 | 2594 | Common Var(flag_sel_sched_pipelining_outer_loops) Init(0) Optimization |
a7b2e184 | 2595 | Perform software pipelining of outer loops during selective scheduling. |
e855c69d AB |
2596 | |
2597 | fsel-sched-reschedule-pipelined | |
eece52b5 | 2598 | Common Var(flag_sel_sched_reschedule_pipelined) Init(0) Optimization |
a7b2e184 | 2599 | Reschedule pipelined regions without pipelining. |
e855c69d | 2600 | |
e288a46c | 2601 | fsemantic-interposition |
75ac95f6 | 2602 | Common Var(flag_semantic_interposition) Init(1) Optimization |
a7b2e184 | 2603 | Allow interposing function (or variables) by ones with different semantics (or initializer) respectively by dynamic linker. |
e288a46c | 2604 | |
31b66477 KC |
2605 | ; sched_stalled_insns means that insns can be moved prematurely from the queue |
2606 | ; of stalled insns into the ready list. | |
569fa502 | 2607 | fsched-stalled-insns |
eece52b5 | 2608 | Common Var(flag_sched_stalled_insns) Optimization UInteger |
a7b2e184 | 2609 | Allow premature scheduling of queued insns. |
569fa502 DN |
2610 | |
2611 | fsched-stalled-insns= | |
b16650ac | 2612 | Common RejectNegative Joined UInteger Optimization |
a7b2e184 | 2613 | -fsched-stalled-insns=<number> Set number of queued insns that can be prematurely scheduled. |
569fa502 | 2614 | |
31b66477 KC |
2615 | ; sched_stalled_insns_dep controls how many recently scheduled cycles will |
2616 | ; be examined for a dependency on a stalled insn that is candidate for | |
2617 | ; premature removal from the queue of stalled insns into the ready list (has | |
2618 | ; an effect only if the flag 'sched_stalled_insns' is set). | |
569fa502 | 2619 | fsched-stalled-insns-dep |
eece52b5 | 2620 | Common Var(flag_sched_stalled_insns_dep,1) Init(1) Optimization UInteger |
a7b2e184 | 2621 | Set dependence distance checking in premature scheduling of queued insns. |
569fa502 DN |
2622 | |
2623 | fsched-stalled-insns-dep= | |
b16650ac | 2624 | Common RejectNegative Joined UInteger Optimization |
a7b2e184 | 2625 | -fsched-stalled-insns-dep=<number> Set dependence distance checking in premature scheduling of queued insns. |
569fa502 | 2626 | |
ee4764a8 | 2627 | fsched-group-heuristic |
eece52b5 | 2628 | Common Var(flag_sched_group_heuristic) Init(1) Optimization |
a7b2e184 | 2629 | Enable the group heuristic in the scheduler. |
ee4764a8 GS |
2630 | |
2631 | fsched-critical-path-heuristic | |
eece52b5 | 2632 | Common Var(flag_sched_critical_path_heuristic) Init(1) Optimization |
a7b2e184 | 2633 | Enable the critical path heuristic in the scheduler. |
ee4764a8 GS |
2634 | |
2635 | fsched-spec-insn-heuristic | |
eece52b5 | 2636 | Common Var(flag_sched_spec_insn_heuristic) Init(1) Optimization |
a7b2e184 | 2637 | Enable the speculative instruction heuristic in the scheduler. |
ee4764a8 | 2638 | |
ee4764a8 | 2639 | fsched-rank-heuristic |
eece52b5 | 2640 | Common Var(flag_sched_rank_heuristic) Init(1) Optimization |
a7b2e184 | 2641 | Enable the rank heuristic in the scheduler. |
ee4764a8 GS |
2642 | |
2643 | fsched-last-insn-heuristic | |
eece52b5 | 2644 | Common Var(flag_sched_last_insn_heuristic) Init(1) Optimization |
a7b2e184 | 2645 | Enable the last instruction heuristic in the scheduler. |
ee4764a8 GS |
2646 | |
2647 | fsched-dep-count-heuristic | |
eece52b5 | 2648 | Common Var(flag_sched_dep_count_heuristic) Init(1) Optimization |
a7b2e184 | 2649 | Enable the dependent count heuristic in the scheduler. |
ee4764a8 | 2650 | |
aacd3885 | 2651 | fsection-anchors |
eece52b5 | 2652 | Common Var(flag_section_anchors) Optimization |
a7b2e184 | 2653 | Access data in the same section from shared anchor points. |
aacd3885 | 2654 | |
8cd37d0b | 2655 | fsee |
2d2bd949 | 2656 | Common Ignore |
8393a9c8 | 2657 | Does nothing. Preserved for backward compatibility. |
8cd37d0b | 2658 | |
87a0ebfd | 2659 | fzee |
26cd9add EI |
2660 | Common Ignore |
2661 | Does nothing. Preserved for backward compatibility. | |
2662 | ||
2663 | free | |
eece52b5 | 2664 | Common Var(flag_ree) Init(0) Optimization |
26cd9add | 2665 | Turn on Redundant Extensions Elimination pass. |
87a0ebfd | 2666 | |
8abb6b22 | 2667 | fshow-column |
eece52b5 | 2668 | Common Var(flag_show_column) Init(1) |
a7b2e184 | 2669 | Show column numbers in diagnostics, when available. Default on. |
8abb6b22 | 2670 | |
484db665 | 2671 | fshrink-wrap |
eece52b5 | 2672 | Common Var(flag_shrink_wrap) Optimization |
484db665 BS |
2673 | Emit function prologues only before parts of the function that need it, |
2674 | rather than at the top of the function. | |
2675 | ||
20a6ece0 | 2676 | fshrink-wrap-separate |
eece52b5 | 2677 | Common Var(flag_shrink_wrap_separate) Init(1) Optimization |
20a6ece0 SB |
2678 | Shrink-wrap parts of the prologue and epilogue separately. |
2679 | ||
6ff3a151 | 2680 | fsignaling-nans |
eece52b5 | 2681 | Common Var(flag_signaling_nans) Optimization SetByCombined |
a7b2e184 | 2682 | Disable optimizations observable by IEEE signaling NaNs. |
6ff3a151 | 2683 | |
db02da79 | 2684 | fsigned-zeros |
eece52b5 | 2685 | Common Var(flag_signed_zeros) Init(1) Optimization SetByCombined |
a7b2e184 | 2686 | Disable floating point optimizations that ignore the IEEE signedness of zero. |
db02da79 | 2687 | |
6ff3a151 | 2688 | fsingle-precision-constant |
eece52b5 | 2689 | Common Var(flag_single_precision_constant) Optimization |
a7b2e184 | 2690 | Convert floating point constants to single precision constants. |
6ff3a151 | 2691 | |
113d659a | 2692 | fsplit-ivs-in-unroller |
eece52b5 | 2693 | Common Var(flag_split_ivs_in_unroller) Init(1) Optimization |
a7b2e184 | 2694 | Split lifetimes of induction variables when loops are unrolled. |
113d659a | 2695 | |
7458026b | 2696 | fsplit-stack |
eece52b5 | 2697 | Common Var(flag_split_stack) Init(-1) |
a7b2e184 | 2698 | Generate discontiguous stack frames. |
7458026b | 2699 | |
e53a16e7 | 2700 | fsplit-wide-types |
eece52b5 | 2701 | Common Var(flag_split_wide_types) Optimization |
a7b2e184 | 2702 | Split wide types into independent registers. |
e53a16e7 | 2703 | |
b18081df | 2704 | fsplit-wide-types-early |
eece52b5 | 2705 | Common Var(flag_split_wide_types_early) Optimization |
b18081df SB |
2706 | Split wide types into independent registers earlier. |
2707 | ||
6a75d560 | 2708 | fssa-backprop |
eece52b5 | 2709 | Common Var(flag_ssa_backprop) Init(1) Optimization |
6a75d560 RS |
2710 | Enable backward propagation of use properties at the SSA level. |
2711 | ||
68f6df73 | 2712 | fssa-phiopt |
eece52b5 | 2713 | Common Var(flag_ssa_phiopt) Optimization |
a7b2e184 | 2714 | Optimize conditional patterns using SSA PHI nodes. |
68f6df73 | 2715 | |
98ce9490 | 2716 | fstdarg-opt |
eece52b5 | 2717 | Common Var(flag_stdarg_opt) Init(1) Optimization |
a7b2e184 | 2718 | Optimize amount of stdarg registers saved to stack at start of function. |
98ce9490 | 2719 | |
f37a4f14 | 2720 | fvariable-expansion-in-unroller |
eece52b5 | 2721 | Common Var(flag_variable_expansion_in_unroller) Optimization |
a7b2e184 | 2722 | Apply variable expansion when loops are unrolled. |
f37a4f14 | 2723 | |
b38f3813 | 2724 | fstack-check= |
eece52b5 | 2725 | Common RejectNegative Joined Optimization |
a7b2e184 | 2726 | -fstack-check=[no|generic|specific] Insert stack checking code into the program. |
b38f3813 | 2727 | |
6ff3a151 | 2728 | fstack-check |
5de8299c | 2729 | Common Alias(fstack-check=, specific, no) |
a7b2e184 | 2730 | Insert stack checking code into the program. Same as -fstack-check=specific. |
6ff3a151 | 2731 | |
ee8f15c6 | 2732 | fstack-clash-protection |
eece52b5 | 2733 | Common Var(flag_stack_clash_protection) Optimization |
ee8f15c6 JL |
2734 | Insert code to probe each page of stack space as it is allocated to protect |
2735 | from stack-clash style attacks. | |
2736 | ||
de32c0cb | 2737 | fstack-limit |
21bf1558 | 2738 | Common Var(common_deferred_options) Defer |
de32c0cb | 2739 | |
058de654 | 2740 | fstack-limit-register= |
21bf1558 | 2741 | Common RejectNegative Joined Var(common_deferred_options) Defer |
a7b2e184 | 2742 | -fstack-limit-register=<register> Trap if the stack goes past <register>. |
058de654 NB |
2743 | |
2744 | fstack-limit-symbol= | |
21bf1558 | 2745 | Common RejectNegative Joined Var(common_deferred_options) Defer |
a7b2e184 | 2746 | -fstack-limit-symbol=<name> Trap if the stack goes past symbol <name>. |
058de654 | 2747 | |
7d69de61 | 2748 | fstack-protector |
eece52b5 | 2749 | Common Var(flag_stack_protect, 1) Init(-1) Optimization |
a7b2e184 | 2750 | Use propolice as a stack protection method. |
7d69de61 RH |
2751 | |
2752 | fstack-protector-all | |
eece52b5 | 2753 | Common RejectNegative Var(flag_stack_protect, 2) Init(-1) Optimization |
a7b2e184 | 2754 | Use a stack protection method for every function. |
7d69de61 | 2755 | |
f6bc1c4a | 2756 | fstack-protector-strong |
eece52b5 | 2757 | Common RejectNegative Var(flag_stack_protect, 3) Init(-1) Optimization |
a7b2e184 | 2758 | Use a smart stack protection method for certain functions. |
f6bc1c4a | 2759 | |
5434dc07 | 2760 | fstack-protector-explicit |
eece52b5 | 2761 | Common RejectNegative Var(flag_stack_protect, 4) Optimization |
a7b2e184 | 2762 | Use stack protection method only for functions with the stack_protect attribute. |
5434dc07 | 2763 | |
d3c12306 EB |
2764 | fstack-usage |
2765 | Common RejectNegative Var(flag_stack_usage) | |
a7b2e184 | 2766 | Output stack usage information on a per-function basis. |
d3c12306 | 2767 | |
de32c0cb | 2768 | fstrength-reduce |
2d2bd949 | 2769 | Common Ignore |
c0220ea4 | 2770 | Does nothing. Preserved for backward compatibility. |
de32c0cb | 2771 | |
31b66477 KC |
2772 | ; Nonzero if we should do (language-dependent) alias analysis. |
2773 | ; Typically, this analysis will assume that expressions of certain | |
2774 | ; types do not alias expressions of certain other types. Only used | |
2775 | ; if alias analysis (in general) is enabled. | |
6ff3a151 | 2776 | fstrict-aliasing |
eece52b5 | 2777 | Common Var(flag_strict_aliasing) Optimization |
a7b2e184 | 2778 | Assume strict aliasing rules apply. |
6ff3a151 | 2779 | |
eeef0e45 | 2780 | fstrict-overflow |
eece52b5 | 2781 | Common |
3fccbb9e | 2782 | Treat signed overflow as undefined. Negated as -fwrapv -fwrapv-pointer. |
eeef0e45 | 2783 | |
e8053cf5 | 2784 | fsync-libcalls |
eece52b5 | 2785 | Common Var(flag_sync_libcalls) Init(1) |
a7b2e184 | 2786 | Implement __atomic operations via libcalls to legacy __sync functions. |
e8053cf5 | 2787 | |
de32c0cb | 2788 | fsyntax-only |
eece52b5 | 2789 | Common Var(flag_syntax_only) |
a7b2e184 | 2790 | Check for syntax errors, then stop. |
de32c0cb | 2791 | |
6ff3a151 | 2792 | ftest-coverage |
eece52b5 | 2793 | Common Var(flag_test_coverage) |
a7b2e184 | 2794 | Create data files needed by \"gcov\". |
6ff3a151 | 2795 | |
de32c0cb | 2796 | fthread-jumps |
eece52b5 | 2797 | Common Var(flag_thread_jumps) Optimization |
a7b2e184 | 2798 | Perform jump threading optimizations. |
de32c0cb | 2799 | |
6ff3a151 | 2800 | ftime-report |
eece52b5 | 2801 | Common Var(time_report) |
a7b2e184 | 2802 | Report the time taken by each compiler pass. |
6ff3a151 | 2803 | |
8df06bd0 | 2804 | ftime-report-details |
eece52b5 | 2805 | Common Var(time_report_details) |
8df06bd0 RB |
2806 | Record times taken by sub-phases separately. |
2807 | ||
058de654 | 2808 | ftls-model= |
e6d4b984 | 2809 | Common Joined RejectNegative Enum(tls_model) Var(flag_tls_default) Init(TLS_MODEL_GLOBAL_DYNAMIC) |
a7b2e184 | 2810 | -ftls-model=[global-dynamic|local-dynamic|initial-exec|local-exec] Set the default thread-local storage code generation model. |
058de654 | 2811 | |
e6d4b984 JM |
2812 | Enum |
2813 | Name(tls_model) Type(enum tls_model) UnknownError(unknown TLS model %qs) | |
2814 | ||
2815 | EnumValue | |
2816 | Enum(tls_model) String(global-dynamic) Value(TLS_MODEL_GLOBAL_DYNAMIC) | |
2817 | ||
2818 | EnumValue | |
2819 | Enum(tls_model) String(local-dynamic) Value(TLS_MODEL_LOCAL_DYNAMIC) | |
2820 | ||
2821 | EnumValue | |
2822 | Enum(tls_model) String(initial-exec) Value(TLS_MODEL_INITIAL_EXEC) | |
2823 | ||
2824 | EnumValue | |
2825 | Enum(tls_model) String(local-exec) Value(TLS_MODEL_LOCAL_EXEC) | |
2826 | ||
474eccc6 | 2827 | ftoplevel-reorder |
eece52b5 | 2828 | Common Var(flag_toplevel_reorder) Init(2) Optimization |
a7b2e184 | 2829 | Reorder top level functions, variables, and asms. |
474eccc6 | 2830 | |
de32c0cb | 2831 | ftracer |
eece52b5 | 2832 | Common Var(flag_tracer) Optimization |
a7b2e184 | 2833 | Perform superblock formation via tail duplication. |
de32c0cb | 2834 | |
4c640e26 | 2835 | ftrampolines |
eece52b5 | 2836 | Common Var(flag_trampolines) Init(0) |
4c640e26 EB |
2837 | For targets that normally need trampolines for nested functions, always |
2838 | generate them instead of using descriptors. | |
2839 | ||
31b66477 KC |
2840 | ; Zero means that floating-point math operations cannot generate a |
2841 | ; (user-visible) trap. This is the case, for example, in nonstop | |
2842 | ; IEEE 754 arithmetic. | |
6ff3a151 | 2843 | ftrapping-math |
eece52b5 | 2844 | Common Var(flag_trapping_math) Init(1) Optimization SetByCombined |
a7b2e184 | 2845 | Assume floating-point operations can trap. |
6ff3a151 NB |
2846 | |
2847 | ftrapv | |
eece52b5 | 2848 | Common Var(flag_trapv) Optimization |
a7b2e184 | 2849 | Trap for signed overflow in addition, subtraction and multiplication. |
6ff3a151 | 2850 | |
6de9cd9a | 2851 | ftree-ccp |
eece52b5 | 2852 | Common Var(flag_tree_ccp) Optimization |
a7b2e184 | 2853 | Enable SSA-CCP optimization on trees. |
6de9cd9a | 2854 | |
0b4b14ac | 2855 | ftree-bit-ccp |
eece52b5 | 2856 | Common Var(flag_tree_bit_ccp) Optimization |
a7b2e184 | 2857 | Enable SSA-BIT-CCP optimization on trees. |
0b4b14ac | 2858 | |
0bca51f0 | 2859 | ftree-store-ccp |
2d2bd949 | 2860 | Common Ignore |
dce2b2f6 | 2861 | Does nothing. Preserved for backward compatibility. |
0bca51f0 | 2862 | |
6de9cd9a | 2863 | ftree-ch |
eece52b5 | 2864 | Common Var(flag_tree_ch) Optimization |
a7b2e184 | 2865 | Enable loop header copying on trees. |
6de9cd9a | 2866 | |
21d01365 | 2867 | ftree-coalesce-inlined-vars |
1f9ceff1 AO |
2868 | Common Ignore RejectNegative |
2869 | Does nothing. Preserved for backward compatibility. | |
21d01365 AO |
2870 | |
2871 | ftree-coalesce-vars | |
eece52b5 | 2872 | Common Var(flag_tree_coalesce_vars) Optimization |
a7b2e184 | 2873 | Enable SSA coalescing of user variables. |
21d01365 | 2874 | |
6de9cd9a | 2875 | ftree-copyrename |
1f9ceff1 AO |
2876 | Common Ignore |
2877 | Does nothing. Preserved for backward compatibility. | |
6de9cd9a | 2878 | |
0bca51f0 | 2879 | ftree-copy-prop |
eece52b5 | 2880 | Common Var(flag_tree_copy_prop) Optimization |
a7b2e184 | 2881 | Enable copy propagation on trees. |
0bca51f0 DN |
2882 | |
2883 | ftree-store-copy-prop | |
2d2bd949 | 2884 | Common Ignore |
e9033855 | 2885 | Does nothing. Preserved for backward compatibility. |
0bca51f0 | 2886 | |
a5828d1e | 2887 | ftree-cselim |
177b800f | 2888 | Common Var(flag_tree_cselim) Optimization |
a7b2e184 | 2889 | Transform condition stores into unconditional ones. |
a5828d1e | 2890 | |
b6e99746 | 2891 | ftree-switch-conversion |
eece52b5 | 2892 | Common Var(flag_tree_switch_conversion) Optimization |
b6e99746 MJ |
2893 | Perform conversions of switch initializations. |
2894 | ||
6de9cd9a | 2895 | ftree-dce |
eece52b5 | 2896 | Common Var(flag_tree_dce) Optimization |
a7b2e184 | 2897 | Enable SSA dead code elimination optimization on trees. |
6de9cd9a DN |
2898 | |
2899 | ftree-dominator-opts | |
eece52b5 | 2900 | Common Var(flag_tree_dom) Optimization |
a7b2e184 | 2901 | Enable dominator optimizations. |
6de9cd9a | 2902 | |
c9e93168 | 2903 | ftree-tail-merge |
eece52b5 | 2904 | Common Var(flag_tree_tail_merge) Optimization |
a7b2e184 | 2905 | Enable tail merging on trees. |
c9e93168 | 2906 | |
6de9cd9a | 2907 | ftree-dse |
eece52b5 | 2908 | Common Var(flag_tree_dse) Optimization |
a7b2e184 | 2909 | Enable dead store elimination. |
6de9cd9a | 2910 | |
248fc9f3 | 2911 | ftree-forwprop |
eece52b5 | 2912 | Common Var(flag_tree_forwprop) Init(1) Optimization |
a7b2e184 | 2913 | Enable forward propagation on trees. |
248fc9f3 | 2914 | |
ff2ad0f7 | 2915 | ftree-fre |
eece52b5 | 2916 | Common Var(flag_tree_fre) Optimization |
a7b2e184 | 2917 | Enable Full Redundancy Elimination (FRE) on trees. |
ff2ad0f7 | 2918 | |
8b57bfeb | 2919 | foptimize-strlen |
eece52b5 | 2920 | Common Var(flag_optimize_strlen) Optimization |
a7b2e184 | 2921 | Enable string length optimizations on trees. |
8b57bfeb | 2922 | |
ae93744d | 2923 | fisolate-erroneous-paths-dereference |
eece52b5 | 2924 | Common Var(flag_isolate_erroneous_paths_dereference) Optimization |
408e8aa4 SL |
2925 | Detect paths that trigger erroneous or undefined behavior due to |
2926 | dereferencing a null pointer. Isolate those paths from the main control | |
2927 | flow and turn the statement with erroneous or undefined behavior into a trap. | |
ae93744d JL |
2928 | |
2929 | fisolate-erroneous-paths-attribute | |
eece52b5 | 2930 | Common Var(flag_isolate_erroneous_paths_attribute) Optimization |
51956afe | 2931 | Detect paths that trigger erroneous or undefined behavior due to a null value |
408e8aa4 | 2932 | being used in a way forbidden by a returns_nonnull or nonnull |
ae93744d | 2933 | attribute. Isolate those paths from the main control flow and turn the |
a7b2e184 | 2934 | statement with erroneous or undefined behavior into a trap. |
8fdc414d | 2935 | |
dea61d92 | 2936 | ftree-loop-distribution |
eece52b5 | 2937 | Common Var(flag_tree_loop_distribution) Optimization |
a7b2e184 | 2938 | Enable loop distribution on trees. |
dea61d92 | 2939 | |
20769d5e | 2940 | ftree-loop-distribute-patterns |
eece52b5 | 2941 | Common Var(flag_tree_loop_distribute_patterns) Optimization |
a7b2e184 | 2942 | Enable loop distribution for patterns transformed into a library call. |
20769d5e | 2943 | |
1b08d87d | 2944 | ftree-loop-im |
eece52b5 | 2945 | Common Var(flag_tree_loop_im) Init(1) Optimization |
a7b2e184 | 2946 | Enable loop invariant motion on trees. |
a7e5372d | 2947 | |
599eabdb | 2948 | ftree-loop-linear |
d6bb5ccf | 2949 | Common Alias(floop-nest-optimize) |
a7b2e184 | 2950 | Enable loop nest transforms. Same as -floop-nest-optimize. |
599eabdb | 2951 | |
1b08d87d | 2952 | ftree-loop-ivcanon |
eece52b5 | 2953 | Common Var(flag_tree_loop_ivcanon) Init(1) Optimization |
a7b2e184 | 2954 | Create canonical induction variables in loops. |
1b08d87d | 2955 | |
c66b6c66 | 2956 | ftree-loop-optimize |
eece52b5 | 2957 | Common Var(flag_tree_loop_optimize) Init(1) Optimization |
a7b2e184 | 2958 | Enable loop optimizations on tree level. |
c66b6c66 | 2959 | |
5f40b3cb | 2960 | ftree-parallelize-loops= |
eece52b5 | 2961 | Common Joined RejectNegative UInteger Var(flag_tree_parallelize_loops) Init(1) Optimization |
9453ba0a | 2962 | -ftree-parallelize-loops=<number> Enable automatic parallelization of loops. |
5f40b3cb | 2963 | |
248fc9f3 | 2964 | ftree-phiprop |
eece52b5 | 2965 | Common Var(flag_tree_phiprop) Init(1) Optimization |
248fc9f3 RG |
2966 | Enable hoisting loads from conditional pointers. |
2967 | ||
6de9cd9a | 2968 | ftree-pre |
eece52b5 | 2969 | Common Var(flag_tree_pre) Optimization |
a7b2e184 | 2970 | Enable SSA-PRE optimization on trees. |
6de9cd9a | 2971 | |
fa06ad0d | 2972 | ftree-partial-pre |
eece52b5 | 2973 | Common Var(flag_tree_partial_pre) Optimization |
a7b2e184 | 2974 | In SSA-PRE optimization on trees, enable partial-partial redundancy elimination. |
fa06ad0d | 2975 | |
248fc9f3 | 2976 | ftree-pta |
eece52b5 | 2977 | Common Var(flag_tree_pta) Optimization |
248fc9f3 RG |
2978 | Perform function-local points-to analysis on trees. |
2979 | ||
13c59415 | 2980 | ftree-reassoc |
eece52b5 | 2981 | Common Var(flag_tree_reassoc) Init(1) Optimization |
a7b2e184 | 2982 | Enable reassociation on tree level. |
13c59415 | 2983 | |
c75ab022 | 2984 | ftree-salias |
2d2bd949 | 2985 | Common Ignore |
1353232d | 2986 | Does nothing. Preserved for backward compatibility. |
c75ab022 | 2987 | |
fa555252 | 2988 | ftree-sink |
eece52b5 | 2989 | Common Var(flag_tree_sink) Optimization |
a7b2e184 | 2990 | Enable SSA code sinking on trees. |
fa555252 | 2991 | |
75cfe445 | 2992 | ftree-slsr |
eece52b5 | 2993 | Common Var(flag_tree_slsr) Optimization |
a7b2e184 | 2994 | Perform straight-line strength reduction. |
75cfe445 | 2995 | |
6de9cd9a | 2996 | ftree-sra |
eece52b5 | 2997 | Common Var(flag_tree_sra) Optimization |
a7b2e184 | 2998 | Perform scalar replacement of aggregates. |
6de9cd9a DN |
2999 | |
3000 | ftree-ter | |
eece52b5 | 3001 | Common Var(flag_tree_ter) Optimization |
a7b2e184 | 3002 | Replace temporary expressions in the SSA->normal pass. |
6de9cd9a | 3003 | |
c662432e | 3004 | ftree-lrs |
eece52b5 | 3005 | Common Var(flag_tree_live_range_split) Optimization |
a7b2e184 | 3006 | Perform live range splitting during the SSA->normal pass. |
c662432e | 3007 | |
0bca51f0 | 3008 | ftree-vrp |
eece52b5 | 3009 | Common Var(flag_tree_vrp) Init(0) Optimization |
a7b2e184 | 3010 | Perform Value Range Propagation on trees. |
0bca51f0 | 3011 | |
8fe17e23 | 3012 | fsplit-paths |
eece52b5 | 3013 | Common Var(flag_split_paths) Init(0) Optimization |
8fe17e23 AA |
3014 | Split paths leading to loop backedges. |
3015 | ||
71017a7b AL |
3016 | funconstrained-commons |
3017 | Common Var(flag_unconstrained_commons) Optimization | |
3018 | Assume common declarations may be overridden with ones with a larger | |
3019 | trailing array. | |
3020 | ||
de32c0cb | 3021 | funit-at-a-time |
eece52b5 | 3022 | Common Var(flag_unit_at_a_time) Init(1) |
a7b2e184 | 3023 | Compile whole compilation unit at a time. |
de32c0cb | 3024 | |
d68d3664 JM |
3025 | funreachable-traps |
3026 | Common Var(flag_unreachable_traps) Optimization | |
3027 | Trap on __builtin_unreachable instead of using it for optimization. | |
3028 | ||
de32c0cb | 3029 | funroll-loops |
e415bc4c | 3030 | Common Var(flag_unroll_loops) Optimization EnabledBy(funroll-all-loops) |
a7b2e184 | 3031 | Perform loop unrolling when iteration count is known. |
de32c0cb NB |
3032 | |
3033 | funroll-all-loops | |
eece52b5 | 3034 | Common Var(flag_unroll_all_loops) Optimization |
a7b2e184 | 3035 | Perform loop unrolling for all loops. |
de32c0cb | 3036 | |
71489d8e | 3037 | funroll-completely-grow-size |
fe9458c2 | 3038 | Undocumented Var(flag_cunroll_grow_size) Optimization |
71489d8e | 3039 | ; Internal undocumented flag, allow size growth during complete unrolling |
3040 | ||
f9cc1a70 PB |
3041 | ; Nonzero means that loop optimizer may assume that the induction variables |
3042 | ; that control loops do not overflow and that the loops with nontrivial | |
3043 | ; exit condition are not infinite | |
3044 | funsafe-loop-optimizations | |
78f63b79 BC |
3045 | Common Ignore |
3046 | Does nothing. Preserved for backward compatibility. | |
f9cc1a70 | 3047 | |
a1a82611 | 3048 | fassociative-math |
eece52b5 | 3049 | Common Var(flag_associative_math) SetByCombined Optimization |
a1a82611 RE |
3050 | Allow optimization for floating-point arithmetic which may change the |
3051 | result of the operation due to rounding. | |
3052 | ||
3053 | freciprocal-math | |
eece52b5 | 3054 | Common Var(flag_reciprocal_math) SetByCombined Optimization |
a1a82611 RE |
3055 | Same as -fassociative-math for expressions which include division. |
3056 | ||
31b66477 KC |
3057 | ; Nonzero means that unsafe floating-point math optimizations are allowed |
3058 | ; for the sake of speed. IEEE compliance is not guaranteed, and operations | |
3059 | ; are allowed to assume that their arguments and results are "normal" | |
3060 | ; (e.g., nonnegative for SQRT). | |
6ff3a151 | 3061 | funsafe-math-optimizations |
eece52b5 | 3062 | Common Var(flag_unsafe_math_optimizations) Optimization SetByCombined |
a7b2e184 | 3063 | Allow math optimizations that may violate IEEE or ISO standards. |
6ff3a151 | 3064 | |
de32c0cb | 3065 | funswitch-loops |
eece52b5 | 3066 | Common Var(flag_unswitch_loops) Optimization |
a7b2e184 | 3067 | Perform loop unswitching. |
de32c0cb | 3068 | |
28df8730 | 3069 | fsplit-loops |
eece52b5 | 3070 | Common Var(flag_split_loops) Optimization |
28df8730 MM |
3071 | Perform loop splitting. |
3072 | ||
13e08dc9 | 3073 | fversion-loops-for-strides |
eece52b5 | 3074 | Common Var(flag_version_loops_for_strides) Optimization |
13e08dc9 RS |
3075 | Version loops based on whether indices have a stride of one. |
3076 | ||
6ff3a151 | 3077 | funwind-tables |
eece52b5 | 3078 | Common Var(flag_unwind_tables) Optimization |
a7b2e184 | 3079 | Just generate unwind tables for exception handling. |
6ff3a151 | 3080 | |
b352afba | 3081 | fuse-ld=bfd |
b78e932d | 3082 | Common Driver Negative(fuse-ld=gold) |
a7b2e184 | 3083 | Use the bfd linker instead of the default linker. |
b352afba NC |
3084 | |
3085 | fuse-ld=gold | |
b78e932d | 3086 | Common Driver Negative(fuse-ld=bfd) |
a7b2e184 | 3087 | Use the gold linker instead of the default linker. |
b352afba | 3088 | |
d69ac8b7 RG |
3089 | fuse-ld=lld |
3090 | Common Driver Negative(fuse-ld=lld) | |
3091 | Use the lld LLVM linker instead of the default linker. | |
3092 | ||
ad964f7e ML |
3093 | fuse-ld=mold |
3094 | Common Driver Negative(fuse-ld=mold) | |
3095 | Use the Modern linker (MOLD) linker instead of the default linker. | |
3096 | ||
da18ea94 | 3097 | fuse-linker-plugin |
063d671d | 3098 | Common Undocumented Var(flag_use_linker_plugin) |
da18ea94 | 3099 | |
e90afde6 JM |
3100 | ; Positive if we should track variables, negative if we should run |
3101 | ; the var-tracking pass only to discard debug annotations, zero if | |
4cb52980 | 3102 | ; we're not to run it. |
014a1138 | 3103 | fvar-tracking |
4cb52980 | 3104 | Common Var(flag_var_tracking) PerFunction EnabledBy(fvar-tracking-uninit) |
a7b2e184 | 3105 | Perform variable tracking. |
014a1138 | 3106 | |
e90afde6 JM |
3107 | ; Positive if we should track variables at assignments, negative if |
3108 | ; we should run the var-tracking pass only to discard debug | |
4cb52980 | 3109 | ; annotations. |
b5b8b0ac | 3110 | fvar-tracking-assignments |
4cb52980 | 3111 | Common Var(flag_var_tracking_assignments) PerFunction |
a7b2e184 | 3112 | Perform variable tracking by annotating assignments. |
b5b8b0ac | 3113 | |
e90afde6 JM |
3114 | ; Nonzero if we should toggle flag_var_tracking_assignments after |
3115 | ; processing options and computing its default. */ | |
b5b8b0ac | 3116 | fvar-tracking-assignments-toggle |
eece52b5 | 3117 | Common Var(flag_var_tracking_assignments_toggle) PerFunction |
a7b2e184 | 3118 | Toggle -fvar-tracking-assignments. |
b5b8b0ac | 3119 | |
1267ca30 EB |
3120 | ; Positive if we should track uninitialized variables, negative if |
3121 | ; we should run the var-tracking pass only to discard debug | |
4cb52980 | 3122 | ; annotations. |
62760ffd | 3123 | fvar-tracking-uninit |
eece52b5 | 3124 | Common Var(flag_var_tracking_uninit) PerFunction |
a7b2e184 | 3125 | Perform variable tracking and also tag variables that are uninitialized. |
62760ffd | 3126 | |
26d476cd | 3127 | ; Alias to enable both -ftree-loop-vectorize and -ftree-slp-vectorize. |
79fe1b3b | 3128 | ftree-vectorize |
2b8453c4 | 3129 | Common Var(flag_tree_vectorize) Optimization |
a7b2e184 | 3130 | Enable vectorization on trees. |
79fe1b3b | 3131 | |
78c60e3d | 3132 | ftree-vectorizer-verbose= |
477e804b SS |
3133 | Common Joined RejectNegative Ignore |
3134 | Does nothing. Preserved for backward compatibility. | |
78c60e3d | 3135 | |
ea0f3e87 | 3136 | ftree-loop-vectorize |
eece52b5 | 3137 | Common Var(flag_tree_loop_vectorize) Optimization EnabledBy(ftree-vectorize) |
a7b2e184 | 3138 | Enable loop vectorization on trees. |
ea0f3e87 | 3139 | |
a70d6342 | 3140 | ftree-slp-vectorize |
eece52b5 | 3141 | Common Var(flag_tree_slp_vectorize) Optimization EnabledBy(ftree-vectorize) |
a7b2e184 | 3142 | Enable basic block vectorization (SLP) on trees. |
a70d6342 | 3143 | |
d6d11272 | 3144 | fvect-cost-model= |
b16650ac | 3145 | Common Joined RejectNegative Enum(vect_cost_model) Var(flag_vect_cost_model) Init(VECT_COST_MODEL_DEFAULT) Optimization |
0b0061f4 | 3146 | -fvect-cost-model=[unlimited|dynamic|cheap|very-cheap] Specifies the cost model for vectorization. |
a7b2e184 | 3147 | |
8b5e1202 | 3148 | fsimd-cost-model= |
b16650ac | 3149 | Common Joined RejectNegative Enum(vect_cost_model) Var(flag_simd_cost_model) Init(VECT_COST_MODEL_UNLIMITED) Optimization |
0b0061f4 | 3150 | -fsimd-cost-model=[unlimited|dynamic|cheap|very-cheap] Specifies the vectorization cost model for code marked with a simd directive. |
8b5e1202 | 3151 | |
d6d11272 XDL |
3152 | Enum |
3153 | Name(vect_cost_model) Type(enum vect_cost_model) UnknownError(unknown vectorizer cost model %qs) | |
3154 | ||
3155 | EnumValue | |
3156 | Enum(vect_cost_model) String(unlimited) Value(VECT_COST_MODEL_UNLIMITED) | |
3157 | ||
3158 | EnumValue | |
3159 | Enum(vect_cost_model) String(dynamic) Value(VECT_COST_MODEL_DYNAMIC) | |
3160 | ||
3161 | EnumValue | |
3162 | Enum(vect_cost_model) String(cheap) Value(VECT_COST_MODEL_CHEAP) | |
3163 | ||
0b0061f4 RS |
3164 | EnumValue |
3165 | Enum(vect_cost_model) String(very-cheap) Value(VECT_COST_MODEL_VERY_CHEAP) | |
3166 | ||
792ed98b | 3167 | fvect-cost-model |
205d7111 | 3168 | Common Alias(fvect-cost-model=,dynamic,unlimited) |
d6d11272 XDL |
3169 | Enables the dynamic vectorizer cost model. Preserved for backward compatibility. |
3170 | ||
c12cc930 | 3171 | ftree-vect-loop-version |
d6d11272 XDL |
3172 | Common Ignore |
3173 | Does nothing. Preserved for backward compatibility. | |
c12cc930 | 3174 | |
fbf798fc | 3175 | ftree-scev-cprop |
eece52b5 | 3176 | Common Var(flag_tree_scev_cprop) Init(1) Optimization |
fbf798fc DN |
3177 | Enable copy propagation of scalar-evolution information. |
3178 | ||
a25e0b5e | 3179 | ftrivial-auto-var-init= |
3180 | Common Joined RejectNegative Enum(auto_init_type) Var(flag_auto_var_init) Init(AUTO_INIT_UNINITIALIZED) Optimization | |
3181 | -ftrivial-auto-var-init=[uninitialized|pattern|zero] Add initializations to automatic variables. | |
3182 | ||
3183 | Enum | |
3184 | Name(auto_init_type) Type(enum auto_init_type) UnknownError(unrecognized automatic variable initialization type %qs) | |
3185 | ||
3186 | EnumValue | |
3187 | Enum(auto_init_type) String(uninitialized) Value(AUTO_INIT_UNINITIALIZED) | |
3188 | ||
3189 | EnumValue | |
3190 | Enum(auto_init_type) String(pattern) Value(AUTO_INIT_PATTERN) | |
3191 | ||
3192 | EnumValue | |
3193 | Enum(auto_init_type) String(zero) Value(AUTO_INIT_ZERO) | |
3194 | ||
31b66477 KC |
3195 | ; -fverbose-asm causes extra commentary information to be produced in |
3196 | ; the generated assembly code (to make it more readable). This option | |
3197 | ; is generally only of use to those who actually need to read the | |
3198 | ; generated assembly code (perhaps while debugging the compiler itself). | |
3199 | ; -fno-verbose-asm, the default, causes the extra information | |
3200 | ; to not be added and is useful when comparing two assembler files. | |
6ff3a151 | 3201 | fverbose-asm |
eece52b5 | 3202 | Common Var(flag_verbose_asm) |
a7b2e184 | 3203 | Add extra commentary to assembler output. |
6ff3a151 | 3204 | |
d7afec4b | 3205 | fvisibility= |
e6d4b984 | 3206 | Common Joined RejectNegative Enum(symbol_visibility) Var(default_visibility) Init(VISIBILITY_DEFAULT) |
a7b2e184 | 3207 | -fvisibility=[default|internal|hidden|protected] Set the default symbol visibility. |
d7afec4b | 3208 | |
e6d4b984 JM |
3209 | Enum |
3210 | Name(symbol_visibility) Type(enum symbol_visibility) UnknownError(unrecognized visibility value %qs) | |
3211 | ||
3212 | EnumValue | |
3213 | Enum(symbol_visibility) String(default) Value(VISIBILITY_DEFAULT) | |
3214 | ||
3215 | EnumValue | |
3216 | Enum(symbol_visibility) String(internal) Value(VISIBILITY_INTERNAL) | |
3217 | ||
3218 | EnumValue | |
3219 | Enum(symbol_visibility) String(hidden) Value(VISIBILITY_HIDDEN) | |
3220 | ||
3221 | EnumValue | |
3222 | Enum(symbol_visibility) String(protected) Value(VISIBILITY_PROTECTED) | |
d7afec4b | 3223 | |
2077db1b CT |
3224 | fvtable-verify= |
3225 | Common Joined RejectNegative Enum(vtv_priority) Var(flag_vtable_verify) Init(VTV_NO_PRIORITY) | |
3226 | Validate vtable pointers before using them. | |
3227 | ||
3228 | Enum | |
3229 | Name(vtv_priority) Type(enum vtv_priority) UnknownError(unknown vtable verify initialization priority %qs) | |
3230 | ||
3231 | EnumValue | |
3232 | Enum(vtv_priority) String(none) Value(VTV_NO_PRIORITY) | |
3233 | ||
3234 | EnumValue | |
3235 | Enum(vtv_priority) String(std) Value(VTV_STANDARD_PRIORITY) | |
3236 | ||
3237 | EnumValue | |
3238 | Enum(vtv_priority) String(preinit) Value(VTV_PREINIT_PRIORITY) | |
3239 | ||
3240 | fvtv-counts | |
3241 | Common Var(flag_vtv_counts) | |
3242 | Output vtable verification counters. | |
3243 | ||
3244 | fvtv-debug | |
3245 | Common Var(flag_vtv_debug) | |
3246 | Output vtable verification pointer sets information. | |
3247 | ||
fca9dc00 | 3248 | fvpt |
eece52b5 | 3249 | Common Var(flag_value_profile_transformations) Optimization |
a7b2e184 | 3250 | Use expression value profiles in optimizations. |
fca9dc00 | 3251 | |
62551c66 | 3252 | fweb |
e415bc4c | 3253 | Common Var(flag_web) Optimization EnabledBy(funroll-loops) |
a7b2e184 | 3254 | Construct webs and split unrelated uses of single variable. |
62551c66 | 3255 | |
c2699190 | 3256 | ftree-builtin-call-dce |
eece52b5 | 3257 | Common Var(flag_tree_builtin_call_dce) Init(0) Optimization |
a7b2e184 | 3258 | Enable conditional dead code elimination for builtin calls. |
c2699190 | 3259 | |
ce91e74c | 3260 | fwhole-program |
eece52b5 | 3261 | Common Var(flag_whole_program) Init(0) |
a7b2e184 | 3262 | Perform whole program optimizations. |
ce91e74c | 3263 | |
3fccbb9e | 3264 | fwrapv-pointer |
eece52b5 | 3265 | Common Var(flag_wrapv_pointer) Optimization |
3fccbb9e JJ |
3266 | Assume pointer overflow wraps around. |
3267 | ||
6ff3a151 | 3268 | fwrapv |
eece52b5 | 3269 | Common Var(flag_wrapv) Optimization |
a7b2e184 | 3270 | Assume signed arithmetic overflow wraps around. |
6ff3a151 | 3271 | |
6ff3a151 | 3272 | fzero-initialized-in-bss |
eece52b5 | 3273 | Common Var(flag_zero_initialized_in_bss) Init(1) |
a7b2e184 | 3274 | Put zero initialized data in the bss section. |
6ff3a151 | 3275 | |
d10f3e90 | 3276 | fzero-call-used-regs= |
eece52b5 | 3277 | Common RejectNegative Joined |
d10f3e90 | 3278 | Clear call-used registers upon function return. |
3279 | ||
e01cc6dc | 3280 | g |
9ed32e27 | 3281 | Common Driver RejectNegative JoinedOrMissing |
a7b2e184 | 3282 | Generate debug information in default format. |
df38ffef | 3283 | |
924c9e3e | 3284 | gas-loc-support |
4cb52980 | 3285 | Common Driver Var(dwarf2out_as_loc_support) |
04e5c73d | 3286 | Assume assembler support for (DWARF2+) .loc directives. |
924c9e3e AO |
3287 | |
3288 | gas-locview-support | |
4cb52980 | 3289 | Common Driver Var(dwarf2out_as_locview_support) |
04e5c73d | 3290 | Assume assembler support for view in (DWARF2+) .loc directives. |
924c9e3e | 3291 | |
e7e95821 | 3292 | gcoff |
68a57628 | 3293 | Common Driver WarnRemoved |
e7e95821 JW |
3294 | Does nothing. Preserved for backward compatibility. |
3295 | ||
3296 | gcoff1 | |
68a57628 | 3297 | Common Driver WarnRemoved |
e7e95821 JW |
3298 | Does nothing. Preserved for backward compatibility. |
3299 | ||
3300 | gcoff2 | |
68a57628 | 3301 | Common Driver WarnRemoved |
e7e95821 JW |
3302 | Does nothing. Preserved for backward compatibility. |
3303 | ||
3304 | gcoff3 | |
68a57628 | 3305 | Common Driver WarnRemoved |
e7e95821 JW |
3306 | Does nothing. Preserved for backward compatibility. |
3307 | ||
0029b929 | 3308 | gcolumn-info |
8008dd1c | 3309 | Common Driver Var(debug_column_info,1) Init(1) |
0029b929 JJ |
3310 | Record DW_AT_decl_column and DW_AT_call_column in DWARF. |
3311 | ||
b7e215a8 IB |
3312 | ; The CTF generation process feeds off DWARF dies. This option implicitly |
3313 | ; updates the debug_info_level to DINFO_LEVEL_NORMAL. | |
3314 | gctf | |
3315 | Common Driver RejectNegative JoinedOrMissing | |
3316 | Generate CTF debug information at default level. | |
3317 | ||
3318 | gbtf | |
3319 | Common Driver RejectNegative JoinedOrMissing | |
3320 | Generate BTF debug information at default level. | |
3321 | ||
6782438d | 3322 | gdwarf |
1c70261c | 3323 | Common Driver JoinedOrMissing Negative(gdwarf-) |
a7b2e184 | 3324 | Generate debug information in default version of DWARF format. |
6782438d | 3325 | |
53b2323e | 3326 | gdwarf- |
8dffd0e9 | 3327 | Common Driver Joined UInteger Var(dwarf_version) Init(DWARF_VERSION_DEFAULT) |
a7b2e184 | 3328 | Generate debug information in DWARF v2 (or later) format. |
df38ffef | 3329 | |
65312dfc JJ |
3330 | gdwarf32 |
3331 | Common Driver Var(dwarf_offset_size,4) Init(4) RejectNegative | |
3332 | Use 32-bit DWARF format when emitting DWARF debug information. | |
3333 | ||
3334 | gdwarf64 | |
3335 | Common Driver Var(dwarf_offset_size,8) RejectNegative | |
3336 | Use 64-bit DWARF format when emitting DWARF debug information. | |
3337 | ||
df38ffef | 3338 | ggdb |
1c70261c | 3339 | Common Driver JoinedOrMissing |
a7b2e184 | 3340 | Generate debug information in default extended format. |
df38ffef | 3341 | |
924c9e3e | 3342 | ginline-points |
4cb52980 | 3343 | Common Driver Var(debug_inline_points) |
04e5c73d | 3344 | Generate extended entry point information for inlined functions. |
924c9e3e AO |
3345 | |
3346 | ginternal-reset-location-views | |
3347 | Common Driver Var(debug_internal_reset_location_views) Init(2) | |
04e5c73d | 3348 | Compute locview reset points based on insn length estimates. |
924c9e3e | 3349 | |
9ed32e27 AO |
3350 | gno- |
3351 | RejectNegative Joined Undocumented | |
3352 | ; Catch the gno- prefix, so it doesn't backtrack to g<level>. | |
3353 | ||
5175cbaf | 3354 | gno-pubnames |
1c70261c | 3355 | Common Driver Negative(gpubnames) Var(debug_generate_pub_sections, 0) Init(-1) |
5175cbaf SA |
3356 | Don't generate DWARF pubnames and pubtypes sections. |
3357 | ||
3358 | gpubnames | |
1c70261c | 3359 | Common Driver Negative(ggnu-pubnames) Var(debug_generate_pub_sections, 1) |
5175cbaf SA |
3360 | Generate DWARF pubnames and pubtypes sections. |
3361 | ||
7a1dd0fa | 3362 | ggnu-pubnames |
1c70261c | 3363 | Common Driver Negative(gno-pubnames) Var(debug_generate_pub_sections, 2) |
7a1dd0fa SA |
3364 | Generate DWARF pubnames and pubtypes sections with GNU extensions. |
3365 | ||
e967adf4 | 3366 | grecord-gcc-switches |
9ed32e27 | 3367 | Common Driver Var(dwarf_record_gcc_switches) Init(1) |
e967adf4 JJ |
3368 | Record gcc command line switches in DWARF DW_AT_producer. |
3369 | ||
99ea153e | 3370 | gsplit-dwarf |
9ed32e27 | 3371 | Common Driver Var(dwarf_split_debug_info) Init(0) |
a7b2e184 | 3372 | Generate debug information in separate .dwo files. |
99ea153e | 3373 | |
df38ffef | 3374 | gstabs |
7e0db0cd ML |
3375 | Common Driver WarnRemoved |
3376 | Does nothing. Preserved for backward compatibility. | |
df38ffef NB |
3377 | |
3378 | gstabs+ | |
7e0db0cd ML |
3379 | Common Driver WarnRemoved |
3380 | Does nothing. Preserved for backward compatibility. | |
df38ffef | 3381 | |
8697bf9f | 3382 | gstatement-frontiers |
b4702276 | 3383 | Common Driver Var(debug_nonbind_markers_p) PerFunction |
8697bf9f AO |
3384 | Emit progressive recommended breakpoint locations. |
3385 | ||
65f753a0 | 3386 | gstrict-dwarf |
eece52b5 | 3387 | Common Driver Var(dwarf_strict) Init(0) |
a7b2e184 | 3388 | Don't emit DWARF additions beyond selected version. |
65f753a0 | 3389 | |
03e992ac | 3390 | gdescribe-dies |
eece52b5 | 3391 | Common Driver Var(flag_describe_dies) Init(0) |
03e992ac TV |
3392 | Add description attributes to some DWARF DIEs that have no name attribute. |
3393 | ||
2153915d | 3394 | gtoggle |
eece52b5 | 3395 | Common Driver Var(flag_gtoggle) |
a7b2e184 | 3396 | Toggle debug information generation. |
2153915d | 3397 | |
bd2b9f1e | 3398 | gvariable-location-views |
4cb52980 | 3399 | Common Driver Var(debug_variable_location_views, 1) |
bd2b9f1e AO |
3400 | Augment variable location lists with progressive views. |
3401 | ||
3402 | gvariable-location-views=incompat5 | |
3403 | Common Driver RejectNegative Var(debug_variable_location_views, -1) Init(2) | |
3404 | ||
df38ffef | 3405 | gvms |
7e0db0cd | 3406 | Common Driver JoinedOrMissing |
a7b2e184 | 3407 | Generate debug information in VMS format. |
df38ffef NB |
3408 | |
3409 | gxcoff | |
7e0db0cd ML |
3410 | Common Driver WarnRemoved |
3411 | Does nothing. Preserved for backward compatibility. | |
df38ffef NB |
3412 | |
3413 | gxcoff+ | |
7e0db0cd ML |
3414 | Common Driver JoinedOrMissing WarnRemoved |
3415 | Does nothing. Preserved for backward compatibility. | |
e01cc6dc | 3416 | |
29d7cbd1 RO |
3417 | Enum |
3418 | Name(compressed_debug_sections) Type(int) | |
3419 | ||
3420 | ; Since -gz= is completely handled in specs, the values aren't used and we | |
3421 | ; assign arbitrary constants. | |
3422 | EnumValue | |
3423 | Enum(compressed_debug_sections) String(none) Value(0) | |
3424 | ||
3425 | EnumValue | |
3426 | Enum(compressed_debug_sections) String(zlib) Value(1) | |
3427 | ||
3428 | EnumValue | |
b7723e13 ML |
3429 | Enum(compressed_debug_sections) String(zstd) Value(2) |
3430 | ||
3431 | EnumValue | |
3432 | Enum(compressed_debug_sections) String(zlib-gnu) Value(3) | |
29d7cbd1 RO |
3433 | |
3434 | gz | |
3435 | Common Driver | |
a7b2e184 | 3436 | Generate compressed debug sections. |
29d7cbd1 RO |
3437 | |
3438 | gz= | |
9ed32e27 | 3439 | Common Driver RejectNegative Joined Enum(compressed_debug_sections) |
a7b2e184 | 3440 | -gz=<format> Generate compressed debug sections in format <format>. |
29d7cbd1 | 3441 | |
6d721f67 JM |
3442 | h |
3443 | Driver Joined Separate | |
3444 | ||
4adbd5dd MK |
3445 | iplugindir= |
3446 | Common Joined Var(plugindir_string) Init(0) | |
a7b2e184 | 3447 | -iplugindir=<dir> Set <dir> to be the default plugin directory. |
4adbd5dd | 3448 | |
e0cdc09f MK |
3449 | imultiarch |
3450 | Common Joined Separate RejectDriver Var(imultiarch) Init(0) | |
a7b2e184 | 3451 | -imultiarch <dir> Set <dir> to be the multiarch include subdirectory. |
e0cdc09f | 3452 | |
603349bf JM |
3453 | l |
3454 | Driver Joined Separate | |
3455 | ||
dd9f93dc JM |
3456 | n |
3457 | Driver | |
3458 | ||
603349bf JM |
3459 | no-canonical-prefixes |
3460 | Driver | |
3461 | ||
d9d16a19 JM |
3462 | nodefaultlibs |
3463 | Driver | |
3464 | ||
bab79a40 JM |
3465 | nostartfiles |
3466 | Driver | |
3467 | ||
f37866e8 OH |
3468 | nolibc |
3469 | Driver | |
3470 | ||
d9d16a19 JM |
3471 | nostdlib |
3472 | Driver | |
3473 | ||
fc2fb4fd AO |
3474 | nostdlib++ |
3475 | Driver | |
3476 | ||
d185d268 | 3477 | o |
d5478783 | 3478 | Common Driver Joined Separate Var(asm_file_name) MissingArgError(missing filename after %qs) |
a7b2e184 | 3479 | -o <file> Place output into <file>. |
d185d268 NB |
3480 | |
3481 | p | |
50431bc4 | 3482 | Common Var(profile_flag) |
a7b2e184 | 3483 | Enable function profiling. |
d185d268 | 3484 | |
603349bf JM |
3485 | pass-exit-codes |
3486 | Driver Var(pass_exit_codes) | |
3487 | ||
d185d268 | 3488 | pedantic |
c1771a20 | 3489 | Common Alias(Wpedantic) |
d185d268 NB |
3490 | |
3491 | pedantic-errors | |
d5478783 | 3492 | Common Var(flag_pedantic_errors) |
a7b2e184 | 3493 | Like -pedantic but issue them as errors. |
d185d268 | 3494 | |
d9d16a19 JM |
3495 | pg |
3496 | Driver | |
3497 | ||
603349bf JM |
3498 | pipe |
3499 | Driver Var(use_pipes) | |
3500 | ||
3501 | print-file-name= | |
3502 | Driver JoinedOrMissing Var(print_file_name) | |
3503 | ||
3504 | print-libgcc-file-name | |
3505 | Driver | |
3506 | ||
3507 | print-multi-directory | |
3508 | Driver Var(print_multi_directory) | |
3509 | ||
3510 | print-multi-lib | |
3511 | Driver Var(print_multi_lib) | |
3512 | ||
3513 | print-multi-os-directory | |
3514 | Driver Var(print_multi_os_directory) | |
a7b2e184 | 3515 | |
e0cdc09f MK |
3516 | print-multiarch |
3517 | Driver Var(print_multiarch) | |
603349bf JM |
3518 | |
3519 | print-prog-name= | |
3520 | Driver JoinedOrMissing Var(print_prog_name) | |
3521 | ||
3522 | print-search-dirs | |
3523 | Driver Var(print_search_dirs) | |
3524 | ||
3525 | print-sysroot | |
3526 | Driver Var(print_sysroot) | |
3527 | ||
3528 | print-sysroot-headers-suffix | |
3529 | Driver Var(print_sysroot_headers_suffix) | |
3530 | ||
d7b42618 | 3531 | quiet |
603349bf | 3532 | Common Var(quiet_flag) RejectDriver |
a7b2e184 | 3533 | Do not display functions compiled or elapsed time. |
d7b42618 | 3534 | |
dd9f93dc JM |
3535 | r |
3536 | Driver | |
3537 | ||
3538 | s | |
3539 | Driver | |
3540 | ||
603349bf JM |
3541 | save-temps |
3542 | Driver | |
3543 | ||
3544 | save-temps= | |
3545 | Driver Joined | |
3546 | ||
dd9f93dc JM |
3547 | t |
3548 | Driver | |
3549 | ||
603349bf JM |
3550 | time |
3551 | Driver Var(report_times) | |
3552 | ||
3553 | time= | |
3554 | Driver JoinedOrMissing | |
3555 | ||
e200444e JM |
3556 | u |
3557 | Driver Joined Separate | |
3558 | ||
5642f5d5 JM |
3559 | undef |
3560 | Driver | |
3561 | ; C option, but driver must not handle as "-u ndef". | |
3562 | ||
603349bf | 3563 | v |
d5478783 | 3564 | Common Driver Var(verbose_flag) |
a7b2e184 | 3565 | Enable verbose output. |
603349bf | 3566 | |
d185d268 | 3567 | version |
603349bf | 3568 | Common Var(version_flag) RejectDriver |
a7b2e184 | 3569 | Display the compiler's version. |
d185d268 NB |
3570 | |
3571 | w | |
50431bc4 | 3572 | Common Var(inhibit_warnings) |
a7b2e184 | 3573 | Suppress warnings. |
d185d268 | 3574 | |
603349bf JM |
3575 | wrapper |
3576 | Driver Separate Var(wrapper_string) | |
3577 | ||
3578 | x | |
3579 | Driver Joined Separate | |
3580 | ||
528dc603 | 3581 | shared |
b4fed890 | 3582 | Driver RejectNegative Negative(static-pie) |
a7b2e184 | 3583 | Create a shared library. |
528dc603 | 3584 | |
603349bf JM |
3585 | shared-libgcc |
3586 | Driver | |
3587 | ||
3588 | specs | |
5de8299c | 3589 | Driver Separate Alias(specs=) |
603349bf JM |
3590 | |
3591 | specs= | |
3592 | Driver Joined | |
3593 | ||
d9d16a19 JM |
3594 | static |
3595 | Driver | |
3596 | ||
603349bf JM |
3597 | static-libgcc |
3598 | Driver | |
3599 | ||
3600 | static-libgfortran | |
3601 | Driver | |
3602 | ; Documented for Fortran, but always accepted by driver. | |
3603 | ||
185b307b IB |
3604 | static-libphobos |
3605 | Driver | |
3606 | ; Documented for D, but always accepted by driver. | |
3607 | ||
745be54b JJ |
3608 | static-libquadmath |
3609 | Driver | |
3610 | ; Documented for Fortran, but always accepted by driver. | |
3611 | ||
603349bf JM |
3612 | static-libstdc++ |
3613 | Driver | |
3614 | ||
7a938933 ILT |
3615 | static-libgo |
3616 | Driver | |
3617 | ; Documented for Go, but always accepted by driver. | |
3618 | ||
7e8d1b2d L |
3619 | static-libasan |
3620 | Driver | |
3621 | ||
3bd87832 MM |
3622 | static-libhwasan |
3623 | Driver | |
3624 | ||
32b4b7f5 DV |
3625 | static-libtsan |
3626 | Driver | |
3627 | ||
9065ada9 JJ |
3628 | static-liblsan |
3629 | Driver | |
3630 | ||
de5a5fa1 MP |
3631 | static-libubsan |
3632 | Driver | |
3633 | ||
e200444e JM |
3634 | symbolic |
3635 | Driver | |
3636 | ||
428b3812 | 3637 | no-pie |
5460e1fc | 3638 | Driver RejectNegative Negative(shared) |
b4fed890 | 3639 | Don't create a dynamically linked position independent executable. |
428b3812 L |
3640 | |
3641 | pie | |
3642 | Driver RejectNegative Negative(no-pie) | |
b4fed890 L |
3643 | Create a dynamically linked position independent executable. |
3644 | ||
3645 | static-pie | |
3646 | Driver RejectNegative Negative(pie) | |
3647 | Create a static position independent executable. | |
528dc603 | 3648 | |
6d721f67 JM |
3649 | z |
3650 | Driver Joined Separate | |
3651 | ||
1e288103 | 3652 | fipa-ra |
eece52b5 | 3653 | Common Var(flag_ipa_ra) Optimization |
a7b2e184 | 3654 | Use caller save register across calls if possible. |
d996e61a | 3655 | |
d7b42618 | 3656 | ; This comment is to ensure we retain the blank line above. |