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