PR c/49706
[official-gcc.git] / gcc / c-family / c.opt
blob76e67d78ac767db5d58ecf78ab31bfa1c99021a6
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-tag
260 C++ ObjC++ Var(warn_abi_tag) Warning
261 Warn if a subobject has an abi_tag attribute that the complete object type does not have
263 Wpsabi
264 C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Undocumented
266 Waddress
267 C ObjC C++ ObjC++ Var(warn_address) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
268 Warn about suspicious uses of memory addresses
270 Wall
271 C ObjC C++ ObjC++ Warning
272 Enable most warning messages
274 Warray-bounds
275 LangEnabledBy(C ObjC C++ ObjC++,Wall)
276 ; in common.opt
278 Wassign-intercept
279 ObjC ObjC++ Var(warn_assign_intercept) Warning
280 Warn whenever an Objective-C assignment is being intercepted by the garbage collector
282 Wbad-function-cast
283 C ObjC Var(warn_bad_function_cast) Warning
284 Warn about casting functions to incompatible types
286 Wbuiltin-macro-redefined
287 C ObjC C++ ObjC++ Warning
288 Warn when a built-in preprocessor macro is undefined or redefined
290 Wc++-compat
291 C ObjC Var(warn_cxx_compat) Warning
292 Warn about C constructs that are not in the common subset of C and C++
294 Wc++0x-compat
295 C++ ObjC++ Var(warn_cxx0x_compat) Warning LangEnabledBy(C++ ObjC++,Wall)
296 Deprecated in favor of -Wc++11-compat
298 Wc++11-compat
299 C++ ObjC++ Warning Alias(Wc++0x-compat)
300 Warn about C++ constructs whose meaning differs between ISO C++ 1998 and ISO C++ 2011
302 Wcast-qual
303 C ObjC C++ ObjC++ Var(warn_cast_qual) Warning
304 Warn about casts which discard qualifiers
306 Wchar-subscripts
307 C ObjC C++ ObjC++ Var(warn_char_subscripts) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
308 Warn about subscripts whose type is \"char\"
310 Wclobbered
311 C ObjC C++ ObjC++ Var(warn_clobbered) Warning EnabledBy(Wextra)
312 Warn about variables that might be changed by \"longjmp\" or \"vfork\"
314 Wcomment
315 C ObjC C++ ObjC++ Warning
316 Warn about possibly nested block comments, and C++ comments spanning more than one physical line
318 Wcomments
319 C ObjC C++ ObjC++ Warning Alias(Wcomment)
320 Synonym for -Wcomment
322 Wconditionally-supported
323 C++ ObjC++ Var(warn_conditionally_supported) Warning
324 Warn for conditionally-supported constructs
326 Wconversion
327 C ObjC C++ ObjC++ Var(warn_conversion) Warning
328 Warn for implicit type conversions that may change a value
330 Wconversion-null
331 C++ ObjC++ Var(warn_conversion_null) Init(1) Warning
332 Warn for converting NULL from/to a non-pointer type
334 Wctor-dtor-privacy
335 C++ ObjC++ Var(warn_ctor_dtor_privacy) Warning
336 Warn when all constructors and destructors are private
338 Wdeclaration-after-statement
339 C ObjC Var(warn_declaration_after_statement) Warning
340 Warn when a declaration is found after a statement
342 Wdelete-incomplete
343 C++ ObjC++ Var(warn_delete_incomplete) Init(1) Warning
344 Warn when deleting a pointer to incomplete type
346 Wdelete-non-virtual-dtor
347 C++ ObjC++ Var(warn_delnonvdtor) Warning LangEnabledBy(C++ ObjC++,Wall)
348 Warn about deleting polymorphic objects with non-virtual destructors
350 Wdelete-non-virtual-dtor
351 LangEnabledBy(C++ ObjC++,Weffc++)
354 Wdeprecated
355 C C++ ObjC ObjC++ Var(warn_deprecated) Init(1) Warning
356 Warn if a deprecated compiler feature, class, method, or field is used
358 Wdiscarded-qualifiers
359 C ObjC Var(warn_discarded_qualifiers) Init(1) Warning
360 Warn if type qualifiers on pointers are discarded
362 Wdiv-by-zero
363 C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1) Warning
364 Warn about compile-time integer division by zero
366 Weffc++
367 C++ ObjC++ Var(warn_ecpp) Warning
368 Warn about violations of Effective C++ style rules
370 Wempty-body
371 C ObjC C++ ObjC++ Var(warn_empty_body) Warning EnabledBy(Wextra)
372 Warn about an empty body in an if or else statement
374 Wendif-labels
375 C ObjC C++ ObjC++ Warning
376 Warn about stray tokens after #elif and #endif
378 Wenum-compare
379 C ObjC C++ ObjC++ Var(warn_enum_compare) Init(-1) Warning LangEnabledBy(C ObjC,Wall)
380 Warn about comparison of different enum types
382 Wenum-compare
383 LangEnabledBy(C ObjC,Wc++-compat)
386 Werror
387 C ObjC C++ ObjC++
388 ; Documented in common.opt
390 Werror-implicit-function-declaration
391 C ObjC RejectNegative Warning Alias(Werror=, implicit-function-declaration)
392 This switch is deprecated; use -Werror=implicit-function-declaration instead
394 Wfloat-conversion
395 C ObjC C++ ObjC++ Var(warn_float_conversion) LangEnabledBy(C ObjC C++ ObjC++,Wconversion)
396 Warn for implicit type conversions that cause loss of floating point precision
398 Wfloat-equal
399 C ObjC C++ ObjC++ Var(warn_float_equal) Warning
400 Warn if testing floating point numbers for equality
402 Wformat
403 C ObjC C++ ObjC++ Warning Alias(Wformat=, 1, 0)
404 Warn about printf/scanf/strftime/strfmon format string anomalies
406 Wformat-contains-nul
407 C ObjC C++ ObjC++ Var(warn_format_contains_nul) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 1, 0)
408 Warn about format strings that contain NUL bytes
410 Wformat-extra-args
411 C ObjC C++ ObjC++ Var(warn_format_extra_args) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 1, 0)
412 Warn if passing too many arguments to a function for its format string
414 Wformat-nonliteral
415 C ObjC C++ ObjC++ Var(warn_format_nonliteral) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
416 Warn about format strings that are not literals
418 Wformat-security
419 C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
420 Warn about possible security problems with format functions
422 Wformat-signedness
423 C ObjC C++ ObjC++ Var(warn_format_signedness) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
424 Warn about sign differences with format functions
426 Wformat-y2k
427 C ObjC C++ ObjC++ Var(warn_format_y2k) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=,warn_format >= 2, 0)
428 Warn about strftime formats yielding 2-digit years
430 Wformat-zero-length
431 C ObjC C++ ObjC++ Var(warn_format_zero_length) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=,warn_format >= 1, 0)
432 Warn about zero-length formats
434 Wformat=
435 C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0)
436 Warn about printf/scanf/strftime/strfmon format string anomalies
438 Wignored-qualifiers
439 C C++ Var(warn_ignored_qualifiers) Warning EnabledBy(Wextra)
440 Warn whenever type qualifiers are ignored.
442 Winit-self
443 C ObjC C++ ObjC++ Var(warn_init_self) Warning LangEnabledBy(C++ ObjC++,Wall)
444 Warn about variables which are initialized to themselves
446 Wimplicit
447 C ObjC Var(warn_implicit) Warning LangEnabledBy(C ObjC,Wall)
448 Warn about implicit declarations
450 Wdouble-promotion
451 C ObjC C++ ObjC++ Var(warn_double_promotion) Warning
452 Warn about implicit conversions from \"float\" to \"double\"
454 Wimplicit-function-declaration
455 C ObjC Var(warn_implicit_function_declaration) Init(-1) Warning LangEnabledBy(C ObjC,Wimplicit)
456 Warn about implicit function declarations
458 Wimplicit-int
459 C ObjC Var(warn_implicit_int) Warning LangEnabledBy(C ObjC,Wimplicit)
460 Warn when a declaration does not specify a type
462 Wimport
463 C ObjC C++ ObjC++ Undocumented Ignore
465 Winherited-variadic-ctor
466 C++ ObjC++ Var(warn_inh_var_ctor) Init(1) Warning
467 Warn about C++11 inheriting constructors when the base has a variadic constructor
469 Wint-to-pointer-cast
470 C ObjC C++ ObjC++ Var(warn_int_to_pointer_cast) Init(1) Warning
471 Warn when there is a cast to a pointer from an integer of a different size
473 Winvalid-offsetof
474 C++ ObjC++ Var(warn_invalid_offsetof) Init(1) Warning
475 Warn about invalid uses of the \"offsetof\" macro
477 Winvalid-pch
478 C ObjC C++ ObjC++ Warning
479 Warn about PCH files that are found but not used
481 Wjump-misses-init
482 C ObjC Var(warn_jump_misses_init) Warning LangEnabledby(C ObjC,Wc++-compat)
483 Warn when a jump misses a variable initialization
485 Wliteral-suffix
486 C++ ObjC++ Warning
487 Warn when a string or character literal is followed by a ud-suffix which does not begin with an underscore.
489 Wlogical-op
490 C ObjC C++ ObjC++ Var(warn_logical_op) Init(0) Warning 
491 Warn when a logical operator is suspiciously always evaluating to true or false
493 Wlogical-not-parentheses
494 C ObjC C++ ObjC++ Var(warn_logical_not_paren) Warning
495 Warn when logical not is used on the left hand side operand of a comparison
497 Wlong-long
498 C ObjC C++ ObjC++ Var(warn_long_long) Init(-1) Warning
499 Do not warn about using \"long long\" when -pedantic
501 Wmain
502 C ObjC C++ ObjC++ Var(warn_main) Init(-1) Warning LangEnabledBy(C ObjC,Wall, 2, 0)
503 Warn about suspicious declarations of \"main\"
505 Wmain
506 LangEnabledBy(C ObjC C++ ObjC++,Wpedantic, 2, 0)
509 Wmissing-braces
510 C ObjC C++ ObjC++ Var(warn_missing_braces) Warning LangEnabledBy(C ObjC,Wall)
511 Warn about possibly missing braces around initializers
513 Wmissing-declarations
514 C ObjC C++ ObjC++ Var(warn_missing_declarations) Warning
515 Warn about global functions without previous declarations
517 Wmissing-field-initializers
518 C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Warning EnabledBy(Wextra)
519 Warn about missing fields in struct initializers
521 Wsizeof-pointer-memaccess
522 C ObjC C++ ObjC++ Var(warn_sizeof_pointer_memaccess) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
523 Warn about suspicious length parameters to certain string functions if the argument uses sizeof
525 Wsuggest-attribute=format
526 C ObjC C++ ObjC++ Var(warn_suggest_attribute_format) Warning
527 Warn about functions which might be candidates for format attributes
529 Wswitch
530 C ObjC C++ ObjC++ Var(warn_switch) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
531 Warn about enumerated switches, with no default, missing a case
533 Wswitch-default
534 C ObjC C++ ObjC++ Var(warn_switch_default) Warning
535 Warn about enumerated switches missing a \"default:\" statement
537 Wswitch-enum
538 C ObjC C++ ObjC++ Var(warn_switch_enum) Warning
539 Warn about all enumerated switches missing a specific case
541 Wswitch-bool
542 C ObjC C++ ObjC++ Warning Init(1)
543 Warn about switches with boolean controlling expression
545 Wmissing-format-attribute
546 C ObjC C++ ObjC++ Alias(Wsuggest-attribute=format)
549 Wmissing-include-dirs
550 C ObjC C++ ObjC++ Warning
551 Warn about user-specified include directories that do not exist
553 Wmissing-parameter-type
554 C ObjC Var(warn_missing_parameter_type) Warning EnabledBy(Wextra)
555 Warn about function parameters declared without a type specifier in K&R-style functions
557 Wmissing-prototypes
558 C ObjC Var(warn_missing_prototypes) Warning
559 Warn about global functions without prototypes
561 Wmudflap
562 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
564 Wmultichar
565 C ObjC C++ ObjC++ Warning
566 Warn about use of multi-character character constants
568 Wnarrowing
569 C ObjC C++ ObjC++ Warning Var(warn_narrowing) Init(-1) LangEnabledBy(C++ ObjC++,Wall)
570 Warn about narrowing conversions within { } that are ill-formed in C++11
572 Wnarrowing
573 C ObjC C++ ObjC++ LangEnabledBy(C++ ObjC++,Wc++0x-compat)
576 Wnested-externs
577 C ObjC Var(warn_nested_externs) Warning
578 Warn about \"extern\" declarations not at file scope
580 Wnoexcept
581 C++ ObjC++ Var(warn_noexcept) Warning
582 Warn when a noexcept expression evaluates to false even though the expression can't actually throw
584 Wnon-template-friend
585 C++ ObjC++ Var(warn_nontemplate_friend) Init(1) Warning
586 Warn when non-templatized friend functions are declared within a template
588 Wnon-virtual-dtor
589 C++ ObjC++ Var(warn_nonvdtor) Warning LangEnabledBy(C++ ObjC++,Weffc++)
590 Warn about non-virtual destructors
592 Wnonnull
593 C ObjC C++ ObjC++ Var(warn_nonnull) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=,warn_format >= 1,0)
594 Warn about NULL being passed to argument slots marked as requiring non-NULL
596 Wnonnull
597 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
600 Wnormalized=
601 C ObjC C++ ObjC++ Joined Warning
602 -Wnormalized=<id|nfc|nfkc>      Warn about non-normalised Unicode strings
604 Wold-style-cast
605 C++ ObjC++ Var(warn_old_style_cast) Warning
606 Warn if a C-style cast is used in a program
608 Wold-style-declaration
609 C ObjC Var(warn_old_style_declaration) Warning EnabledBy(Wextra)
610 Warn for obsolescent usage in a declaration
612 Wold-style-definition
613 C ObjC Var(warn_old_style_definition) Warning
614 Warn if an old-style parameter definition is used
616 Wopenmp-simd
617 C C++ Var(warn_openmp_simd) Warning LangEnabledBy(C C++,Wall)
618 Warn if a simd directive is overridden by the vectorizer cost model
620 Woverlength-strings
621 C ObjC C++ ObjC++ Var(warn_overlength_strings) Warning LangEnabledBy(C ObjC C++ ObjC++,Wpedantic)
622 Warn if a string is longer than the maximum portable length specified by the standard
624 Woverloaded-virtual
625 C++ ObjC++ Var(warn_overloaded_virtual) Warning
626 Warn about overloaded virtual function names
628 Woverride-init
629 C ObjC Var(warn_override_init) Warning EnabledBy(Wextra)
630 Warn about overriding initializers without side effects
632 Wpacked-bitfield-compat
633 C ObjC C++ ObjC++ Var(warn_packed_bitfield_compat) Init(-1) Warning
634 Warn about packed bit-fields whose offset changed in GCC 4.4
636 Wparentheses
637 C ObjC C++ ObjC++ Var(warn_parentheses) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
638 Warn about possibly missing parentheses
640 Wpedantic
641 C ObjC C++ ObjC++ Warning
642 ; Documented in common.opt
644 Wpmf-conversions
645 C++ ObjC++ Var(warn_pmf2ptr) Init(1) Warning
646 Warn when converting the type of pointers to member functions
648 Wpointer-arith
649 C ObjC C++ ObjC++ Var(warn_pointer_arith) Warning LangEnabledBy(C ObjC C++ ObjC++,Wpedantic)
650 Warn about function pointer arithmetic
652 Wpointer-sign
653 C ObjC Var(warn_pointer_sign) Warning LangEnabledBy(C ObjC,Wall)
654 Warn when a pointer differs in signedness in an assignment
656 Wpointer-sign
657 C ObjC LangEnabledBy(C ObjC,Wpedantic)
660 Wpointer-to-int-cast
661 C ObjC Var(warn_pointer_to_int_cast) Init(1) Warning
662 Warn when a pointer is cast to an integer of a different size
664 Wpragmas
665 C ObjC C++ ObjC++ Var(warn_pragmas) Init(1) Warning
666 Warn about misuses of pragmas
668 Wdate-time
669 Common Var(cpp_warn_date_time) Warning
670 Warn about __TIME__, __DATE__ and __TIMESTAMP__ usage
672 Wproperty-assign-default
673 ObjC ObjC++ Var(warn_property_assign_default) Init(1) Warning
674 Warn if a property for an Objective-C object has no assign semantics specified
676 Wprotocol
677 ObjC ObjC++ Var(warn_protocol) Init(1) Warning
678 Warn if inherited methods are unimplemented
680 Wredundant-decls
681 C ObjC C++ ObjC++ Var(warn_redundant_decls) Warning
682 Warn about multiple declarations of the same object
684 Wreorder
685 C++ ObjC++ Var(warn_reorder) Warning LangEnabledBy(C++ ObjC++,Wall)
686 Warn when the compiler reorders code
688 Wreturn-local-addr
689 C ObjC C++ ObjC++ Var(warn_return_local_addr) Init(1) Warning
690 Warn about returning a pointer/reference to a local or temporary variable.
692 Wreturn-type
693 C ObjC C++ ObjC++ Var(warn_return_type) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
694 Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++)
696 Wselector
697 ObjC ObjC++ Var(warn_selector) Warning
698 Warn if a selector has multiple methods
700 Wshadow-ivar
701 ObjC ObjC++ Var(warn_shadow_ivar) EnabledBy(Wshadow) Init(1) Warning
702 Warn if a local declaration hides an instance variable
704 Wsequence-point
705 C ObjC C++ ObjC++ Var(warn_sequence_point) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
706 Warn about possible violations of sequence point rules
708 Wsign-compare
709 C ObjC C++ ObjC++ Var(warn_sign_compare) Warning LangEnabledBy(C++ ObjC++,Wall)
710 Warn about signed-unsigned comparisons
712 Wsign-compare
713 C ObjC C++ ObjC++ EnabledBy(Wextra)
716 Wsign-conversion
717 C ObjC C++ ObjC++ Var(warn_sign_conversion) LangEnabledBy(C ObjC,Wconversion)
718 Warn for implicit type conversions between signed and unsigned integers
720 Wsign-promo
721 C++ ObjC++ Var(warn_sign_promo) Warning
722 Warn when overload promotes from unsigned to signed
724 Wstrict-null-sentinel
725 C++ ObjC++ Warning Var(warn_strict_null_sentinel)
726 Warn about uncasted NULL used as sentinel
728 Wstrict-prototypes
729 C ObjC Var(warn_strict_prototypes) Warning
730 Warn about unprototyped function declarations
732 Wstrict-aliasing=
733 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall, 3, 0)
736 Wstrict-overflow=
737 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0)
740 Wstrict-selector-match
741 ObjC ObjC++ Var(warn_strict_selector_match) Warning
742 Warn if type signatures of candidate methods do not match exactly
744 Wsync-nand
745 C C++ Var(warn_sync_nand) Init(1) Warning
746 Warn when __sync_fetch_and_nand and __sync_nand_and_fetch built-in functions are used
748 Wsynth
749 C++ ObjC++ Var(warn_synth) Warning
750 Deprecated.  This switch has no effect
752 Wsystem-headers
753 C ObjC C++ ObjC++ Warning
754 ; Documented in common.opt
756 Wtraditional
757 C ObjC Var(warn_traditional) Warning
758 Warn about features not present in traditional C
760 Wtraditional-conversion
761 C ObjC Var(warn_traditional_conversion) Warning
762 Warn of prototypes causing type conversions different from what would happen in the absence of prototype
764 Wtrigraphs
765 C ObjC C++ ObjC++ Warning
766 Warn if trigraphs are encountered that might affect the meaning of the program
768 Wundeclared-selector
769 ObjC ObjC++ Var(warn_undeclared_selector) Warning
770 Warn about @selector()s without previously declared methods
772 Wundef
773 C ObjC C++ ObjC++ Warning
774 Warn if an undefined macro is used in an #if directive
776 Wuninitialized
777 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
780 Wmaybe-uninitialized
781 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
784 Wunknown-pragmas
785 C ObjC C++ ObjC++ Warning Var(warn_unknown_pragmas) LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0)
786 Warn about unrecognized pragmas
788 Wunsuffixed-float-constants
789 C ObjC Var(warn_unsuffixed_float_constants) Warning
790 Warn about unsuffixed float constants
792 Wunused
793 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
794 ; documented in common.opt
796 Wunused-local-typedefs
797 C ObjC C++ ObjC++ Var(warn_unused_local_typedefs) Warning EnabledBy(Wunused)
798 Warn when typedefs locally defined in a function are not used
800 Wunused-macros
801 C ObjC C++ ObjC++ Var(cpp_warn_unused_macros) Warning
802 Warn about macros defined in the main file that are not used
804 Wunused-result
805 C ObjC C++ ObjC++ Var(warn_unused_result) Init(1) Warning
806 Warn if a caller of a function, marked with attribute warn_unused_result, does not use its return value
808 Wvariadic-macros
809 C ObjC C++ ObjC++ Var(cpp_warn_variadic_macros) Init(1) Warning
810 Warn about using variadic macros
812 Wvarargs
813 C ObjC C++ ObjC++ Warning Var(warn_varargs) Init(1)
814 Warn about questionable usage of the macros used to retrieve variable arguments
816 Wvla
817 C ObjC C++ ObjC++ Var(warn_vla) Init(-1) Warning
818 Warn if a variable length array is used
820 Wvolatile-register-var
821 C ObjC C++ ObjC++ Var(warn_volatile_register_var) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
822 Warn when a register variable is declared volatile
824 Wvirtual-move-assign
825 C++ ObjC++ Var(warn_virtual_move_assign) Warning Init(1)
826 Warn if a virtual base has a non-trivial move assignment operator
828 Wwrite-strings
829 C ObjC C++ ObjC++ Var(warn_write_strings) Warning
830 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.
832 Wzero-as-null-pointer-constant
833 C++ ObjC++ Var(warn_zero_as_null_pointer_constant) Warning
834 Warn when a literal '0' is used as null pointer
836 Wuseless-cast
837 C++ ObjC++ Var(warn_useless_cast) Warning
838 Warn about useless casts
840 ansi
841 C ObjC C++ ObjC++
842 A synonym for -std=c89 (for C) or -std=c++98 (for C++)
845 C ObjC C++ ObjC++ Joined
846 ; Documented in common.opt.  FIXME - what about -dI, -dD, -dN and -dD?
848 faccess-control
849 C++ ObjC++ Var(flag_access_control) Init(1)
850 Enforce class member access control semantics
852 fada-spec-parent=
853 C ObjC C++ ObjC++ RejectNegative Joined Var(ada_specs_parent)
854 -fada-spec-parent=unit  Dump Ada specs as child units of given parent
856 fall-virtual
857 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
859 fallow-parameterless-variadic-functions
860 C ObjC Var(flag_allow_parameterless_variadic_functions)
861 Allow variadic functions without named parameter
863 falt-external-templates
864 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
865 No longer supported
867 fasm
868 C ObjC C++ ObjC++ Var(flag_no_asm, 0)
869 Recognize the \"asm\" keyword
871 ; Define extra predefined macros for use in libgcc.
872 fbuilding-libgcc
873 C ObjC C++ ObjC++ Undocumented Var(flag_building_libgcc)
875 fbuiltin
876 C ObjC C++ ObjC++ Var(flag_no_builtin, 0)
877 Recognize built-in functions
879 fbuiltin-
880 C ObjC C++ ObjC++ Joined
882 fcanonical-system-headers
883 C ObjC C++ ObjC++
884 Where shorter, use canonicalized paths to systems headers.
886 fcilkplus
887 C ObjC C++ ObjC++ LTO Report Var(flag_cilkplus) Init(0)
888 Enable Cilk Plus
890 fcond-mismatch
891 C ObjC C++ ObjC++
892 Allow the arguments of the '?' operator to have different types
894 fconserve-space
895 C++ ObjC++ Var(flag_conserve_space)
896 Does nothing.  Preserved for backward compatibility.
898 fconstant-string-class=
899 ObjC ObjC++ Joined MissingArgError(no class name specified with %qs)
900 -fconst-string-class=<name>     Use class <name> for constant strings
902 fconstexpr-depth=
903 C++ ObjC++ Joined RejectNegative UInteger Var(max_constexpr_depth) Init(512)
904 -fconstexpr-depth=<number>      Specify maximum constexpr recursion depth
906 fdebug-cpp
907 C ObjC C++ ObjC++
908 Emit debug annotations during preprocessing
910 fdeduce-init-list
911 C++ ObjC++ Var(flag_deduce_init_list) Init(0)
912 -fdeduce-init-list      enable deduction of std::initializer_list for a template type parameter from a brace-enclosed initializer-list
914 fdeclone-ctor-dtor
915 C++ ObjC++ Var(flag_declone_ctor_dtor) Init(-1)
916 Factor complex constructors and destructors to favor space over speed
918 fdefault-inline
919 C++ ObjC++ Ignore
920 Does nothing.  Preserved for backward compatibility.
922 fdirectives-only
923 C ObjC C++ ObjC++
924 Preprocess directives only.
926 fdollars-in-identifiers
927 C ObjC C++ ObjC++
928 Permit '$' as an identifier character
930 fdump-ada-spec
931 C ObjC C++ ObjC++ RejectNegative Var(flag_dump_ada_spec)
932 Write all declarations as Ada code transitively
934 fdump-ada-spec-slim
935 C ObjC C++ ObjC++ RejectNegative Var(flag_dump_ada_spec_slim)
936 Write all declarations as Ada code for the given file only
938 felide-constructors
939 C++ ObjC++ Var(flag_elide_constructors) Init(1)
941 fenforce-eh-specs
942 C++ ObjC++ Var(flag_enforce_eh_specs) Init(1)
943 Generate code to check exception specifications
945 fenum-int-equiv
946 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
948 fexec-charset=
949 C ObjC C++ ObjC++ Joined RejectNegative
950 -fexec-charset=<cset>   Convert all strings and character constants to character set <cset>
952 fextended-identifiers
953 C ObjC C++ ObjC++
954 Permit universal character names (\\u and \\U) in identifiers
956 finput-charset=
957 C ObjC C++ ObjC++ Joined RejectNegative
958 -finput-charset=<cset>  Specify the default character set for source files
960 fextern-tls-init
961 C++ ObjC++ Var(flag_extern_tls_init) Init(-1)
962 Support dynamic initialization of thread-local variables in a different translation unit
964 fexternal-templates
965 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
967 ffor-scope
968 C++ ObjC++ Var(flag_new_for_scope) Init(1)
969 Scope of for-init-statement variables is local to the loop
971 ffreestanding
972 C ObjC C++ ObjC++
973 Do not assume that standard C libraries and \"main\" exist
975 fgnu-keywords
976 C++ ObjC++ Var(flag_no_gnu_keywords, 0)
977 Recognize GNU-defined keywords
979 fgnu-runtime
980 ObjC ObjC++ LTO Report RejectNegative Var(flag_next_runtime,0) Init(NEXT_OBJC_RUNTIME)
981 Generate code for GNU runtime environment
983 fgnu89-inline
984 C ObjC Var(flag_gnu89_inline) Init(-1)
985 Use traditional GNU semantics for inline functions
987 fguiding-decls
988 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
990 fhandle-exceptions
991 C++ ObjC++ Optimization Alias(fexceptions) Warn({-fhandle-exceptions has been renamed -fexceptions (and is now on by default)})
993 fhonor-std
994 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
996 fhosted
997 C ObjC
998 Assume normal C execution environment
1000 fhuge-objects
1001 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1002 No longer supported
1004 fimplement-inlines
1005 C++ ObjC++ Var(flag_implement_inlines) Init(1)
1006 Export functions even if they can be inlined
1008 fimplicit-inline-templates
1009 C++ ObjC++ Var(flag_implicit_inline_templates) Init(1)
1010 Emit implicit instantiations of inline templates
1012 fimplicit-templates
1013 C++ ObjC++ Var(flag_implicit_templates) Init(1)
1014 Emit implicit instantiations of templates
1016 ffriend-injection
1017 C++ ObjC++ Var(flag_friend_injection)
1018 Inject friend functions into enclosing namespace
1020 fkeep-inline-dllexport
1021 C C++ ObjC ObjC++ Var(flag_keep_inline_dllexport) Init(1) Report Condition(TARGET_DLLIMPORT_DECL_ATTRIBUTES)
1022 Don't emit dllexported inline functions unless needed
1024 flabels-ok
1025 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1027 flax-vector-conversions
1028 C ObjC C++ ObjC++ Var(flag_lax_vector_conversions)
1029 Allow implicit conversions between vectors with differing numbers of subparts and/or differing element types.
1031 fms-extensions
1032 C ObjC C++ ObjC++ Var(flag_ms_extensions)
1033 Don't warn about uses of Microsoft extensions
1035 fmudflap
1036 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1038 fmudflapth
1039 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1041 fmudflapir
1042 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1044 fname-mangling-version-
1045 C++ ObjC++ Joined Ignore Warn(switch %qs is no longer supported)
1047 fnew-abi
1048 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1050 fnext-runtime
1051 ObjC ObjC++ LTO Report RejectNegative Var(flag_next_runtime)
1052 Generate code for NeXT (Apple Mac OS X) runtime environment
1054 fnil-receivers
1055 ObjC ObjC++ Var(flag_nil_receivers) Init(1)
1056 Assume that receivers of Objective-C messages may be nil
1058 flocal-ivars
1059 ObjC ObjC++ Var(flag_local_ivars) Init(1)
1060 Allow access to instance variables as if they were local declarations within instance method implementations.
1062 fivar-visibility=
1063 ObjC ObjC++ Joined RejectNegative Enum(ivar_visibility) Var(default_ivar_visibility) Init(IVAR_VISIBILITY_PROTECTED)
1064 -fvisibility=[private|protected|public|package] Set the default symbol visibility
1066 Enum
1067 Name(ivar_visibility) Type(enum ivar_visibility) UnknownError(unrecognized ivar visibility value %qs)
1069 EnumValue
1070 Enum(ivar_visibility) String(private) Value(IVAR_VISIBILITY_PRIVATE)
1072 EnumValue
1073 Enum(ivar_visibility) String(protected) Value(IVAR_VISIBILITY_PROTECTED)
1075 EnumValue
1076 Enum(ivar_visibility) String(public) Value(IVAR_VISIBILITY_PUBLIC)
1078 EnumValue
1079 Enum(ivar_visibility) String(package) Value(IVAR_VISIBILITY_PACKAGE)
1081 fnonansi-builtins
1082 C++ ObjC++ Var(flag_no_nonansi_builtin, 0)
1084 fnonnull-objects
1085 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1087 fnothrow-opt
1088 C++ ObjC++ Optimization Var(flag_nothrow_opt)
1089 Treat a throw() exception specification as noexcept to improve code size
1091 fobjc-abi-version=
1092 ObjC ObjC++ LTO Joined Report RejectNegative UInteger Var(flag_objc_abi)
1093 Specify which ABI to use for Objective-C family code and meta-data generation.
1095 ; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
1096 ; to initialize any non-POD ivars in Objective-C++ classes.
1097 fobjc-call-cxx-cdtors
1098 ObjC++ Var(flag_objc_call_cxx_cdtors)
1099 Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed
1101 fobjc-direct-dispatch
1102 ObjC ObjC++ Var(flag_objc_direct_dispatch)
1103 Allow fast jumps to the message dispatcher
1105 ; Nonzero means that we will allow new ObjC exception syntax (@throw,
1106 ; @try, etc.) in source code.
1107 fobjc-exceptions
1108 ObjC ObjC++ Var(flag_objc_exceptions)
1109 Enable Objective-C exception and synchronization syntax
1111 fobjc-gc
1112 ObjC ObjC++ LTO Var(flag_objc_gc)
1113 Enable garbage collection (GC) in Objective-C/Objective-C++ programs
1115 fobjc-nilcheck
1116 ObjC ObjC++ Var(flag_objc_nilcheck,1)
1117 Enable inline checks for nil receivers with the NeXT runtime and ABI version 2.
1119 ; Nonzero means that we generate NeXT setjmp based exceptions.
1120 fobjc-sjlj-exceptions
1121 ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1)
1122 Enable Objective-C setjmp exception handling runtime
1124 fobjc-std=objc1
1125 ObjC ObjC++ Var(flag_objc1_only)
1126 Conform to the Objective-C 1.0 language as implemented in GCC 4.0
1128 fopenmp
1129 C ObjC C++ ObjC++ Var(flag_openmp)
1130 Enable OpenMP (implies -frecursive in Fortran)
1132 fopenmp-simd
1133 C ObjC C++ ObjC++ Var(flag_openmp_simd)
1134 Enable OpenMP's SIMD directives
1136 foperator-names
1137 C++ ObjC++
1138 Recognize C++ keywords like \"compl\" and \"xor\"
1140 foptional-diags
1141 C++ ObjC++ Ignore
1142 Does nothing.  Preserved for backward compatibility.
1144 fpch-deps
1145 C ObjC C++ ObjC++
1147 fpch-preprocess
1148 C ObjC C++ ObjC++
1149 Look for and use PCH files even when preprocessing
1151 fpermissive
1152 C++ ObjC++ Var(flag_permissive)
1153 Downgrade conformance errors to warnings
1155 fplan9-extensions
1156 C ObjC Var(flag_plan9_extensions)
1157 Enable Plan 9 language extensions
1159 fpreprocessed
1160 C ObjC C++ ObjC++
1161 Treat the input file as already preprocessed
1163 ftrack-macro-expansion
1164 C ObjC C++ ObjC++ JoinedOrMissing RejectNegative UInteger
1165 ; converted into ftrack-macro-expansion=
1167 ftrack-macro-expansion=
1168 C ObjC C++ ObjC++ JoinedOrMissing RejectNegative UInteger
1169 -ftrack-macro-expansion=<0|1|2>  Track locations of tokens coming from macro expansion and display them in error messages
1171 fpretty-templates
1172 C++ ObjC++ Var(flag_pretty_templates) Init(1)
1173 -fno-pretty-templates Do not pretty-print template specializations as the template signature followed by the arguments
1175 freplace-objc-classes
1176 ObjC ObjC++ LTO Var(flag_replace_objc_classes)
1177 Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime
1179 frepo
1180 C++ ObjC++
1181 Enable automatic template instantiation
1183 frtti
1184 C++ ObjC++ Optimization Var(flag_rtti) Init(1)
1185 Generate run time type descriptor information
1187 fshort-double
1188 C ObjC C++ ObjC++ LTO Optimization Var(flag_short_double)
1189 Use the same size for double as for float
1191 fshort-enums
1192 C ObjC C++ ObjC++ Optimization Var(flag_short_enums)
1193 Use the narrowest integer type possible for enumeration types
1195 fshort-wchar
1196 C ObjC C++ ObjC++ Optimization Var(flag_short_wchar)
1197 Force the underlying type for \"wchar_t\" to be \"unsigned short\"
1199 fsigned-bitfields
1200 C ObjC C++ ObjC++ Var(flag_signed_bitfields) Init(1)
1201 When \"signed\" or \"unsigned\" is not given make the bitfield signed
1203 fsigned-char
1204 C ObjC C++ ObjC++ LTO Var(flag_signed_char)
1205 Make \"char\" signed by default
1207 fsquangle
1208 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1210 fstats
1211 C++ ObjC++ Var(flag_detailed_statistics)
1212 Display statistics accumulated during compilation
1214 fstrict-enums
1215 C++ ObjC++ Optimization Var(flag_strict_enums)
1216 Assume that values of enumeration type are always within the minimum range of that type
1218 fstrict-prototype
1219 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1221 ftabstop=
1222 C ObjC C++ ObjC++ Joined RejectNegative UInteger
1223 -ftabstop=<number>      Distance between tab stops for column reporting
1225 ftemplate-backtrace-limit=
1226 C++ ObjC++ Joined RejectNegative UInteger Var(template_backtrace_limit) Init(10)
1227 Set the maximum number of template instantiation notes for a single warning or error
1229 ftemplate-depth-
1230 C++ ObjC++ Joined RejectNegative Undocumented Alias(ftemplate-depth=)
1232 ftemplate-depth=
1233 C++ ObjC++ Joined RejectNegative UInteger
1234 -ftemplate-depth=<number>       Specify maximum template instantiation depth
1236 fthis-is-variable
1237 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1239 fthreadsafe-statics
1240 C++ ObjC++ Optimization Var(flag_threadsafe_statics) Init(1)
1241 -fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
1243 funsigned-bitfields
1244 C ObjC C++ ObjC++ Var(flag_signed_bitfields, 0)
1245 When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
1247 funsigned-char
1248 C ObjC C++ ObjC++ LTO Var(flag_signed_char, 0)
1249 Make \"char\" unsigned by default
1251 fuse-cxa-atexit
1252 C++ ObjC++ Var(flag_use_cxa_atexit) Init(DEFAULT_USE_CXA_ATEXIT)
1253 Use __cxa_atexit to register destructors
1255 fuse-cxa-get-exception-ptr
1256 C++ ObjC++ Var(flag_use_cxa_get_exception_ptr) Init(2)
1257 Use __cxa_get_exception_ptr in exception handling
1259 fvisibility-inlines-hidden
1260 C++ ObjC++
1261 Marks all inlined functions and methods as having hidden visibility
1263 fvisibility-ms-compat
1264 C++ ObjC++ Var(flag_visibility_ms_compat)
1265 Changes visibility to match Microsoft Visual Studio by default
1267 fvtable-gc
1268 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1269 No longer supported
1271 fvtable-thunks
1272 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1273 No longer supported
1275 fweak
1276 C++ ObjC++ Var(flag_weak) Init(1)
1277 Emit common-like symbols as weak symbols
1279 fwide-exec-charset=
1280 C ObjC C++ ObjC++ Joined RejectNegative
1281 -fwide-exec-charset=<cset>      Convert all wide strings and character constants to character set <cset>
1283 fworking-directory
1284 C ObjC C++ ObjC++ Var(flag_working_directory) Init(-1)
1285 Generate a #line directive pointing at the current working directory
1287 fxref
1288 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1289 No longer supported
1291 fzero-link
1292 ObjC ObjC++ Var(flag_zero_link)
1293 Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode
1295 gen-decls
1296 ObjC ObjC++ Var(flag_gen_declaration)
1297 Dump declarations to a .decl file
1299 femit-struct-debug-baseonly
1300 C ObjC C++ ObjC++
1301 -femit-struct-debug-baseonly    Aggressive reduced debug info for structs
1303 femit-struct-debug-reduced
1304 C ObjC C++ ObjC++
1305 -femit-struct-debug-reduced     Conservative reduced debug info for structs
1307 femit-struct-debug-detailed=
1308 C ObjC C++ ObjC++ Joined
1309 -femit-struct-debug-detailed=<spec-list>        Detailed reduced debug info for structs
1311 fext-numeric-literals
1312 C++ ObjC++ 
1313 Interpret imaginary, fixed-point, or other gnu number suffix as the corresponding
1314 number literal rather than a user-defined number literal.
1316 idirafter
1317 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1318 -idirafter <dir>        Add <dir> to the end of the system include path
1320 imacros
1321 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs)
1322 -imacros <file> Accept definition of macros in <file>
1324 imultilib
1325 C ObjC C++ ObjC++ Joined Separate
1326 -imultilib <dir>        Set <dir> to be the multilib include subdirectory
1328 include
1329 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs)
1330 -include <file> Include the contents of <file> before other files
1332 iprefix
1333 C ObjC C++ ObjC++ Joined Separate
1334 -iprefix <path> Specify <path> as a prefix for next two options
1336 isysroot
1337 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1338 -isysroot <dir> Set <dir> to be the system root directory
1340 isystem
1341 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1342 -isystem <dir>  Add <dir> to the start of the system include path
1344 iquote
1345 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1346 -iquote <dir>   Add <dir> to the end of the quote include path
1348 iwithprefix
1349 C ObjC C++ ObjC++ Joined Separate
1350 -iwithprefix <dir>      Add <dir> to the end of the system include path
1352 iwithprefixbefore
1353 C ObjC C++ ObjC++ Joined Separate
1354 -iwithprefixbefore <dir>        Add <dir> to the end of the main include path
1356 lang-asm
1357 C Undocumented RejectDriver
1359 no-integrated-cpp
1360 Driver
1362 nostdinc
1363 C ObjC C++ ObjC++
1364 Do not search standard system include directories (those specified with -isystem will still be used)
1366 nostdinc++
1367 C++ ObjC++
1368 Do not search standard system include directories for C++
1371 C ObjC C++ ObjC++ Joined Separate
1372 ; Documented in common.opt
1374 pedantic
1375 C ObjC C++ ObjC++ Alias(Wpedantic)
1376 ; Documented in common.opt
1378 print-objc-runtime-info
1379 ObjC ObjC++
1380 Generate C header of platform-specific features
1382 remap
1383 C ObjC C++ ObjC++
1384 Remap file names when including files
1386 std=c++98
1387 C++ ObjC++
1388 Conform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum
1390 std=c++03
1391 C++ ObjC++ Alias(std=c++98)
1392 Conform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum
1394 std=c++11
1395 C++ ObjC++
1396 Conform to the ISO 2011 C++ standard
1398 std=c++0x
1399 C++ ObjC++ Alias(std=c++11) Undocumented
1400 Deprecated in favor of -std=c++11
1402 std=c++1y
1403 C++ ObjC++
1404 Conform to the ISO 2014(?) C++ draft standard (experimental and incomplete support)
1406 std=c++14
1407 C++ ObjC++ Alias(std=c++1y) Undocumented
1409 std=c11
1410 C ObjC
1411 Conform to the ISO 2011 C standard (experimental and incomplete support)
1413 std=c1x
1414 C ObjC Alias(std=c11)
1415 Deprecated in favor of -std=c11
1417 std=c89
1418 C ObjC Alias(std=c90)
1419 Conform to the ISO 1990 C standard
1421 std=c90
1422 C ObjC
1423 Conform to the ISO 1990 C standard
1425 std=c99
1426 C ObjC
1427 Conform to the ISO 1999 C standard
1429 std=c9x
1430 C ObjC Alias(std=c99)
1431 Deprecated in favor of -std=c99
1433 std=gnu++98
1434 C++ ObjC++
1435 Conform to the ISO 1998 C++ standard revised by the 2003 technical
1436 corrigendum with GNU extensions
1438 std=gnu++03
1439 C++ ObjC++ Alias(std=gnu++98)
1440 Conform to the ISO 1998 C++ standard revised by the 2003 technical
1441 corrigendum with GNU extensions
1443 std=gnu++11
1444 C++ ObjC++
1445 Conform to the ISO 2011 C++ standard with GNU extensions (experimental and incomplete support)
1447 std=gnu++0x
1448 C++ ObjC++ Alias(std=gnu++11)
1449 Deprecated in favor of -std=gnu++11
1451 std=gnu++1y
1452 C++ ObjC++
1453 Conform to the ISO 201y(7?) C++ draft standard with GNU extensions (experimental and incomplete support)
1455 std=gnu++14
1456 C++ ObjC++ Alias(std=gnu++1y) Undocumented
1458 std=gnu11
1459 C ObjC
1460 Conform to the ISO 2011 C standard with GNU extensions (experimental and incomplete support)
1462 std=gnu1x
1463 C ObjC Alias(std=gnu11)
1464 Deprecated in favor of -std=gnu11
1466 std=gnu89
1467 C ObjC Alias(std=gnu90)
1468 Conform to the ISO 1990 C standard with GNU extensions
1470 std=gnu90
1471 C ObjC
1472 Conform to the ISO 1990 C standard with GNU extensions
1474 std=gnu99
1475 C ObjC
1476 Conform to the ISO 1999 C standard with GNU extensions
1478 std=gnu9x
1479 C ObjC Alias(std=gnu99)
1480 Deprecated in favor of -std=gnu99
1482 std=iso9899:1990
1483 C ObjC Alias(std=c90)
1484 Conform to the ISO 1990 C standard
1486 std=iso9899:199409
1487 C ObjC
1488 Conform to the ISO 1990 C standard as amended in 1994
1490 std=iso9899:1999
1491 C ObjC Alias(std=c99)
1492 Conform to the ISO 1999 C standard
1494 std=iso9899:199x
1495 C ObjC Alias(std=c99)
1496 Deprecated in favor of -std=iso9899:1999
1498 std=iso9899:2011
1499 C ObjC Alias(std=c11)
1500 Conform to the ISO 2011 C standard (experimental and incomplete support)
1502 traditional
1503 Driver
1505 traditional-cpp
1506 C ObjC C++ ObjC++
1507 Enable traditional preprocessing
1509 trigraphs
1510 C ObjC C++ ObjC++
1511 -trigraphs      Support ISO C trigraphs
1513 undef
1514 C ObjC C++ ObjC++ Var(flag_undef)
1515 Do not predefine system-specific and GCC-specific macros
1518 C ObjC C++ ObjC++
1519 ; Documented in common.opt
1522 C ObjC C++ ObjC++
1523 ; Documented in common.opt
1525 ; This comment is to ensure we retain the blank line above.