Debian Codegraph @

gcc/common.opt

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