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