2008-11-18 Kai Tietz <kai.tietz@onevision.com>
[official-gcc.git] / gcc / c.opt
blob1888ecde63c5cd2cfdde3a46cfacce275d6016c5
1 ; Options for the C, ObjC, C++ and ObjC++ front ends.
2 ; Copyright (C) 2003, 2004, 2005, 2006, 2007 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 -output-pch=
37 C ObjC C++ ObjC++ Joined Separate
40 C ObjC C++ ObjC++ Joined Separate
41 -A<question>=<answer>   Assert the <answer> to <question>.  Putting '-' before <question> disables the <answer> to <question>
44 C ObjC C++ ObjC++
45 Do not discard comments
48 C ObjC C++ ObjC++
49 Do not discard comments in macro expansions
52 C ObjC C++ ObjC++ Joined Separate
53 -D<macro>[=<val>]       Define a <macro> with <val> as its value.  If just <macro> is given, <val> is taken to be 1
56 C ObjC C++ ObjC++ Undocumented
59 C ObjC C++ ObjC++ Joined Separate
60 -F <dir>        Add <dir> to the end of the main framework include path
63 C ObjC C++ ObjC++
64 Print the name of header files as they are used
67 C ObjC C++ ObjC++ Joined Separate
68 -I <dir>        Add <dir> to the end of the main include path
71 C ObjC C++ ObjC++
72 Generate make dependencies
75 C ObjC C++ ObjC++ Separate
76 Generate make dependencies and compile
79 C ObjC C++ ObjC++ Joined Separate
80 -MF <file>      Write dependency output to the given file
83 C ObjC C++ ObjC++
84 Treat missing header files as generated files
87 C ObjC C++ ObjC++
88 Like -M but ignore system header files
90 MMD
91 C ObjC C++ ObjC++ Separate
92 Like -MD but ignore system header files
95 C ObjC C++ ObjC++
96 Generate phony targets for all headers
99 C ObjC C++ ObjC++ Joined Separate
100 -MQ <target>    Add a MAKE-quoted target
103 C ObjC C++ ObjC++ Joined Separate
104 -MT <target>    Add an unquoted target
107 C ObjC C++ ObjC++
108 Do not generate #line directives
111 C ObjC C++ ObjC++ Joined Separate
112 -U<macro>       Undefine <macro>
114 Wabi
115 C++ ObjC++ Var(warn_abi) Warning
116 Warn about things that will change when compiling with an ABI-compliant compiler
118 Waddress
119 C ObjC C++ ObjC++ Var(warn_address) Warning
120 Warn about suspicious uses of memory addresses
122 Wall
123 C ObjC C++ ObjC++ Warning
124 Enable most warning messages
126 Wassign-intercept
127 ObjC ObjC++ Var(warn_assign_intercept) Warning
128 Warn whenever an Objective-C assignment is being intercepted by the garbage collector
130 Wbad-function-cast
131 C ObjC Var(warn_bad_function_cast) Warning
132 Warn about casting functions to incompatible types
134 Wbuiltin-macro-redefined
135 C ObjC C++ ObjC++ Warning
136 Warn when a built-in preprocessor macro is undefined or redefined
138 Wc++-compat
139 C ObjC Var(warn_cxx_compat) Warning
140 Warn about C constructs that are not in the common subset of C and C++
142 Wc++0x-compat
143 C++ ObjC++ Var(warn_cxx0x_compat) Warning
144 Warn about C++ constructs whose meaning differs between ISO C++ 1998 and ISO C++ 200x
146 Wcast-qual
147 C ObjC C++ ObjC++ Var(warn_cast_qual) Warning
148 Warn about casts which discard qualifiers
150 Wchar-subscripts
151 C ObjC C++ ObjC++ Var(warn_char_subscripts) Warning
152 Warn about subscripts whose type is \"char\"
154 Wclobbered
155 C ObjC C++ ObjC++ Var(warn_clobbered) Init(-1) Warning
156 Warn about variables that might be changed by \"longjmp\" or \"vfork\"
158 Wcomment
159 C ObjC C++ ObjC++ Warning
160 Warn about possibly nested block comments, and C++ comments spanning more than one physical line
162 Wcomments
163 C ObjC C++ ObjC++ Warning
164 Synonym for -Wcomment
166 Wconversion
167 C ObjC C++ ObjC++ Var(warn_conversion) Warning
168 Warn for implicit type conversions that may change a value
170 Wsign-conversion
171 C ObjC C++ ObjC++ Var(warn_sign_conversion) Init(-1)
172 Warn for implicit type conversions between signed and unsigned integers
174 Wctor-dtor-privacy
175 C++ ObjC++ Var(warn_ctor_dtor_privacy) Warning
176 Warn when all constructors and destructors are private
178 Wdeclaration-after-statement
179 C ObjC Var(warn_declaration_after_statement) Warning
180 Warn when a declaration is found after a statement
182 Wdeprecated
183 C C++ ObjC ObjC++ Var(warn_deprecated) Init(1) Warning
184 Warn about deprecated compiler features
186 Wdiv-by-zero
187 C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1) Warning
188 Warn about compile-time integer division by zero
190 Weffc++
191 C++ ObjC++ Var(warn_ecpp) Warning
192 Warn about violations of Effective C++ style rules
194 Wempty-body
195 C ObjC C++ ObjC++ Var(warn_empty_body) Init(-1) Warning
196 Warn about an empty body in an if or else statement
198 Wendif-labels
199 C ObjC C++ ObjC++ Warning
200 Warn about stray tokens after #elif and #endif
202 Wenum-compare
203 C++ ObjC++ Var(warn_enum_compare) Init(1) Warning
204 Warn about comparison of different enum types
206 Werror
207 C ObjC C++ ObjC++
208 ; Documented in common.opt
210 Werror-implicit-function-declaration
211 C ObjC RejectNegative Warning
212 This switch is deprecated; use -Werror=implicit-function-declaration instead
214 Wfloat-equal
215 C ObjC C++ ObjC++ Var(warn_float_equal) Warning
216 Warn if testing floating point numbers for equality
218 Wformat
219 C ObjC C++ ObjC++ Warning
220 Warn about printf/scanf/strftime/strfmon format string anomalies
222 Wformat-extra-args
223 C ObjC C++ ObjC++ Var(warn_format_extra_args) Warning
224 Warn if passing too many arguments to a function for its format string
226 Wformat-nonliteral
227 C ObjC C++ ObjC++ Var(warn_format_nonliteral) Warning
228 Warn about format strings that are not literals
230 Wformat-contains-nul
231 C ObjC C++ ObjC++ Var(warn_format_contains_nul) Warning
232 Warn about format strings that contain NUL bytes
234 Wformat-security
235 C ObjC C++ ObjC++ Var(warn_format_security) Warning
236 Warn about possible security problems with format functions
238 Wformat-y2k
239 C ObjC C++ ObjC++ Var(warn_format_y2k) Warning
240 Warn about strftime formats yielding 2-digit years
242 Wformat-zero-length
243 C ObjC Var(warn_format_zero_length) Warning
244 Warn about zero-length formats
246 Wformat=
247 C ObjC C++ ObjC++ Joined Warning
249 Wignored-qualifiers
250 C C++ Var(warn_ignored_qualifiers) Init(-1) Warning
251 Warn whenever type qualifiers are ignored.
253 Winit-self
254 C ObjC C++ ObjC++ Var(warn_init_self) Warning
255 Warn about variables which are initialized to themselves
257 Wimplicit
258 C ObjC C++ ObjC++ Warning
260 Wimplicit-function-declaration
261 C ObjC Var(warn_implicit_function_declaration) Init(-1) Warning
262 Warn about implicit function declarations
264 Wimplicit-int
265 C ObjC Var(warn_implicit_int) Warning
266 Warn when a declaration does not specify a type
268 Wimport
269 C ObjC C++ ObjC++ Undocumented
271 Wint-to-pointer-cast
272 C ObjC Var(warn_int_to_pointer_cast) Init(1) Warning
273 Warn when there is a cast to a pointer from an integer of a different size
275 Winvalid-offsetof
276 C++ ObjC++ Var(warn_invalid_offsetof) Init(1) Warning
277 Warn about invalid uses of the \"offsetof\" macro
279 Winvalid-pch
280 C ObjC C++ ObjC++ Warning
281 Warn about PCH files that are found but not used
283 Wlong-long
284 C ObjC C++ ObjC++ Var(warn_long_long) Init(1) Warning
285 Do not warn about using \"long long\" when -pedantic
287 Wmain
288 C ObjC C++ ObjC++ Var(warn_main) Init(-1) Warning
289 Warn about suspicious declarations of \"main\"
291 Wmissing-braces
292 C ObjC C++ ObjC++ Var(warn_missing_braces) Warning
293 Warn about possibly missing braces around initializers
295 Wmissing-declarations
296 C ObjC C++ ObjC++ Var(warn_missing_declarations) Warning
297 Warn about global functions without previous declarations
299 Wmissing-field-initializers
300 C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Init(-1) Warning
301 Warn about missing fields in struct initializers
303 Wmissing-format-attribute
304 C ObjC C++ ObjC++ Var(warn_missing_format_attribute) Warning
305 Warn about functions which might be candidates for format attributes
307 Wmissing-include-dirs
308 C ObjC C++ ObjC++ Warning
309 Warn about user-specified include directories that do not exist
311 Wmissing-parameter-type
312 C ObjC Var(warn_missing_parameter_type) Init(-1) Warning
313 Warn about function parameters declared without a type specifier in K&R-style functions
315 Wmissing-prototypes
316 C ObjC Var(warn_missing_prototypes) Warning
317 Warn about global functions without prototypes
319 Wmultichar
320 C ObjC C++ ObjC++ Warning
321 Warn about use of multi-character character constants
323 Wnested-externs
324 C ObjC Var(warn_nested_externs) Warning
325 Warn about \"extern\" declarations not at file scope
327 Wnon-template-friend
328 C++ ObjC++ Var(warn_nontemplate_friend) Init(1) Warning
329 Warn when non-templatized friend functions are declared within a template
331 Wnon-virtual-dtor
332 C++ ObjC++ Var(warn_nonvdtor) Warning
333 Warn about non-virtual destructors
335 Wnonnull
336 C ObjC Var(warn_nonnull) Warning
337 Warn about NULL being passed to argument slots marked as requiring non-NULL
339 Wnormalized=
340 C ObjC C++ ObjC++ Joined Warning
341 -Wnormalized=<id|nfc|nfkc>      Warn about non-normalised Unicode strings
343 Wold-style-cast
344 C++ ObjC++ Var(warn_old_style_cast) Warning
345 Warn if a C-style cast is used in a program
347 Wold-style-declaration
348 C ObjC Var(warn_old_style_declaration) Init(-1) Warning
349 Warn for obsolescent usage in a declaration
351 Wold-style-definition
352 C ObjC Var(warn_old_style_definition) Warning
353 Warn if an old-style parameter definition is used
355 Woverlength-strings
356 C ObjC C++ ObjC++ Var(warn_overlength_strings) Init(-1) Warning
357 Warn if a string is longer than the maximum portable length specified by the standard
359 Woverloaded-virtual
360 C++ ObjC++ Var(warn_overloaded_virtual) Warning
361 Warn about overloaded virtual function names
363 Woverride-init
364 C ObjC Var(warn_override_init) Init(-1) Warning
365 Warn about overriding initializers without side effects
367 Wparentheses
368 C ObjC C++ ObjC++ Var(warn_parentheses) Warning
369 Warn about possibly missing parentheses
371 Wpmf-conversions
372 C++ ObjC++ Var(warn_pmf2ptr) Init(1) Warning
373 Warn when converting the type of pointers to member functions
375 Wpointer-arith
376 C ObjC C++ ObjC++ Var(warn_pointer_arith) Warning
377 Warn about function pointer arithmetic
379 Wpointer-to-int-cast
380 C ObjC Var(warn_pointer_to_int_cast) Init(1) Warning
381 Warn when a pointer is cast to an integer of a different size
383 Wpragmas
384 C ObjC C++ ObjC++ Var(warn_pragmas) Init(1) Warning
385 Warn about misuses of pragmas
387 Wprotocol
388 ObjC ObjC++ Var(warn_protocol) Init(1) Warning
389 Warn if inherited methods are unimplemented
391 Wredundant-decls
392 C ObjC C++ ObjC++ Var(warn_redundant_decls) Warning
393 Warn about multiple declarations of the same object
395 Wreorder
396 C++ ObjC++ Var(warn_reorder) Warning
397 Warn when the compiler reorders code
399 Wreturn-type
400 C ObjC C++ ObjC++ Var(warn_return_type) Warning
401 Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++)
403 Wselector
404 ObjC ObjC++ Var(warn_selector) Warning
405 Warn if a selector has multiple methods
407 Wsequence-point
408 C ObjC C++ ObjC++ Var(warn_sequence_point) Warning
409 Warn about possible violations of sequence point rules
411 Wsign-compare
412 C ObjC C++ ObjC++ Var(warn_sign_compare) Init(-1) Warning
413 Warn about signed-unsigned comparisons
415 Wsign-promo
416 C++ ObjC++ Var(warn_sign_promo) Warning
417 Warn when overload promotes from unsigned to signed
419 Wstrict-null-sentinel
420 C++ ObjC++ Warning
421 Warn about uncasted NULL used as sentinel
423 Wstrict-prototypes
424 C ObjC Var(warn_strict_prototypes) Warning
425 Warn about unprototyped function declarations
427 Wstrict-selector-match
428 ObjC ObjC++ Var(warn_strict_selector_match) Warning
429 Warn if type signatures of candidate methods do not match exactly
431 Wsync-nand
432 C C++ Var(warn_sync_nand) Init(1) Warning
433 Warn when __sync_fetch_and_nand and __sync_nand_and_fetch built-in functions are used
435 Wsynth
436 C++ ObjC++ Var(warn_synth) Warning
437 Deprecated.  This switch has no effect
439 Wsystem-headers
440 C ObjC C++ ObjC++ Warning
441 Do not suppress warnings from system headers
443 Wtraditional
444 C ObjC Var(warn_traditional) Warning
445 Warn about features not present in traditional C
447 Wtraditional-conversion
448 C ObjC Var(warn_traditional_conversion) Warning
449 Warn of prototypes causing type conversions different from what would happen in the absence of prototype
451 Wtrigraphs
452 C ObjC C++ ObjC++ Warning
453 Warn if trigraphs are encountered that might affect the meaning of the program
455 Wundeclared-selector
456 ObjC ObjC++ Var(warn_undeclared_selector) Warning
457 Warn about @selector()s without previously declared methods
459 Wundef
460 C ObjC C++ ObjC++ Warning
461 Warn if an undefined macro is used in an #if directive
463 Wunknown-pragmas
464 C ObjC C++ ObjC++ Warning
465 Warn about unrecognized pragmas
467 Wunused-macros
468 C ObjC C++ ObjC++ Warning
469 Warn about macros defined in the main file that are not used
471 Wvariadic-macros
472 C ObjC C++ ObjC++ Warning
473 Do not warn about using variadic macros when -pedantic
475 Wvla
476 C ObjC C++ ObjC++ Var(warn_vla) Init(-1) Warning
477 Warn if a variable length array is used
479 Wvolatile-register-var
480 C ObjC C++ ObjC++ Var(warn_volatile_register_var) Warning
481 Warn when a register variable is declared volatile
483 Wwrite-strings
484 C ObjC C++ ObjC++ Var(warn_write_strings) Warning
485 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.
487 Wpointer-sign
488 C ObjC Var(warn_pointer_sign) Init(-1) Warning
489 Warn when a pointer differs in signedness in an assignment
491 ansi
492 C ObjC C++ ObjC++
493 A synonym for -std=c89 (for C) or -std=c++98 (for C++)
496 C ObjC C++ ObjC++ Joined
497 ; Documented in common.opt.  FIXME - what about -dI, -dD, -dN and -dD?
499 faccess-control
500 C++ ObjC++
501 Enforce class member access control semantics
503 fall-virtual
504 C++ ObjC++
506 falt-external-templates
507 C++ ObjC++
508 Change when template instances are emitted
510 fasm
511 C ObjC C++ ObjC++
512 Recognize the \"asm\" keyword
514 fbuiltin
515 C ObjC C++ ObjC++
516 Recognize built-in functions
518 fbuiltin-
519 C ObjC C++ ObjC++ Joined
521 fcheck-new
522 C++ ObjC++
523 Check the return value of new
525 fcond-mismatch
526 C ObjC C++ ObjC++
527 Allow the arguments of the '?' operator to have different types
529 fconserve-space
530 C++ ObjC++
531 Reduce the size of object files
533 fconstant-string-class=
534 ObjC ObjC++ Joined
535 -fconst-string-class=<name>     Use class <name> for constant strings
537 fdefault-inline
538 C++ ObjC++
539 Inline member functions by default
541 fdirectives-only
542 C ObjC C++ ObjC++
543 Preprocess directives only.
545 fdollars-in-identifiers
546 C ObjC C++ ObjC++
547 Permit '$' as an identifier character
549 felide-constructors
550 C++ ObjC++
552 fenforce-eh-specs
553 C++ ObjC++
554 Generate code to check exception specifications
556 fenum-int-equiv
557 C++ ObjC++
559 fexec-charset=
560 C ObjC C++ ObjC++ Joined RejectNegative
561 -fexec-charset=<cset>   Convert all strings and character constants to character set <cset>
563 fextended-identifiers
564 C ObjC C++ ObjC++
565 Permit universal character names (\\u and \\U) in identifiers
567 finput-charset=
568 C ObjC C++ ObjC++ Joined RejectNegative
569 -finput-charset=<cset>  Specify the default character set for source files
572 fexternal-templates
573 C++ ObjC++
575 ffor-scope
576 C++ ObjC++
577 Scope of for-init-statement variables is local to the loop
579 ffreestanding
580 C ObjC C++ ObjC++
581 Do not assume that standard C libraries and \"main\" exist
583 fgnu-keywords
584 C++ ObjC++
585 Recognize GNU-defined keywords
587 fgnu-runtime
588 ObjC ObjC++
589 Generate code for GNU runtime environment
591 fgnu89-inline
592 C ObjC Var(flag_gnu89_inline) Init(-1)
593 Use traditional GNU semantics for inline functions
595 fguiding-decls
596 C++ ObjC++
598 fhandle-exceptions
599 C++ ObjC++ Optimization
601 fhonor-std
602 C++ ObjC++
604 fhosted
605 C ObjC
606 Assume normal C execution environment
608 fhuge-objects
609 C++ ObjC++
610 Enable support for huge objects
612 fimplement-inlines
613 C++ ObjC++
614 Export functions even if they can be inlined
616 fimplicit-inline-templates
617 C++ ObjC++
618 Emit implicit instantiations of inline templates
620 fimplicit-templates
621 C++ ObjC++
622 Emit implicit instantiations of templates
624 ffriend-injection
625 C++ ObjC++ Var(flag_friend_injection)
626 Inject friend functions into enclosing namespace
628 flabels-ok
629 C++ ObjC++
631 flax-vector-conversions
632 C ObjC C++ ObjC++
633 Allow implicit conversions between vectors with differing numbers of subparts and/or differing element types.
635 fms-extensions
636 C ObjC C++ ObjC++
637 Don't warn about uses of Microsoft extensions
639 fname-mangling-version-
640 C++ ObjC++ Joined
642 fnew-abi
643 C++ ObjC++
645 fnext-runtime
646 ObjC ObjC++
647 Generate code for NeXT (Apple Mac OS X) runtime environment
649 fnil-receivers
650 ObjC ObjC++
651 Assume that receivers of Objective-C messages may be nil
653 fnonansi-builtins
654 C++ ObjC++
656 fnonnull-objects
657 C++ ObjC++
659 ; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
660 ; to initialize any non-POD ivars in Objective-C++ classes.
661 fobjc-call-cxx-cdtors
662 ObjC++ Var(flag_objc_call_cxx_cdtors)
663 Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed
665 fobjc-direct-dispatch
666 ObjC ObjC++ Var(flag_objc_direct_dispatch)
667 Allow fast jumps to the message dispatcher
669 ; Nonzero means that we will allow new ObjC exception syntax (@throw,
670 ; @try, etc.) in source code.
671 fobjc-exceptions
672 ObjC ObjC++ Var(flag_objc_exceptions)
673 Enable Objective-C exception and synchronization syntax
675 fobjc-gc
676 ObjC ObjC++ Var(flag_objc_gc)
677 Enable garbage collection (GC) in Objective-C/Objective-C++ programs
679 ; Nonzero means that we generate NeXT setjmp based exceptions.
680 fobjc-sjlj-exceptions
681 ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1)
682 Enable Objective-C setjmp exception handling runtime
684 fopenmp
685 C ObjC C++ ObjC++ Var(flag_openmp)
686 Enable OpenMP
688 foperator-names
689 C++ ObjC++
690 Recognize C++ keywords like \"compl\" and \"xor\"
692 foptional-diags
693 C++ ObjC++
694 Enable optional diagnostics
696 fpch-deps
697 C ObjC C++ ObjC++
699 fpch-preprocess
700 C ObjC C++ ObjC++
701 Look for and use PCH files even when preprocessing
703 fpermissive
704 C++ ObjC++
705 Downgrade conformance errors to warnings
707 fpreprocessed
708 C ObjC C++ ObjC++
709 Treat the input file as already preprocessed
711 freplace-objc-classes
712 ObjC ObjC++
713 Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime
715 frepo
716 C++ ObjC++
717 Enable automatic template instantiation
719 frtti
720 C++ ObjC++ Optimization
721 Generate run time type descriptor information
723 fshort-double
724 C ObjC C++ ObjC++ Optimization
725 Use the same size for double as for float
727 fshort-enums
728 C ObjC C++ ObjC++ Optimization
729 Use the narrowest integer type possible for enumeration types
731 fshort-wchar
732 C ObjC C++ ObjC++ Optimization
733 Force the underlying type for \"wchar_t\" to be \"unsigned short\"
735 fsigned-bitfields
736 C ObjC C++ ObjC++
737 When \"signed\" or \"unsigned\" is not given make the bitfield signed
739 fsigned-char
740 C ObjC C++ ObjC++
741 Make \"char\" signed by default
743 fsquangle
744 C++ ObjC++
746 fstats
747 C++ ObjC++
748 Display statistics accumulated during compilation
750 fstrict-prototype
751 C++ ObjC++
753 ftabstop=
754 C ObjC C++ ObjC++ Joined RejectNegative UInteger
755 -ftabstop=<number>      Distance between tab stops for column reporting
757 ftemplate-depth-
758 C++ ObjC++ Joined RejectNegative UInteger
759 -ftemplate-depth-<number>       Specify maximum template instantiation depth
761 fthis-is-variable
762 C++ ObjC++
764 fthreadsafe-statics
765 C++ ObjC++ Optimization
766 -fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
768 funsigned-bitfields
769 C ObjC C++ ObjC++
770 When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
772 funsigned-char
773 C ObjC C++ ObjC++
774 Make \"char\" unsigned by default
776 fuse-cxa-atexit
777 C++ ObjC++
778 Use __cxa_atexit to register destructors
780 fuse-cxa-get-exception-ptr
781 C++ ObjC++
782 Use __cxa_get_exception_ptr in exception handling
784 fvisibility-inlines-hidden
785 C++ ObjC++
786 Marks all inlined methods as having hidden visibility
788 fvisibility-ms-compat
789 C++ ObjC++ Var(flag_visibility_ms_compat)
790 Changes visibility to match Microsoft Visual Studio by default
792 fvtable-gc
793 C++ ObjC++
794 Discard unused virtual functions
796 fvtable-thunks
797 C++ ObjC++
798 Implement vtables using thunks
800 fweak
801 C++ ObjC++
802 Emit common-like symbols as weak symbols
804 fwide-exec-charset=
805 C ObjC C++ ObjC++ Joined RejectNegative
806 -fwide-exec-charset=<cset>      Convert all wide strings and character constants to character set <cset>
808 fworking-directory
809 C ObjC C++ ObjC++
810 Generate a #line directive pointing at the current working directory
812 fxref
813 C++ ObjC++
814 Emit cross referencing information
816 fzero-link
817 ObjC ObjC++
818 Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode
820 gen-decls
821 ObjC ObjC++
822 Dump declarations to a .decl file
824 femit-struct-debug-baseonly
825 C ObjC C++ ObjC++
826 -femit-struct-debug-baseonly    Aggressive reduced debug info for structs
828 femit-struct-debug-reduced
829 C ObjC C++ ObjC++
830 -femit-struct-debug-reduced     Conservative reduced debug info for structs
832 femit-struct-debug-detailed=
833 C ObjC C++ ObjC++ Joined
834 -femit-struct-debug-detailed=<spec-list>        Detailed reduced debug info for structs
836 idirafter
837 C ObjC C++ ObjC++ Joined Separate
838 -idirafter <dir>        Add <dir> to the end of the system include path
840 imacros
841 C ObjC C++ ObjC++ Joined Separate
842 -imacros <file> Accept definition of macros in <file>
844 imultilib
845 C ObjC C++ ObjC++ Joined Separate
846 -imultilib <dir> Set <dir> to be the multilib include subdirectory
848 include
849 C ObjC C++ ObjC++ Joined Separate
850 -include <file> Include the contents of <file> before other files
852 iprefix
853 C ObjC C++ ObjC++ Joined Separate
854 -iprefix <path> Specify <path> as a prefix for next two options
856 isysroot
857 C ObjC C++ ObjC++ Joined Separate
858 -isysroot <dir> Set <dir> to be the system root directory
860 isystem
861 C ObjC C++ ObjC++ Joined Separate
862 -isystem <dir>  Add <dir> to the start of the system include path
864 iquote
865 C ObjC C++ ObjC++ Joined Separate
866 -iquote <dir>   Add <dir> to the end of the quote include path
868 iwithprefix
869 C ObjC C++ ObjC++ Joined Separate
870 -iwithprefix <dir>      Add <dir> to the end of the system include path
872 iwithprefixbefore
873 C ObjC C++ ObjC++ Joined Separate
874 -iwithprefixbefore <dir>        Add <dir> to the end of the main include path
876 lang-asm
877 C Undocumented
879 lang-objc
880 C ObjC C++ ObjC++ Undocumented
882 nostdinc
883 C ObjC C++ ObjC++
884 Do not search standard system include directories (those specified with -isystem will still be used)
886 nostdinc++
887 C++ ObjC++
888 Do not search standard system include directories for C++
891 C ObjC C++ ObjC++ Joined Separate
892 ; Documented in common.opt
894 pedantic
895 C ObjC C++ ObjC++
896 ; Documented in common.opt
898 pedantic-errors
899 C ObjC C++ ObjC++
900 ; Documented in common.opt
902 print-objc-runtime-info
903 ObjC ObjC++
904 Generate C header of platform-specific features
906 print-pch-checksum
907 C ObjC C++ ObjC++
908 Print a checksum of the executable for PCH validity checking, and stop
910 remap
911 C ObjC C++ ObjC++
912 Remap file names when including files
914 std=c++98
915 C++ ObjC++
916 Conform to the ISO 1998 C++ standard
918 std=c++0x
919 C++ ObjC++
920 Conform to the ISO 1998 C++ standard, with extensions that are likely to
921 become a part of the upcoming ISO C++ standard, dubbed C++0x. Note that the
922 extensions enabled by this mode are experimental and may be removed in
923 future releases of GCC.
925 std=c89
926 C ObjC
927 Conform to the ISO 1990 C standard
929 std=c99
930 C ObjC
931 Conform to the ISO 1999 C standard
933 std=c9x
934 C ObjC
935 Deprecated in favor of -std=c99
937 std=gnu++98
938 C++ ObjC++
939 Conform to the ISO 1998 C++ standard with GNU extensions
941 std=gnu++0x
942 C++ ObjC++
943 Conform to the ISO 1998 C++ standard, with GNU extensions and
944 extensions that are likely to become a part of the upcoming ISO C++
945 standard, dubbed C++0x. Note that the extensions enabled by this mode
946 are experimental and may be removed in future releases of GCC.
948 std=gnu89
949 C ObjC
950 Conform to the ISO 1990 C standard with GNU extensions
952 std=gnu99
953 C ObjC
954 Conform to the ISO 1999 C standard with GNU extensions
956 std=gnu9x
957 C ObjC
958 Deprecated in favor of -std=gnu99
960 std=iso9899:1990
961 C ObjC
962 Conform to the ISO 1990 C standard
964 std=iso9899:199409
965 C ObjC
966 Conform to the ISO 1990 C standard as amended in 1994
968 std=iso9899:1999
969 C ObjC
970 Conform to the ISO 1999 C standard
972 std=iso9899:199x
973 C ObjC
974 Deprecated in favor of -std=iso9899:1999
976 traditional-cpp
977 C ObjC C++ ObjC++
978 Enable traditional preprocessing
980 trigraphs
981 C ObjC C++ ObjC++
982 -trigraphs      Support ISO C trigraphs
984 undef
985 C ObjC C++ ObjC++
986 Do not predefine system-specific and GCC-specific macros
989 Common C ObjC C++ ObjC++
990 Enable verbose output
993 C ObjC C++ ObjC++
994 ; Documented in common.opt
996 ; This comment is to ensure we retain the blank line above.