2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / gcc / c-family / c.opt
blobc318cad951d2b726ef63f14d782d0b96f9e981a4
1 ; Options for the C, ObjC, C++ and ObjC++ front ends.
2 ; Copyright (C) 2003-2014 Free Software Foundation, Inc.
4 ; This file is part of GCC.
6 ; GCC is free software; you can redistribute it and/or modify it under
7 ; the terms of the GNU General Public License as published by the Free
8 ; Software Foundation; either version 3, or (at your option) any later
9 ; version.
11 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 ; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14 ; for more details.
16 ; You should have received a copy of the GNU General Public License
17 ; along with GCC; see the file COPYING3.  If not see
18 ; <http://www.gnu.org/licenses/>.
20 ; See the GCC internals manual for a description of this file's format.
22 ; Please try to keep this file in ASCII collating order.
24 Language
27 Language
28 ObjC
30 Language
31 C++
33 Language
34 ObjC++
36 -all-warnings
37 C ObjC C++ ObjC++ Warning Alias(Wall)
39 -ansi
40 C ObjC C++ ObjC++ Alias(ansi)
42 -assert
43 C ObjC C++ ObjC++ Separate Alias(A) MissingArgError(assertion missing after %qs)
45 -assert=
46 C ObjC C++ ObjC++ Joined Alias(A) MissingArgError(assertion missing after %qs)
48 -comments
49 C ObjC C++ ObjC++ Alias(C)
51 -comments-in-macros
52 C ObjC C++ ObjC++ Alias(CC)
54 -define-macro
55 C ObjC C++ ObjC++ Separate Alias(D) MissingArgError(macro name missing after %qs)
57 -define-macro=
58 C ObjC C++ ObjC++ Joined Alias(D) MissingArgError(macro name missing after %qs)
60 -dependencies
61 C ObjC C++ ObjC++ Alias(M)
63 -dump
64 C ObjC C++ ObjC++ Separate Alias(d)
66 -dump=
67 C ObjC C++ ObjC++ Joined Alias(d)
69 -imacros
70 C ObjC C++ ObjC++ Separate Alias(imacros) MissingArgError(missing filename after %qs)
72 -imacros=
73 C ObjC C++ ObjC++ Joined Alias(imacros) MissingArgError(missing filename after %qs)
75 -include
76 C ObjC C++ ObjC++ Separate Alias(include) MissingArgError(missing filename after %qs)
78 -include=
79 C ObjC C++ ObjC++ Joined Alias(include) MissingArgError(missing filename after %qs)
81 -include-barrier
82 C ObjC C++ ObjC++ Alias(I, -)
84 -include-directory
85 C ObjC C++ ObjC++ Separate Alias(I) MissingArgError(missing path after %qs)
87 -include-directory=
88 C ObjC C++ ObjC++ Joined Alias(I) MissingArgError(missing path after %qs)
90 -include-directory-after
91 C ObjC C++ ObjC++ Separate Alias(idirafter) MissingArgError(missing path after %qs)
93 -include-directory-after=
94 C ObjC C++ ObjC++ Joined Alias(idirafter) MissingArgError(missing path after %qs)
96 -include-prefix
97 C ObjC C++ ObjC++ Separate Alias(iprefix)
99 -include-prefix=
100 C ObjC C++ ObjC++ JoinedOrMissing Alias(iprefix)
102 -include-with-prefix
103 C ObjC C++ ObjC++ Separate Alias(iwithprefix)
105 -include-with-prefix=
106 C ObjC C++ ObjC++ JoinedOrMissing Alias(iwithprefix)
108 -include-with-prefix-after
109 C ObjC C++ ObjC++ Separate Alias(iwithprefix)
111 -include-with-prefix-after=
112 C ObjC C++ ObjC++ JoinedOrMissing Alias(iwithprefix)
114 -include-with-prefix-before
115 C ObjC C++ ObjC++ Separate Alias(iwithprefixbefore)
117 -include-with-prefix-before=
118 C ObjC C++ ObjC++ JoinedOrMissing Alias(iwithprefixbefore)
120 -no-integrated-cpp
121 Driver Alias(no-integrated-cpp)
123 -no-line-commands
124 C ObjC C++ ObjC++ Alias(P)
126 -no-standard-includes
127 C ObjC C++ ObjC++ Alias(nostdinc)
129 -no-warnings
130 C ObjC C++ ObjC++ Alias(w)
132 -output
133 C ObjC C++ ObjC++ Separate Alias(o)
135 -output=
136 C ObjC C++ ObjC++ Joined Alias(o)
138 -output-pch=
139 C ObjC C++ ObjC++ Joined Separate
141 -pedantic
142 C ObjC C++ ObjC++ Alias(pedantic)
144 -preprocess
145 C ObjC C++ ObjC++ Undocumented Alias(E)
147 -print-missing-file-dependencies
148 C ObjC C++ ObjC++ Alias(MG)
150 -trace-includes
151 C ObjC C++ ObjC++ Alias(H)
153 -traditional
154 Driver Alias(traditional)
156 -traditional-cpp
157 C ObjC C++ ObjC++ Alias(traditional-cpp)
159 -trigraphs
160 C ObjC C++ ObjC++ Alias(trigraphs)
162 -undefine-macro
163 C ObjC C++ ObjC++ Separate Alias(U) MissingArgError(macro name missing after %qs)
165 -undefine-macro=
166 C ObjC C++ ObjC++ Joined Alias(U) MissingArgError(macro name missing after %qs)
168 -user-dependencies
169 C ObjC C++ ObjC++ Alias(MM)
171 -verbose
172 Common C ObjC C++ ObjC++ Alias(v)
174 -write-dependencies
175 C ObjC C++ ObjC++ NoDriverArg Separate Alias(MD) MissingArgError(missing filename after %qs)
177 -write-user-dependencies
178 C ObjC C++ ObjC++ NoDriverArg Separate Alias(MMD) MissingArgError(missing filename after %qs)
181 C ObjC C++ ObjC++ Joined Separate MissingArgError(assertion missing after %qs)
182 -A<question>=<answer>   Assert the <answer> to <question>.  Putting '-' before <question> disables the <answer> to <question>
185 C ObjC C++ ObjC++
186 Do not discard comments
189 C ObjC C++ ObjC++
190 Do not discard comments in macro expansions
193 C ObjC C++ ObjC++ Joined Separate MissingArgError(macro name missing after %qs)
194 -D<macro>[=<val>]       Define a <macro> with <val> as its value.  If just <macro> is given, <val> is taken to be 1
197 C ObjC C++ ObjC++ Undocumented Var(flag_preprocess_only)
200 Driver C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
201 -F <dir>        Add <dir> to the end of the main framework include path
204 C ObjC C++ ObjC++
205 Print the name of header files as they are used
208 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
209 -I <dir>        Add <dir> to the end of the main include path
212 C ObjC C++ ObjC++
213 Generate make dependencies
216 C ObjC C++ ObjC++ NoDriverArg Separate MissingArgError(missing filename after %qs)
217 Generate make dependencies and compile
220 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs)
221 -MF <file>      Write dependency output to the given file
224 C ObjC C++ ObjC++
225 Treat missing header files as generated files
228 C ObjC C++ ObjC++
229 Like -M but ignore system header files
232 C ObjC C++ ObjC++ NoDriverArg Separate MissingArgError(missing filename after %qs)
233 Like -MD but ignore system header files
236 C ObjC C++ ObjC++
237 Generate phony targets for all headers
240 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing makefile target after %qs)
241 -MQ <target>    Add a MAKE-quoted target
244 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing makefile target after %qs)
245 -MT <target>    Add an unquoted target
248 C ObjC C++ ObjC++
249 Do not generate #line directives
252 C ObjC C++ ObjC++ Joined Separate MissingArgError(macro name missing after %qs)
253 -U<macro>       Undefine <macro>
255 Wabi
256 C ObjC C++ ObjC++ LTO Var(warn_abi) Warning
257 Warn about things that will change when compiling with an ABI-compliant compiler
259 Wabi=
260 C ObjC C++ ObjC++ LTO Joined RejectNegative UInteger Warning
261 Warn about things that change between the current -fabi-version and the specified version
263 Wabi-tag
264 C++ ObjC++ Var(warn_abi_tag) Warning
265 Warn if a subobject has an abi_tag attribute that the complete object type does not have
267 Wpsabi
268 C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Undocumented
270 Waddress
271 C ObjC C++ ObjC++ Var(warn_address) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
272 Warn about suspicious uses of memory addresses
274 Wall
275 C ObjC C++ ObjC++ Warning
276 Enable most warning messages
278 Warray-bounds
279 LangEnabledBy(C ObjC C++ ObjC++,Wall)
280 ; in common.opt
282 Wassign-intercept
283 ObjC ObjC++ Var(warn_assign_intercept) Warning
284 Warn whenever an Objective-C assignment is being intercepted by the garbage collector
286 Wbad-function-cast
287 C ObjC Var(warn_bad_function_cast) Warning
288 Warn about casting functions to incompatible types
290 Wbuiltin-macro-redefined
291 C ObjC C++ ObjC++ Warning
292 Warn when a built-in preprocessor macro is undefined or redefined
294 Wc++-compat
295 C ObjC Var(warn_cxx_compat) Warning
296 Warn about C constructs that are not in the common subset of C and C++
298 Wc++0x-compat
299 C++ ObjC++ Var(warn_cxx0x_compat) Warning LangEnabledBy(C++ ObjC++,Wall)
300 Deprecated in favor of -Wc++11-compat
302 Wc++11-compat
303 C++ ObjC++ Warning Alias(Wc++0x-compat)
304 Warn about C++ constructs whose meaning differs between ISO C++ 1998 and ISO C++ 2011
306 Wcast-qual
307 C ObjC C++ ObjC++ Var(warn_cast_qual) Warning
308 Warn about casts which discard qualifiers
310 Wchar-subscripts
311 C ObjC C++ ObjC++ Var(warn_char_subscripts) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
312 Warn about subscripts whose type is \"char\"
314 Wclobbered
315 C ObjC C++ ObjC++ Var(warn_clobbered) Warning EnabledBy(Wextra)
316 Warn about variables that might be changed by \"longjmp\" or \"vfork\"
318 Wcomment
319 C ObjC C++ ObjC++ Warning
320 Warn about possibly nested block comments, and C++ comments spanning more than one physical line
322 Wcomments
323 C ObjC C++ ObjC++ Warning Alias(Wcomment)
324 Synonym for -Wcomment
326 Wconditionally-supported
327 C++ ObjC++ Var(warn_conditionally_supported) Warning
328 Warn for conditionally-supported constructs
330 Wconversion
331 C ObjC C++ ObjC++ Var(warn_conversion) Warning
332 Warn for implicit type conversions that may change a value
334 Wconversion-null
335 C++ ObjC++ Var(warn_conversion_null) Init(1) Warning
336 Warn for converting NULL from/to a non-pointer type
338 Wctor-dtor-privacy
339 C++ ObjC++ Var(warn_ctor_dtor_privacy) Warning
340 Warn when all constructors and destructors are private
342 Wdeclaration-after-statement
343 C ObjC Var(warn_declaration_after_statement) Warning
344 Warn when a declaration is found after a statement
346 Wdelete-incomplete
347 C++ ObjC++ Var(warn_delete_incomplete) Init(1) Warning
348 Warn when deleting a pointer to incomplete type
350 Wdelete-non-virtual-dtor
351 C++ ObjC++ Var(warn_delnonvdtor) Warning LangEnabledBy(C++ ObjC++,Wall)
352 Warn about deleting polymorphic objects with non-virtual destructors
354 Wdelete-non-virtual-dtor
355 LangEnabledBy(C++ ObjC++,Weffc++)
358 Wdeprecated
359 C C++ ObjC ObjC++ Var(warn_deprecated) Init(1) Warning
360 Warn if a deprecated compiler feature, class, method, or field is used
362 Wdiscarded-qualifiers
363 C ObjC Var(warn_discarded_qualifiers) Init(1) Warning
364 Warn if type qualifiers on pointers are discarded
366 Wdiv-by-zero
367 C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1) Warning
368 Warn about compile-time integer division by zero
370 Weffc++
371 C++ ObjC++ Var(warn_ecpp) Warning
372 Warn about violations of Effective C++ style rules
374 Wempty-body
375 C ObjC C++ ObjC++ Var(warn_empty_body) Warning EnabledBy(Wextra)
376 Warn about an empty body in an if or else statement
378 Wendif-labels
379 C ObjC C++ ObjC++ Warning
380 Warn about stray tokens after #elif and #endif
382 Wenum-compare
383 C ObjC C++ ObjC++ Var(warn_enum_compare) Init(-1) Warning LangEnabledBy(C ObjC,Wall)
384 Warn about comparison of different enum types
386 Wenum-compare
387 LangEnabledBy(C ObjC,Wc++-compat)
390 Werror
391 C ObjC C++ ObjC++
392 ; Documented in common.opt
394 Werror-implicit-function-declaration
395 C ObjC RejectNegative Warning Alias(Werror=, implicit-function-declaration)
396 This switch is deprecated; use -Werror=implicit-function-declaration instead
398 Wfloat-conversion
399 C ObjC C++ ObjC++ Var(warn_float_conversion) LangEnabledBy(C ObjC C++ ObjC++,Wconversion)
400 Warn for implicit type conversions that cause loss of floating point precision
402 Wfloat-equal
403 C ObjC C++ ObjC++ Var(warn_float_equal) Warning
404 Warn if testing floating point numbers for equality
406 Wformat
407 C ObjC C++ ObjC++ Warning Alias(Wformat=, 1, 0)
408 Warn about printf/scanf/strftime/strfmon format string anomalies
410 Wformat-contains-nul
411 C ObjC C++ ObjC++ Var(warn_format_contains_nul) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 1, 0)
412 Warn about format strings that contain NUL bytes
414 Wformat-extra-args
415 C ObjC C++ ObjC++ Var(warn_format_extra_args) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 1, 0)
416 Warn if passing too many arguments to a function for its format string
418 Wformat-nonliteral
419 C ObjC C++ ObjC++ Var(warn_format_nonliteral) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
420 Warn about format strings that are not literals
422 Wformat-security
423 C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
424 Warn about possible security problems with format functions
426 Wformat-signedness
427 C ObjC C++ ObjC++ Var(warn_format_signedness) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
428 Warn about sign differences with format functions
430 Wformat-y2k
431 C ObjC C++ ObjC++ Var(warn_format_y2k) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=,warn_format >= 2, 0)
432 Warn about strftime formats yielding 2-digit years
434 Wformat-zero-length
435 C ObjC C++ ObjC++ Var(warn_format_zero_length) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=,warn_format >= 1, 0)
436 Warn about zero-length formats
438 Wformat=
439 C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0)
440 Warn about printf/scanf/strftime/strfmon format string anomalies
442 Wignored-qualifiers
443 C C++ Var(warn_ignored_qualifiers) Warning EnabledBy(Wextra)
444 Warn whenever type qualifiers are ignored.
446 Wincompatible-pointer-types
447 C ObjC Var(warn_incompatible_pointer_types) Init(1) Warning
448 Warn when there is a conversion between pointers that have incompatible types
450 Winit-self
451 C ObjC C++ ObjC++ Var(warn_init_self) Warning LangEnabledBy(C++ ObjC++,Wall)
452 Warn about variables which are initialized to themselves
454 Wimplicit
455 C ObjC Var(warn_implicit) Warning LangEnabledBy(C ObjC,Wall)
456 Warn about implicit declarations
458 Wdouble-promotion
459 C ObjC C++ ObjC++ Var(warn_double_promotion) Warning
460 Warn about implicit conversions from \"float\" to \"double\"
462 Wimplicit-function-declaration
463 C ObjC Var(warn_implicit_function_declaration) Init(-1) Warning LangEnabledBy(C ObjC,Wimplicit)
464 Warn about implicit function declarations
466 Wimplicit-int
467 C ObjC Var(warn_implicit_int) Warning LangEnabledBy(C ObjC,Wimplicit)
468 Warn when a declaration does not specify a type
470 Wimport
471 C ObjC C++ ObjC++ Undocumented Ignore
473 Winherited-variadic-ctor
474 C++ ObjC++ Var(warn_inh_var_ctor) Init(1) Warning
475 Warn about C++11 inheriting constructors when the base has a variadic constructor
477 Wint-conversion
478 C ObjC Var(warn_int_conversion) Init(1) Warning
479 Warn about incompatible integer to pointer and pointer to integer conversions
481 Wint-to-pointer-cast
482 C ObjC C++ ObjC++ Var(warn_int_to_pointer_cast) Init(1) Warning
483 Warn when there is a cast to a pointer from an integer of a different size
485 Winvalid-offsetof
486 C++ ObjC++ Var(warn_invalid_offsetof) Init(1) Warning
487 Warn about invalid uses of the \"offsetof\" macro
489 Winvalid-pch
490 C ObjC C++ ObjC++ Warning
491 Warn about PCH files that are found but not used
493 Wjump-misses-init
494 C ObjC Var(warn_jump_misses_init) Warning LangEnabledby(C ObjC,Wc++-compat)
495 Warn when a jump misses a variable initialization
497 Wliteral-suffix
498 C++ ObjC++ Warning
499 Warn when a string or character literal is followed by a ud-suffix which does not begin with an underscore.
501 Wlogical-op
502 C ObjC C++ ObjC++ Var(warn_logical_op) Init(0) Warning 
503 Warn when a logical operator is suspiciously always evaluating to true or false
505 Wlogical-not-parentheses
506 C ObjC C++ ObjC++ Var(warn_logical_not_paren) Warning
507 Warn when logical not is used on the left hand side operand of a comparison
509 Wlong-long
510 C ObjC C++ ObjC++ Var(warn_long_long) Init(-1) Warning
511 Do not warn about using \"long long\" when -pedantic
513 Wmain
514 C ObjC C++ ObjC++ Var(warn_main) Init(-1) Warning LangEnabledBy(C ObjC,Wall, 2, 0)
515 Warn about suspicious declarations of \"main\"
517 Wmain
518 LangEnabledBy(C ObjC C++ ObjC++,Wpedantic, 2, 0)
521 Wmemset-transposed-args
522 C ObjC C++ ObjC++ Var(warn_memset_transposed_args) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
523 Warn about suspicious calls to memset where the third argument is constant literal zero and the second is not
525 Wmissing-braces
526 C ObjC C++ ObjC++ Var(warn_missing_braces) Warning LangEnabledBy(C ObjC,Wall)
527 Warn about possibly missing braces around initializers
529 Wmissing-declarations
530 C ObjC C++ ObjC++ Var(warn_missing_declarations) Warning
531 Warn about global functions without previous declarations
533 Wmissing-field-initializers
534 C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Warning EnabledBy(Wextra)
535 Warn about missing fields in struct initializers
537 Wsizeof-pointer-memaccess
538 C ObjC C++ ObjC++ Var(warn_sizeof_pointer_memaccess) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
539 Warn about suspicious length parameters to certain string functions if the argument uses sizeof
541 Wsizeof-array-argument
542 C ObjC C++ ObjC++ Var(warn_sizeof_array_argument) Warning Init(1)
543 Warn when sizeof is applied on a parameter declared as an array
545 Wsuggest-attribute=format
546 C ObjC C++ ObjC++ Var(warn_suggest_attribute_format) Warning
547 Warn about functions which might be candidates for format attributes
549 Wswitch
550 C ObjC C++ ObjC++ Var(warn_switch) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
551 Warn about enumerated switches, with no default, missing a case
553 Wswitch-default
554 C ObjC C++ ObjC++ Var(warn_switch_default) Warning
555 Warn about enumerated switches missing a \"default:\" statement
557 Wswitch-enum
558 C ObjC C++ ObjC++ Var(warn_switch_enum) Warning
559 Warn about all enumerated switches missing a specific case
561 Wswitch-bool
562 C ObjC C++ ObjC++ Var(warn_switch_bool) Warning Init(1)
563 Warn about switches with boolean controlling expression
565 Wmissing-format-attribute
566 C ObjC C++ ObjC++ Alias(Wsuggest-attribute=format)
569 Wmissing-include-dirs
570 C ObjC C++ ObjC++ Warning
571 Warn about user-specified include directories that do not exist
573 Wmissing-parameter-type
574 C ObjC Var(warn_missing_parameter_type) Warning EnabledBy(Wextra)
575 Warn about function parameters declared without a type specifier in K&R-style functions
577 Wmissing-prototypes
578 C ObjC Var(warn_missing_prototypes) Warning
579 Warn about global functions without prototypes
581 Wmudflap
582 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
584 Wmultichar
585 C ObjC C++ ObjC++ Warning
586 Warn about use of multi-character character constants
588 Wnarrowing
589 C ObjC C++ ObjC++ Warning Var(warn_narrowing) Init(-1) LangEnabledBy(C++ ObjC++,Wall)
590 Warn about narrowing conversions within { } that are ill-formed in C++11
592 Wnarrowing
593 C ObjC C++ ObjC++ LangEnabledBy(C++ ObjC++,Wc++0x-compat)
596 Wnested-externs
597 C ObjC Var(warn_nested_externs) Warning
598 Warn about \"extern\" declarations not at file scope
600 Wnoexcept
601 C++ ObjC++ Var(warn_noexcept) Warning
602 Warn when a noexcept expression evaluates to false even though the expression can't actually throw
604 Wnon-template-friend
605 C++ ObjC++ Var(warn_nontemplate_friend) Init(1) Warning
606 Warn when non-templatized friend functions are declared within a template
608 Wnon-virtual-dtor
609 C++ ObjC++ Var(warn_nonvdtor) Warning LangEnabledBy(C++ ObjC++,Weffc++)
610 Warn about non-virtual destructors
612 Wnonnull
613 C ObjC C++ ObjC++ Var(warn_nonnull) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=,warn_format >= 1,0)
614 Warn about NULL being passed to argument slots marked as requiring non-NULL
616 Wnonnull
617 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
620 Wnormalized=
621 C ObjC C++ ObjC++ Joined Warning
622 -Wnormalized=<id|nfc|nfkc>      Warn about non-normalised Unicode strings
624 Wold-style-cast
625 C++ ObjC++ Var(warn_old_style_cast) Warning
626 Warn if a C-style cast is used in a program
628 Wold-style-declaration
629 C ObjC Var(warn_old_style_declaration) Warning EnabledBy(Wextra)
630 Warn for obsolescent usage in a declaration
632 Wold-style-definition
633 C ObjC Var(warn_old_style_definition) Warning
634 Warn if an old-style parameter definition is used
636 Wopenmp-simd
637 C C++ Var(warn_openmp_simd) Warning LangEnabledBy(C C++,Wall)
638 Warn if a simd directive is overridden by the vectorizer cost model
640 Woverlength-strings
641 C ObjC C++ ObjC++ Var(warn_overlength_strings) Warning LangEnabledBy(C ObjC C++ ObjC++,Wpedantic)
642 Warn if a string is longer than the maximum portable length specified by the standard
644 Woverloaded-virtual
645 C++ ObjC++ Var(warn_overloaded_virtual) Warning
646 Warn about overloaded virtual function names
648 Woverride-init
649 C ObjC Var(warn_override_init) Warning EnabledBy(Wextra)
650 Warn about overriding initializers without side effects
652 Wpacked-bitfield-compat
653 C ObjC C++ ObjC++ Var(warn_packed_bitfield_compat) Init(-1) Warning
654 Warn about packed bit-fields whose offset changed in GCC 4.4
656 Wparentheses
657 C ObjC C++ ObjC++ Var(warn_parentheses) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
658 Warn about possibly missing parentheses
660 Wpedantic
661 C ObjC C++ ObjC++ Warning
662 ; Documented in common.opt
664 Wpmf-conversions
665 C++ ObjC++ Var(warn_pmf2ptr) Init(1) Warning
666 Warn when converting the type of pointers to member functions
668 Wpointer-arith
669 C ObjC C++ ObjC++ Var(warn_pointer_arith) Warning LangEnabledBy(C ObjC C++ ObjC++,Wpedantic)
670 Warn about function pointer arithmetic
672 Wpointer-sign
673 C ObjC Var(warn_pointer_sign) Warning LangEnabledBy(C ObjC,Wall)
674 Warn when a pointer differs in signedness in an assignment
676 Wpointer-sign
677 C ObjC LangEnabledBy(C ObjC,Wpedantic)
680 Wpointer-to-int-cast
681 C ObjC Var(warn_pointer_to_int_cast) Init(1) Warning
682 Warn when a pointer is cast to an integer of a different size
684 Wpragmas
685 C ObjC C++ ObjC++ Var(warn_pragmas) Init(1) Warning
686 Warn about misuses of pragmas
688 Wdate-time
689 Common Var(cpp_warn_date_time) Warning
690 Warn about __TIME__, __DATE__ and __TIMESTAMP__ usage
692 Wproperty-assign-default
693 ObjC ObjC++ Var(warn_property_assign_default) Init(1) Warning
694 Warn if a property for an Objective-C object has no assign semantics specified
696 Wprotocol
697 ObjC ObjC++ Var(warn_protocol) Init(1) Warning
698 Warn if inherited methods are unimplemented
700 Wredundant-decls
701 C ObjC C++ ObjC++ Var(warn_redundant_decls) Warning
702 Warn about multiple declarations of the same object
704 Wreorder
705 C++ ObjC++ Var(warn_reorder) Warning LangEnabledBy(C++ ObjC++,Wall)
706 Warn when the compiler reorders code
708 Wreturn-local-addr
709 C ObjC C++ ObjC++ Var(warn_return_local_addr) Init(1) Warning
710 Warn about returning a pointer/reference to a local or temporary variable.
712 Wreturn-type
713 C ObjC C++ ObjC++ Var(warn_return_type) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
714 Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++)
716 Wselector
717 ObjC ObjC++ Var(warn_selector) Warning
718 Warn if a selector has multiple methods
720 Wshadow-ivar
721 ObjC ObjC++ Var(warn_shadow_ivar) EnabledBy(Wshadow) Init(1) Warning
722 Warn if a local declaration hides an instance variable
724 Wsequence-point
725 C ObjC C++ ObjC++ Var(warn_sequence_point) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
726 Warn about possible violations of sequence point rules
728 Wsign-compare
729 C ObjC C++ ObjC++ Var(warn_sign_compare) Warning LangEnabledBy(C++ ObjC++,Wall)
730 Warn about signed-unsigned comparisons
732 Wsign-compare
733 C ObjC C++ ObjC++ EnabledBy(Wextra)
736 Wsign-conversion
737 C ObjC C++ ObjC++ Var(warn_sign_conversion) LangEnabledBy(C ObjC,Wconversion)
738 Warn for implicit type conversions between signed and unsigned integers
740 Wsign-promo
741 C++ ObjC++ Var(warn_sign_promo) Warning
742 Warn when overload promotes from unsigned to signed
744 Wstrict-null-sentinel
745 C++ ObjC++ Warning Var(warn_strict_null_sentinel)
746 Warn about uncasted NULL used as sentinel
748 Wstrict-prototypes
749 C ObjC Var(warn_strict_prototypes) Warning
750 Warn about unprototyped function declarations
752 Wstrict-aliasing=
753 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall, 3, 0)
756 Wstrict-overflow=
757 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0)
760 Wstrict-selector-match
761 ObjC ObjC++ Var(warn_strict_selector_match) Warning
762 Warn if type signatures of candidate methods do not match exactly
764 Wsync-nand
765 C C++ Var(warn_sync_nand) Init(1) Warning
766 Warn when __sync_fetch_and_nand and __sync_nand_and_fetch built-in functions are used
768 Wsynth
769 C++ ObjC++ Var(warn_synth) Warning
770 Deprecated.  This switch has no effect
772 Wsystem-headers
773 C ObjC C++ ObjC++ Warning
774 ; Documented in common.opt
776 Wtraditional
777 C ObjC Var(warn_traditional) Warning
778 Warn about features not present in traditional C
780 Wtraditional-conversion
781 C ObjC Var(warn_traditional_conversion) Warning
782 Warn of prototypes causing type conversions different from what would happen in the absence of prototype
784 Wtrigraphs
785 C ObjC C++ ObjC++ Warning
786 Warn if trigraphs are encountered that might affect the meaning of the program
788 Wundeclared-selector
789 ObjC ObjC++ Var(warn_undeclared_selector) Warning
790 Warn about @selector()s without previously declared methods
792 Wundef
793 C ObjC C++ ObjC++ Warning
794 Warn if an undefined macro is used in an #if directive
796 Wuninitialized
797 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
800 Wmaybe-uninitialized
801 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
804 Wunknown-pragmas
805 C ObjC C++ ObjC++ Warning Var(warn_unknown_pragmas) LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0)
806 Warn about unrecognized pragmas
808 Wunsuffixed-float-constants
809 C ObjC Var(warn_unsuffixed_float_constants) Warning
810 Warn about unsuffixed float constants
812 Wunused
813 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
814 ; documented in common.opt
816 Wunused-local-typedefs
817 C ObjC C++ ObjC++ Var(warn_unused_local_typedefs) Warning EnabledBy(Wunused)
818 Warn when typedefs locally defined in a function are not used
820 Wunused-macros
821 C ObjC C++ ObjC++ Var(cpp_warn_unused_macros) Warning
822 Warn about macros defined in the main file that are not used
824 Wunused-result
825 C ObjC C++ ObjC++ Var(warn_unused_result) Init(1) Warning
826 Warn if a caller of a function, marked with attribute warn_unused_result, does not use its return value
828 Wvariadic-macros
829 C ObjC C++ ObjC++ Var(cpp_warn_variadic_macros) Init(1) Warning
830 Warn about using variadic macros
832 Wvarargs
833 C ObjC C++ ObjC++ Warning Var(warn_varargs) Init(1)
834 Warn about questionable usage of the macros used to retrieve variable arguments
836 Wvla
837 C ObjC C++ ObjC++ Var(warn_vla) Init(-1) Warning
838 Warn if a variable length array is used
840 Wvolatile-register-var
841 C ObjC C++ ObjC++ Var(warn_volatile_register_var) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
842 Warn when a register variable is declared volatile
844 Wvirtual-move-assign
845 C++ ObjC++ Var(warn_virtual_move_assign) Warning Init(1)
846 Warn if a virtual base has a non-trivial move assignment operator
848 Wwrite-strings
849 C ObjC C++ ObjC++ Var(warn_write_strings) Warning
850 In C++, nonzero means warn about deprecated conversion from string literals to 'char *'.  In C, similar warning, except that the conversion is of course not deprecated by the ISO C standard.
852 Wzero-as-null-pointer-constant
853 C++ ObjC++ Var(warn_zero_as_null_pointer_constant) Warning
854 Warn when a literal '0' is used as null pointer
856 Wuseless-cast
857 C++ ObjC++ Var(warn_useless_cast) Warning
858 Warn about useless casts
860 ansi
861 C ObjC C++ ObjC++
862 A synonym for -std=c89 (for C) or -std=c++98 (for C++)
865 C ObjC C++ ObjC++ Joined
866 ; Documented in common.opt.  FIXME - what about -dI, -dD, -dN and -dD?
868 fabi-compat-version=
869 C++ ObjC++ Joined RejectNegative UInteger Var(flag_abi_compat_version) Init(-1)
870 The version of the C++ ABI used for -Wabi warnings and link compatibility aliases
872 faccess-control
873 C++ ObjC++ Var(flag_access_control) Init(1)
874 Enforce class member access control semantics
876 fada-spec-parent=
877 C ObjC C++ ObjC++ RejectNegative Joined Var(ada_specs_parent)
878 -fada-spec-parent=unit  Dump Ada specs as child units of given parent
880 fall-virtual
881 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
883 fallow-parameterless-variadic-functions
884 C ObjC Var(flag_allow_parameterless_variadic_functions)
885 Allow variadic functions without named parameter
887 falt-external-templates
888 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
889 No longer supported
891 fasm
892 C ObjC C++ ObjC++ Var(flag_no_asm, 0)
893 Recognize the \"asm\" keyword
895 ; Define extra predefined macros for use in libgcc.
896 fbuilding-libgcc
897 C ObjC C++ ObjC++ Undocumented Var(flag_building_libgcc)
899 fbuiltin
900 C ObjC C++ ObjC++ Var(flag_no_builtin, 0)
901 Recognize built-in functions
903 fbuiltin-
904 C ObjC C++ ObjC++ Joined
906 fcanonical-system-headers
907 C ObjC C++ ObjC++
908 Where shorter, use canonicalized paths to systems headers.
910 fcilkplus
911 C ObjC C++ ObjC++ LTO Report Var(flag_cilkplus) Init(0)
912 Enable Cilk Plus
914 fcond-mismatch
915 C ObjC C++ ObjC++
916 Allow the arguments of the '?' operator to have different types
918 fconserve-space
919 C++ ObjC++ Var(flag_conserve_space)
920 Does nothing.  Preserved for backward compatibility.
922 fconstant-string-class=
923 ObjC ObjC++ Joined MissingArgError(no class name specified with %qs)
924 -fconst-string-class=<name>     Use class <name> for constant strings
926 fconstexpr-depth=
927 C++ ObjC++ Joined RejectNegative UInteger Var(max_constexpr_depth) Init(512)
928 -fconstexpr-depth=<number>      Specify maximum constexpr recursion depth
930 fdebug-cpp
931 C ObjC C++ ObjC++
932 Emit debug annotations during preprocessing
934 fdeduce-init-list
935 C++ ObjC++ Var(flag_deduce_init_list) Init(0)
936 -fdeduce-init-list      enable deduction of std::initializer_list for a template type parameter from a brace-enclosed initializer-list
938 fdeclone-ctor-dtor
939 C++ ObjC++ Var(flag_declone_ctor_dtor) Init(-1)
940 Factor complex constructors and destructors to favor space over speed
942 fdefault-inline
943 C++ ObjC++ Ignore
944 Does nothing.  Preserved for backward compatibility.
946 fdirectives-only
947 C ObjC C++ ObjC++
948 Preprocess directives only.
950 fdollars-in-identifiers
951 C ObjC C++ ObjC++
952 Permit '$' as an identifier character
954 fdump-ada-spec
955 C ObjC C++ ObjC++ RejectNegative Var(flag_dump_ada_spec)
956 Write all declarations as Ada code transitively
958 fdump-ada-spec-slim
959 C ObjC C++ ObjC++ RejectNegative Var(flag_dump_ada_spec_slim)
960 Write all declarations as Ada code for the given file only
962 felide-constructors
963 C++ ObjC++ Var(flag_elide_constructors) Init(1)
965 fenforce-eh-specs
966 C++ ObjC++ Var(flag_enforce_eh_specs) Init(1)
967 Generate code to check exception specifications
969 fenum-int-equiv
970 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
972 fexec-charset=
973 C ObjC C++ ObjC++ Joined RejectNegative
974 -fexec-charset=<cset>   Convert all strings and character constants to character set <cset>
976 fextended-identifiers
977 C ObjC C++ ObjC++
978 Permit universal character names (\\u and \\U) in identifiers
980 finput-charset=
981 C ObjC C++ ObjC++ Joined RejectNegative
982 -finput-charset=<cset>  Specify the default character set for source files
984 fextern-tls-init
985 C++ ObjC++ Var(flag_extern_tls_init) Init(-1)
986 Support dynamic initialization of thread-local variables in a different translation unit
988 fexternal-templates
989 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
991 ffor-scope
992 C++ ObjC++ Var(flag_new_for_scope) Init(1)
993 Scope of for-init-statement variables is local to the loop
995 ffreestanding
996 C ObjC C++ ObjC++
997 Do not assume that standard C libraries and \"main\" exist
999 fgnu-keywords
1000 C++ ObjC++ Var(flag_no_gnu_keywords, 0)
1001 Recognize GNU-defined keywords
1003 fgnu-runtime
1004 ObjC ObjC++ LTO Report RejectNegative Var(flag_next_runtime,0) Init(NEXT_OBJC_RUNTIME)
1005 Generate code for GNU runtime environment
1007 fgnu89-inline
1008 C ObjC Var(flag_gnu89_inline) Init(-1)
1009 Use traditional GNU semantics for inline functions
1011 fguiding-decls
1012 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1014 fhandle-exceptions
1015 C++ ObjC++ Optimization Alias(fexceptions) Warn({-fhandle-exceptions has been renamed -fexceptions (and is now on by default)})
1017 fhonor-std
1018 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1020 fhosted
1021 C ObjC
1022 Assume normal C execution environment
1024 fhuge-objects
1025 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1026 No longer supported
1028 fimplement-inlines
1029 C++ ObjC++ Var(flag_implement_inlines) Init(1)
1030 Export functions even if they can be inlined
1032 fimplicit-inline-templates
1033 C++ ObjC++ Var(flag_implicit_inline_templates) Init(1)
1034 Emit implicit instantiations of inline templates
1036 fimplicit-templates
1037 C++ ObjC++ Var(flag_implicit_templates) Init(1)
1038 Emit implicit instantiations of templates
1040 ffriend-injection
1041 C++ ObjC++ Var(flag_friend_injection)
1042 Inject friend functions into enclosing namespace
1044 fkeep-inline-dllexport
1045 C C++ ObjC ObjC++ Var(flag_keep_inline_dllexport) Init(1) Report Condition(TARGET_DLLIMPORT_DECL_ATTRIBUTES)
1046 Don't emit dllexported inline functions unless needed
1048 flabels-ok
1049 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1051 flax-vector-conversions
1052 C ObjC C++ ObjC++ Var(flag_lax_vector_conversions)
1053 Allow implicit conversions between vectors with differing numbers of subparts and/or differing element types.
1055 fms-extensions
1056 C ObjC C++ ObjC++ Var(flag_ms_extensions)
1057 Don't warn about uses of Microsoft extensions
1059 fmudflap
1060 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1062 fmudflapth
1063 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1065 fmudflapir
1066 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1068 fname-mangling-version-
1069 C++ ObjC++ Joined Ignore Warn(switch %qs is no longer supported)
1071 fnew-abi
1072 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1074 fnext-runtime
1075 ObjC ObjC++ LTO Report RejectNegative Var(flag_next_runtime)
1076 Generate code for NeXT (Apple Mac OS X) runtime environment
1078 fnil-receivers
1079 ObjC ObjC++ Var(flag_nil_receivers) Init(1)
1080 Assume that receivers of Objective-C messages may be nil
1082 flocal-ivars
1083 ObjC ObjC++ Var(flag_local_ivars) Init(1)
1084 Allow access to instance variables as if they were local declarations within instance method implementations.
1086 fivar-visibility=
1087 ObjC ObjC++ Joined RejectNegative Enum(ivar_visibility) Var(default_ivar_visibility) Init(IVAR_VISIBILITY_PROTECTED)
1088 -fvisibility=[private|protected|public|package] Set the default symbol visibility
1090 Enum
1091 Name(ivar_visibility) Type(enum ivar_visibility) UnknownError(unrecognized ivar visibility value %qs)
1093 EnumValue
1094 Enum(ivar_visibility) String(private) Value(IVAR_VISIBILITY_PRIVATE)
1096 EnumValue
1097 Enum(ivar_visibility) String(protected) Value(IVAR_VISIBILITY_PROTECTED)
1099 EnumValue
1100 Enum(ivar_visibility) String(public) Value(IVAR_VISIBILITY_PUBLIC)
1102 EnumValue
1103 Enum(ivar_visibility) String(package) Value(IVAR_VISIBILITY_PACKAGE)
1105 fnonansi-builtins
1106 C++ ObjC++ Var(flag_no_nonansi_builtin, 0)
1108 fnonnull-objects
1109 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1111 fnothrow-opt
1112 C++ ObjC++ Optimization Var(flag_nothrow_opt)
1113 Treat a throw() exception specification as noexcept to improve code size
1115 fobjc-abi-version=
1116 ObjC ObjC++ LTO Joined Report RejectNegative UInteger Var(flag_objc_abi)
1117 Specify which ABI to use for Objective-C family code and meta-data generation.
1119 ; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
1120 ; to initialize any non-POD ivars in Objective-C++ classes.
1121 fobjc-call-cxx-cdtors
1122 ObjC++ Var(flag_objc_call_cxx_cdtors)
1123 Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed
1125 fobjc-direct-dispatch
1126 ObjC ObjC++ Var(flag_objc_direct_dispatch)
1127 Allow fast jumps to the message dispatcher
1129 ; Nonzero means that we will allow new ObjC exception syntax (@throw,
1130 ; @try, etc.) in source code.
1131 fobjc-exceptions
1132 ObjC ObjC++ Var(flag_objc_exceptions)
1133 Enable Objective-C exception and synchronization syntax
1135 fobjc-gc
1136 ObjC ObjC++ LTO Var(flag_objc_gc)
1137 Enable garbage collection (GC) in Objective-C/Objective-C++ programs
1139 fobjc-nilcheck
1140 ObjC ObjC++ Var(flag_objc_nilcheck,1)
1141 Enable inline checks for nil receivers with the NeXT runtime and ABI version 2.
1143 ; Nonzero means that we generate NeXT setjmp based exceptions.
1144 fobjc-sjlj-exceptions
1145 ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1)
1146 Enable Objective-C setjmp exception handling runtime
1148 fobjc-std=objc1
1149 ObjC ObjC++ Var(flag_objc1_only)
1150 Conform to the Objective-C 1.0 language as implemented in GCC 4.0
1152 fopenmp
1153 C ObjC C++ ObjC++ Var(flag_openmp)
1154 Enable OpenMP (implies -frecursive in Fortran)
1156 fopenmp-simd
1157 C ObjC C++ ObjC++ Var(flag_openmp_simd)
1158 Enable OpenMP's SIMD directives
1160 foperator-names
1161 C++ ObjC++
1162 Recognize C++ keywords like \"compl\" and \"xor\"
1164 foptional-diags
1165 C++ ObjC++ Ignore
1166 Does nothing.  Preserved for backward compatibility.
1168 fpch-deps
1169 C ObjC C++ ObjC++
1171 fpch-preprocess
1172 C ObjC C++ ObjC++
1173 Look for and use PCH files even when preprocessing
1175 fpermissive
1176 C++ ObjC++ Var(flag_permissive)
1177 Downgrade conformance errors to warnings
1179 fplan9-extensions
1180 C ObjC Var(flag_plan9_extensions)
1181 Enable Plan 9 language extensions
1183 fpreprocessed
1184 C ObjC C++ ObjC++
1185 Treat the input file as already preprocessed
1187 ftrack-macro-expansion
1188 C ObjC C++ ObjC++ JoinedOrMissing RejectNegative UInteger
1189 ; converted into ftrack-macro-expansion=
1191 ftrack-macro-expansion=
1192 C ObjC C++ ObjC++ JoinedOrMissing RejectNegative UInteger
1193 -ftrack-macro-expansion=<0|1|2>  Track locations of tokens coming from macro expansion and display them in error messages
1195 fpretty-templates
1196 C++ ObjC++ Var(flag_pretty_templates) Init(1)
1197 -fno-pretty-templates Do not pretty-print template specializations as the template signature followed by the arguments
1199 freplace-objc-classes
1200 ObjC ObjC++ LTO Var(flag_replace_objc_classes)
1201 Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime
1203 frepo
1204 C++ ObjC++
1205 Enable automatic template instantiation
1207 frtti
1208 C++ ObjC++ Optimization Var(flag_rtti) Init(1)
1209 Generate run time type descriptor information
1211 fshort-double
1212 C ObjC C++ ObjC++ LTO Optimization Var(flag_short_double)
1213 Use the same size for double as for float
1215 fshort-enums
1216 C ObjC C++ ObjC++ LTO Optimization Var(flag_short_enums)
1217 Use the narrowest integer type possible for enumeration types
1219 fshort-wchar
1220 C ObjC C++ ObjC++ LTO Optimization Var(flag_short_wchar)
1221 Force the underlying type for \"wchar_t\" to be \"unsigned short\"
1223 fsigned-bitfields
1224 C ObjC C++ ObjC++ Var(flag_signed_bitfields) Init(1)
1225 When \"signed\" or \"unsigned\" is not given make the bitfield signed
1227 fsigned-char
1228 C ObjC C++ ObjC++ LTO Var(flag_signed_char)
1229 Make \"char\" signed by default
1231 fsquangle
1232 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1234 fstats
1235 C++ ObjC++ Var(flag_detailed_statistics)
1236 Display statistics accumulated during compilation
1238 fstrict-enums
1239 C++ ObjC++ Optimization Var(flag_strict_enums)
1240 Assume that values of enumeration type are always within the minimum range of that type
1242 fstrict-prototype
1243 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1245 ftabstop=
1246 C ObjC C++ ObjC++ Joined RejectNegative UInteger
1247 -ftabstop=<number>      Distance between tab stops for column reporting
1249 ftemplate-backtrace-limit=
1250 C++ ObjC++ Joined RejectNegative UInteger Var(template_backtrace_limit) Init(10)
1251 Set the maximum number of template instantiation notes for a single warning or error
1253 ftemplate-depth-
1254 C++ ObjC++ Joined RejectNegative Undocumented Alias(ftemplate-depth=)
1256 ftemplate-depth=
1257 C++ ObjC++ Joined RejectNegative UInteger
1258 -ftemplate-depth=<number>       Specify maximum template instantiation depth
1260 fthis-is-variable
1261 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1263 fthreadsafe-statics
1264 C++ ObjC++ Optimization Var(flag_threadsafe_statics) Init(1)
1265 -fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
1267 funsigned-bitfields
1268 C ObjC C++ ObjC++ Var(flag_signed_bitfields, 0)
1269 When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
1271 funsigned-char
1272 C ObjC C++ ObjC++ LTO Var(flag_signed_char, 0)
1273 Make \"char\" unsigned by default
1275 fuse-all-virtuals
1276 C++ ObjC++ Var(flag_use_all_virtuals) Init(1)
1277 Treat all virtual functions as odr-used
1279 fuse-cxa-atexit
1280 C++ ObjC++ Var(flag_use_cxa_atexit) Init(DEFAULT_USE_CXA_ATEXIT)
1281 Use __cxa_atexit to register destructors
1283 fuse-cxa-get-exception-ptr
1284 C++ ObjC++ Var(flag_use_cxa_get_exception_ptr) Init(2)
1285 Use __cxa_get_exception_ptr in exception handling
1287 fvisibility-inlines-hidden
1288 C++ ObjC++
1289 Marks all inlined functions and methods as having hidden visibility
1291 fvisibility-ms-compat
1292 C++ ObjC++ Var(flag_visibility_ms_compat)
1293 Changes visibility to match Microsoft Visual Studio by default
1295 fvtable-gc
1296 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1297 No longer supported
1299 fvtable-thunks
1300 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1301 No longer supported
1303 fweak
1304 C++ ObjC++ Var(flag_weak) Init(1)
1305 Emit common-like symbols as weak symbols
1307 fwide-exec-charset=
1308 C ObjC C++ ObjC++ Joined RejectNegative
1309 -fwide-exec-charset=<cset>      Convert all wide strings and character constants to character set <cset>
1311 fworking-directory
1312 C ObjC C++ ObjC++ Var(flag_working_directory) Init(-1)
1313 Generate a #line directive pointing at the current working directory
1315 fxref
1316 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1317 No longer supported
1319 fzero-link
1320 ObjC ObjC++ Var(flag_zero_link)
1321 Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode
1323 gen-decls
1324 ObjC ObjC++ Var(flag_gen_declaration)
1325 Dump declarations to a .decl file
1327 femit-struct-debug-baseonly
1328 C ObjC C++ ObjC++
1329 -femit-struct-debug-baseonly    Aggressive reduced debug info for structs
1331 femit-struct-debug-reduced
1332 C ObjC C++ ObjC++
1333 -femit-struct-debug-reduced     Conservative reduced debug info for structs
1335 femit-struct-debug-detailed=
1336 C ObjC C++ ObjC++ Joined
1337 -femit-struct-debug-detailed=<spec-list>        Detailed reduced debug info for structs
1339 fext-numeric-literals
1340 C++ ObjC++ 
1341 Interpret imaginary, fixed-point, or other gnu number suffix as the corresponding
1342 number literal rather than a user-defined number literal.
1344 idirafter
1345 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1346 -idirafter <dir>        Add <dir> to the end of the system include path
1348 imacros
1349 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs)
1350 -imacros <file> Accept definition of macros in <file>
1352 imultilib
1353 C ObjC C++ ObjC++ Joined Separate
1354 -imultilib <dir>        Set <dir> to be the multilib include subdirectory
1356 include
1357 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs)
1358 -include <file> Include the contents of <file> before other files
1360 iprefix
1361 C ObjC C++ ObjC++ Joined Separate
1362 -iprefix <path> Specify <path> as a prefix for next two options
1364 isysroot
1365 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1366 -isysroot <dir> Set <dir> to be the system root directory
1368 isystem
1369 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1370 -isystem <dir>  Add <dir> to the start of the system include path
1372 iquote
1373 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1374 -iquote <dir>   Add <dir> to the end of the quote include path
1376 iwithprefix
1377 C ObjC C++ ObjC++ Joined Separate
1378 -iwithprefix <dir>      Add <dir> to the end of the system include path
1380 iwithprefixbefore
1381 C ObjC C++ ObjC++ Joined Separate
1382 -iwithprefixbefore <dir>        Add <dir> to the end of the main include path
1384 lang-asm
1385 C Undocumented RejectDriver
1387 no-integrated-cpp
1388 Driver
1390 nostdinc
1391 C ObjC C++ ObjC++
1392 Do not search standard system include directories (those specified with -isystem will still be used)
1394 nostdinc++
1395 C++ ObjC++
1396 Do not search standard system include directories for C++
1399 C ObjC C++ ObjC++ Joined Separate
1400 ; Documented in common.opt
1402 pedantic
1403 C ObjC C++ ObjC++ Alias(Wpedantic)
1404 ; Documented in common.opt
1406 print-objc-runtime-info
1407 ObjC ObjC++
1408 Generate C header of platform-specific features
1410 remap
1411 C ObjC C++ ObjC++
1412 Remap file names when including files
1414 std=c++98
1415 C++ ObjC++
1416 Conform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum
1418 std=c++03
1419 C++ ObjC++ Alias(std=c++98)
1420 Conform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum
1422 std=c++11
1423 C++ ObjC++
1424 Conform to the ISO 2011 C++ standard
1426 std=c++0x
1427 C++ ObjC++ Alias(std=c++11) Undocumented
1428 Deprecated in favor of -std=c++11
1430 std=c++1y
1431 C++ ObjC++
1432 Conform to the ISO 2014(?) C++ draft standard (experimental and incomplete support)
1434 std=c++14
1435 C++ ObjC++ Alias(std=c++1y) Undocumented
1437 std=c++1z
1438 C++ ObjC++
1439 Conform to the ISO 2017(?) C++ draft standard (experimental and incomplete support)
1441 std=c++17
1442 C++ ObjC++ Alias(std=c++1z) Undocumented
1444 std=c11
1445 C ObjC
1446 Conform to the ISO 2011 C standard (experimental and incomplete support)
1448 std=c1x
1449 C ObjC Alias(std=c11)
1450 Deprecated in favor of -std=c11
1452 std=c89
1453 C ObjC Alias(std=c90)
1454 Conform to the ISO 1990 C standard
1456 std=c90
1457 C ObjC
1458 Conform to the ISO 1990 C standard
1460 std=c99
1461 C ObjC
1462 Conform to the ISO 1999 C standard
1464 std=c9x
1465 C ObjC Alias(std=c99)
1466 Deprecated in favor of -std=c99
1468 std=gnu++98
1469 C++ ObjC++
1470 Conform to the ISO 1998 C++ standard revised by the 2003 technical
1471 corrigendum with GNU extensions
1473 std=gnu++03
1474 C++ ObjC++ Alias(std=gnu++98)
1475 Conform to the ISO 1998 C++ standard revised by the 2003 technical
1476 corrigendum with GNU extensions
1478 std=gnu++11
1479 C++ ObjC++
1480 Conform to the ISO 2011 C++ standard with GNU extensions (experimental and incomplete support)
1482 std=gnu++0x
1483 C++ ObjC++ Alias(std=gnu++11)
1484 Deprecated in favor of -std=gnu++11
1486 std=gnu++1y
1487 C++ ObjC++
1488 Conform to the ISO 201y(4?) C++ draft standard with GNU extensions (experimental and incomplete support)
1490 std=gnu++14
1491 C++ ObjC++ Alias(std=gnu++1y) Undocumented
1493 std=gnu++1z
1494 C++ ObjC++
1495 Conform to the ISO 201z(7?) C++ draft standard with GNU extensions (experimental and incomplete support)
1497 std=gnu++17
1498 C++ ObjC++ Alias(std=gnu++1y) Undocumented
1500 std=gnu11
1501 C ObjC
1502 Conform to the ISO 2011 C standard with GNU extensions (experimental and incomplete support)
1504 std=gnu1x
1505 C ObjC Alias(std=gnu11)
1506 Deprecated in favor of -std=gnu11
1508 std=gnu89
1509 C ObjC Alias(std=gnu90)
1510 Conform to the ISO 1990 C standard with GNU extensions
1512 std=gnu90
1513 C ObjC
1514 Conform to the ISO 1990 C standard with GNU extensions
1516 std=gnu99
1517 C ObjC
1518 Conform to the ISO 1999 C standard with GNU extensions
1520 std=gnu9x
1521 C ObjC Alias(std=gnu99)
1522 Deprecated in favor of -std=gnu99
1524 std=iso9899:1990
1525 C ObjC Alias(std=c90)
1526 Conform to the ISO 1990 C standard
1528 std=iso9899:199409
1529 C ObjC
1530 Conform to the ISO 1990 C standard as amended in 1994
1532 std=iso9899:1999
1533 C ObjC Alias(std=c99)
1534 Conform to the ISO 1999 C standard
1536 std=iso9899:199x
1537 C ObjC Alias(std=c99)
1538 Deprecated in favor of -std=iso9899:1999
1540 std=iso9899:2011
1541 C ObjC Alias(std=c11)
1542 Conform to the ISO 2011 C standard (experimental and incomplete support)
1544 traditional
1545 Driver
1547 traditional-cpp
1548 C ObjC C++ ObjC++
1549 Enable traditional preprocessing
1551 trigraphs
1552 C ObjC C++ ObjC++
1553 -trigraphs      Support ISO C trigraphs
1555 undef
1556 C ObjC C++ ObjC++ Var(flag_undef)
1557 Do not predefine system-specific and GCC-specific macros
1560 C ObjC C++ ObjC++
1561 ; Documented in common.opt
1564 C ObjC C++ ObjC++
1565 ; Documented in common.opt
1567 ; This comment is to ensure we retain the blank line above.