1 ; Options for the C, ObjC, C++ and ObjC++ front ends.
2 ; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
3 ; Free Software Foundation, Inc.
5 ; This file is part of GCC.
7 ; GCC is free software; you can redistribute it and/or modify it under
8 ; the terms of the GNU General Public License as published by the Free
9 ; Software Foundation; either version 3, or (at your option) any later
12 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 ; You should have received a copy of the GNU General Public License
18 ; along with GCC; see the file COPYING3. If not see
19 ; <http://www.gnu.org/licenses/>.
21 ; See the GCC internals manual for a description of this file's format.
23 ; Please try to keep this file in ASCII collating order.
38 C ObjC C++ ObjC++ Joined Separate
41 C ObjC C++ ObjC++ Joined Separate
42 -A<question>=<answer> Assert the <answer> to <question>. Putting '-' before <question> disables the <answer> to <question>
46 Do not discard comments
50 Do not discard comments in macro expansions
53 C ObjC C++ ObjC++ Joined Separate
54 -D<macro>[=<val>] Define a <macro> with <val> as its value. If just <macro> is given, <val> is taken to be 1
57 C ObjC C++ ObjC++ Undocumented Var(flag_preprocess_only)
60 C ObjC C++ ObjC++ Joined Separate
61 -F <dir> Add <dir> to the end of the main framework include path
65 Print the name of header files as they are used
68 C ObjC C++ ObjC++ Joined Separate
69 -I <dir> Add <dir> to the end of the main include path
73 Generate make dependencies
76 C ObjC C++ ObjC++ Separate
77 Generate make dependencies and compile
80 C ObjC C++ ObjC++ Joined Separate
81 -MF <file> Write dependency output to the given file
85 Treat missing header files as generated files
89 Like -M but ignore system header files
92 C ObjC C++ ObjC++ Separate
93 Like -MD but ignore system header files
97 Generate phony targets for all headers
100 C ObjC C++ ObjC++ Joined Separate
101 -MQ <target> Add a MAKE-quoted target
104 C ObjC C++ ObjC++ Joined Separate
105 -MT <target> Add an unquoted target
109 Do not generate #line directives
112 C ObjC C++ ObjC++ Joined Separate
113 -U<macro> Undefine <macro>
116 C ObjC C++ ObjC++ LTO Var(warn_abi) Warning
117 Warn about things that will change when compiling with an ABI-compliant compiler
120 C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Undocumented
123 C ObjC C++ ObjC++ Var(warn_address) Warning
124 Warn about suspicious uses of memory addresses
127 C ObjC C++ ObjC++ Warning
128 Enable most warning messages
131 ObjC ObjC++ Var(warn_assign_intercept) Warning
132 Warn whenever an Objective-C assignment is being intercepted by the garbage collector
135 C ObjC Var(warn_bad_function_cast) Warning
136 Warn about casting functions to incompatible types
138 Wbuiltin-macro-redefined
139 C ObjC C++ ObjC++ Warning
140 Warn when a built-in preprocessor macro is undefined or redefined
143 C ObjC Var(warn_cxx_compat) Warning
144 Warn about C constructs that are not in the common subset of C and C++
147 C++ ObjC++ Var(warn_cxx0x_compat) Warning
148 Warn about C++ constructs whose meaning differs between ISO C++ 1998 and ISO C++ 200x
151 C ObjC C++ ObjC++ Var(warn_cast_qual) Warning
152 Warn about casts which discard qualifiers
155 C ObjC C++ ObjC++ Var(warn_char_subscripts) Warning
156 Warn about subscripts whose type is \"char\"
159 C ObjC C++ ObjC++ Var(warn_clobbered) Init(-1) Warning
160 Warn about variables that might be changed by \"longjmp\" or \"vfork\"
163 C ObjC C++ ObjC++ Warning
164 Warn about possibly nested block comments, and C++ comments spanning more than one physical line
167 C ObjC C++ ObjC++ Warning
168 Synonym for -Wcomment
171 C ObjC C++ ObjC++ Var(warn_conversion) Warning
172 Warn for implicit type conversions that may change a value
175 C++ ObjC++ Var(warn_conversion_null) Init(1) Warning
176 Warn for converting NULL from/to a non-pointer type
179 C ObjC C++ ObjC++ Var(warn_sign_conversion) Init(-1)
180 Warn for implicit type conversions between signed and unsigned integers
183 C++ ObjC++ Var(warn_ctor_dtor_privacy) Warning
184 Warn when all constructors and destructors are private
186 Wdeclaration-after-statement
187 C ObjC Var(warn_declaration_after_statement) Warning
188 Warn when a declaration is found after a statement
191 C C++ ObjC ObjC++ Var(warn_deprecated) Init(1) Warning
192 Warn if a deprecated compiler feature, class, method, or field is used
195 C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1) Warning
196 Warn about compile-time integer division by zero
199 C++ ObjC++ Var(warn_ecpp) Warning
200 Warn about violations of Effective C++ style rules
203 C ObjC C++ ObjC++ Var(warn_empty_body) Init(-1) Warning
204 Warn about an empty body in an if or else statement
207 C ObjC C++ ObjC++ Warning
208 Warn about stray tokens after #elif and #endif
211 C ObjC C++ ObjC++ Var(warn_enum_compare) Init(-1) Warning
212 Warn about comparison of different enum types
216 ; Documented in common.opt
218 Werror-implicit-function-declaration
219 C ObjC RejectNegative Warning
220 This switch is deprecated; use -Werror=implicit-function-declaration instead
223 C ObjC C++ ObjC++ Var(warn_float_equal) Warning
224 Warn if testing floating point numbers for equality
227 C ObjC C++ ObjC++ Warning
228 Warn about printf/scanf/strftime/strfmon format string anomalies
231 C ObjC C++ ObjC++ Var(warn_format_extra_args) Warning
232 Warn if passing too many arguments to a function for its format string
235 C ObjC C++ ObjC++ Var(warn_format_nonliteral) Warning
236 Warn about format strings that are not literals
239 C ObjC C++ ObjC++ Var(warn_format_contains_nul) Warning
240 Warn about format strings that contain NUL bytes
243 C ObjC C++ ObjC++ Var(warn_format_security) Warning
244 Warn about possible security problems with format functions
247 C ObjC C++ ObjC++ Var(warn_format_y2k) Warning
248 Warn about strftime formats yielding 2-digit years
251 C ObjC Var(warn_format_zero_length) Warning
252 Warn about zero-length formats
255 C ObjC C++ ObjC++ Joined Warning
258 C C++ Var(warn_ignored_qualifiers) Init(-1) Warning
259 Warn whenever type qualifiers are ignored.
262 C ObjC C++ ObjC++ Var(warn_init_self) Warning
263 Warn about variables which are initialized to themselves
266 C ObjC Var(warn_implicit) Init(-1) Warning
267 Warn about implicit declarations
269 Wimplicit-function-declaration
270 C ObjC Var(warn_implicit_function_declaration) Init(-1) Warning
271 Warn about implicit function declarations
274 C ObjC Var(warn_implicit_int) Init(-1) Warning
275 Warn when a declaration does not specify a type
278 C ObjC C++ ObjC++ Undocumented
281 C ObjC C++ ObjC++ Var(warn_int_to_pointer_cast) Init(1) Warning
282 Warn when there is a cast to a pointer from an integer of a different size
285 C++ ObjC++ Var(warn_invalid_offsetof) Init(1) Warning
286 Warn about invalid uses of the \"offsetof\" macro
289 C ObjC C++ ObjC++ Warning
290 Warn about PCH files that are found but not used
293 C ObjC Var(warn_jump_misses_init) Init(-1) Warning
294 Warn when a jump misses a variable initialization
297 C ObjC C++ ObjC++ Var(warn_logical_op) Init(0) Warning
298 Warn when a logical operator is suspiciously always evaluating to true or false
301 C ObjC C++ ObjC++ Var(warn_long_long) Init(-1) Warning
302 Do not warn about using \"long long\" when -pedantic
305 C ObjC C++ ObjC++ Var(warn_main) Init(-1) Warning
306 Warn about suspicious declarations of \"main\"
309 C ObjC C++ ObjC++ Var(warn_missing_braces) Warning
310 Warn about possibly missing braces around initializers
312 Wmissing-declarations
313 C ObjC C++ ObjC++ Var(warn_missing_declarations) Warning
314 Warn about global functions without previous declarations
316 Wmissing-field-initializers
317 C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Init(-1) Warning
318 Warn about missing fields in struct initializers
320 Wmissing-format-attribute
321 C ObjC C++ ObjC++ Var(warn_missing_format_attribute) Warning
322 Warn about functions which might be candidates for format attributes
324 Wmissing-include-dirs
325 C ObjC C++ ObjC++ Warning
326 Warn about user-specified include directories that do not exist
328 Wmissing-parameter-type
329 C ObjC Var(warn_missing_parameter_type) Init(-1) Warning
330 Warn about function parameters declared without a type specifier in K&R-style functions
333 C ObjC Var(warn_missing_prototypes) Warning
334 Warn about global functions without prototypes
337 C ObjC C++ ObjC++ Warning
338 Warn about use of multi-character character constants
341 C ObjC Var(warn_nested_externs) Warning
342 Warn about \"extern\" declarations not at file scope
345 C++ ObjC++ Var(warn_noexcept) Warning
346 Warn when a noexcept expression evaluates to false even though the expression can't actually throw
349 C++ ObjC++ Var(warn_nontemplate_friend) Init(1) Warning
350 Warn when non-templatized friend functions are declared within a template
353 C++ ObjC++ Var(warn_nonvdtor) Warning
354 Warn about non-virtual destructors
357 C ObjC Var(warn_nonnull) Warning
358 Warn about NULL being passed to argument slots marked as requiring non-NULL
361 C ObjC C++ ObjC++ Joined Warning
362 -Wnormalized=<id|nfc|nfkc> Warn about non-normalised Unicode strings
365 C++ ObjC++ Var(warn_old_style_cast) Warning
366 Warn if a C-style cast is used in a program
368 Wold-style-declaration
369 C ObjC Var(warn_old_style_declaration) Init(-1) Warning
370 Warn for obsolescent usage in a declaration
372 Wold-style-definition
373 C ObjC Var(warn_old_style_definition) Warning
374 Warn if an old-style parameter definition is used
377 C ObjC C++ ObjC++ Var(warn_overlength_strings) Init(-1) Warning
378 Warn if a string is longer than the maximum portable length specified by the standard
381 C++ ObjC++ Var(warn_overloaded_virtual) Warning
382 Warn about overloaded virtual function names
385 C ObjC Var(warn_override_init) Init(-1) Warning
386 Warn about overriding initializers without side effects
388 Wpacked-bitfield-compat
389 C ObjC C++ ObjC++ Var(warn_packed_bitfield_compat) Init(-1) Warning
390 Warn about packed bit-fields whose offset changed in GCC 4.4
393 C ObjC C++ ObjC++ Var(warn_parentheses) Warning
394 Warn about possibly missing parentheses
397 C++ ObjC++ Var(warn_pmf2ptr) Init(1) Warning
398 Warn when converting the type of pointers to member functions
401 C ObjC C++ ObjC++ Var(warn_pointer_arith) Warning
402 Warn about function pointer arithmetic
405 C ObjC Var(warn_pointer_to_int_cast) Init(1) Warning
406 Warn when a pointer is cast to an integer of a different size
409 C ObjC C++ ObjC++ Var(warn_pragmas) Init(1) Warning
410 Warn about misuses of pragmas
413 ObjC ObjC++ Var(warn_protocol) Init(1) Warning
414 Warn if inherited methods are unimplemented
417 C ObjC C++ ObjC++ Var(warn_redundant_decls) Warning
418 Warn about multiple declarations of the same object
421 C++ ObjC++ Var(warn_reorder) Warning
422 Warn when the compiler reorders code
425 C ObjC C++ ObjC++ Var(warn_return_type) Warning
426 Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++)
429 ObjC ObjC++ Var(warn_selector) Warning
430 Warn if a selector has multiple methods
433 C ObjC C++ ObjC++ Var(warn_sequence_point) Warning
434 Warn about possible violations of sequence point rules
437 C ObjC C++ ObjC++ Var(warn_sign_compare) Init(-1) Warning
438 Warn about signed-unsigned comparisons
441 C++ ObjC++ Var(warn_sign_promo) Warning
442 Warn when overload promotes from unsigned to signed
444 Wstrict-null-sentinel
445 C++ ObjC++ Warning Var(warn_strict_null_sentinel)
446 Warn about uncasted NULL used as sentinel
449 C ObjC Var(warn_strict_prototypes) Warning
450 Warn about unprototyped function declarations
452 Wstrict-selector-match
453 ObjC ObjC++ Var(warn_strict_selector_match) Warning
454 Warn if type signatures of candidate methods do not match exactly
457 C C++ Var(warn_sync_nand) Init(1) Warning
458 Warn when __sync_fetch_and_nand and __sync_nand_and_fetch built-in functions are used
461 C++ ObjC++ Var(warn_synth) Warning
462 Deprecated. This switch has no effect
465 C ObjC C++ ObjC++ Warning
466 ; Documented in common.opt
469 C ObjC Var(warn_traditional) Warning
470 Warn about features not present in traditional C
472 Wtraditional-conversion
473 C ObjC Var(warn_traditional_conversion) Warning
474 Warn of prototypes causing type conversions different from what would happen in the absence of prototype
477 C ObjC C++ ObjC++ Warning
478 Warn if trigraphs are encountered that might affect the meaning of the program
481 ObjC ObjC++ Var(warn_undeclared_selector) Warning
482 Warn about @selector()s without previously declared methods
485 C ObjC C++ ObjC++ Warning
486 Warn if an undefined macro is used in an #if directive
489 C ObjC C++ ObjC++ Warning
490 Warn about unrecognized pragmas
492 Wunsuffixed-float-constants
493 C ObjC Var(warn_unsuffixed_float_constants) Warning
494 Warn about unsuffixed float constants
497 C ObjC C++ ObjC++ Warning
498 Warn about macros defined in the main file that are not used
501 C ObjC C++ ObjC++ Var(warn_unused_result) Init(1) Warning
502 Warn if a caller of a function, marked with attribute warn_unused_result, does not use its return value
505 C ObjC C++ ObjC++ Warning
506 Do not warn about using variadic macros when -pedantic
509 C ObjC C++ ObjC++ Var(warn_vla) Init(-1) Warning
510 Warn if a variable length array is used
512 Wvolatile-register-var
513 C ObjC C++ ObjC++ Var(warn_volatile_register_var) Warning
514 Warn when a register variable is declared volatile
517 C ObjC C++ ObjC++ Var(warn_write_strings) Warning
518 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.
521 C ObjC Var(warn_pointer_sign) Init(-1) Warning
522 Warn when a pointer differs in signedness in an assignment
526 A synonym for -std=c89 (for C) or -std=c++98 (for C++)
529 C ObjC C++ ObjC++ Joined
530 ; Documented in common.opt. FIXME - what about -dI, -dD, -dN and -dD?
533 C++ ObjC++ Var(flag_access_control) Init(1)
534 Enforce class member access control semantics
539 falt-external-templates
541 Change when template instances are emitted
544 C ObjC C++ ObjC++ Var(flag_no_asm, 0)
545 Recognize the \"asm\" keyword
548 C ObjC C++ ObjC++ Var(flag_no_builtin, 0)
549 Recognize built-in functions
552 C ObjC C++ ObjC++ Joined
555 C++ ObjC++ Var(flag_check_new)
556 Check the return value of new
560 Allow the arguments of the '?' operator to have different types
563 C++ ObjC++ Var(flag_conserve_space)
564 Reduce the size of object files
566 fconstant-string-class=
568 -fconst-string-class=<name> Use class <name> for constant strings
571 C++ ObjC++ Var(flag_deduce_init_list) Init(1)
572 -fno-deduce-init-list disable deduction of std::initializer_list for a template type parameter from a brace-enclosed initializer-list
576 Does nothing. Preserved for backward compatibility.
580 Preprocess directives only.
582 fdollars-in-identifiers
584 Permit '$' as an identifier character
587 C++ ObjC++ Var(flag_elide_constructors) Init(1)
590 C++ ObjC++ Var(flag_enforce_eh_specs) Init(1)
591 Generate code to check exception specifications
597 C ObjC C++ ObjC++ Joined RejectNegative
598 -fexec-charset=<cset> Convert all strings and character constants to character set <cset>
600 fextended-identifiers
602 Permit universal character names (\\u and \\U) in identifiers
605 C ObjC C++ ObjC++ Joined RejectNegative
606 -finput-charset=<cset> Specify the default character set for source files
613 C++ ObjC++ Var(flag_new_for_scope) Init(1)
614 Scope of for-init-statement variables is local to the loop
618 Do not assume that standard C libraries and \"main\" exist
621 C++ ObjC++ Var(flag_no_gnu_keywords, 0)
622 Recognize GNU-defined keywords
626 Generate code for GNU runtime environment
629 C ObjC Var(flag_gnu89_inline) Init(-1)
630 Use traditional GNU semantics for inline functions
636 C++ ObjC++ Optimization
643 Assume normal C execution environment
647 Enable support for huge objects
650 C++ ObjC++ Var(flag_implement_inlines) Init(1)
651 Export functions even if they can be inlined
653 fimplicit-inline-templates
654 C++ ObjC++ Var(flag_implicit_inline_templates) Init(1)
655 Emit implicit instantiations of inline templates
658 C++ ObjC++ Var(flag_implicit_templates) Init(1)
659 Emit implicit instantiations of templates
662 C++ ObjC++ Var(flag_friend_injection)
663 Inject friend functions into enclosing namespace
668 flax-vector-conversions
669 C ObjC C++ ObjC++ Var(flag_lax_vector_conversions)
670 Allow implicit conversions between vectors with differing numbers of subparts and/or differing element types.
673 C ObjC C++ ObjC++ Var(flag_ms_extensions)
674 Don't warn about uses of Microsoft extensions
676 fname-mangling-version-
684 Generate code for NeXT (Apple Mac OS X) runtime environment
687 ObjC ObjC++ Var(flag_nil_receivers) Init(1)
688 Assume that receivers of Objective-C messages may be nil
691 C++ ObjC++ Var(flag_no_nonansi_builtin, 0)
697 C++ ObjC++ Optimization Var(flag_nothrow_opt)
698 Treat a throw() exception specification as noexcept to improve code size
700 ; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
701 ; to initialize any non-POD ivars in Objective-C++ classes.
702 fobjc-call-cxx-cdtors
703 ObjC++ Var(flag_objc_call_cxx_cdtors)
704 Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed
706 fobjc-direct-dispatch
707 ObjC ObjC++ Var(flag_objc_direct_dispatch)
708 Allow fast jumps to the message dispatcher
710 ; Nonzero means that we will allow new ObjC exception syntax (@throw,
711 ; @try, etc.) in source code.
713 ObjC ObjC++ Var(flag_objc_exceptions)
714 Enable Objective-C exception and synchronization syntax
717 ObjC ObjC++ Var(flag_objc_gc)
718 Enable garbage collection (GC) in Objective-C/Objective-C++ programs
720 ; Nonzero means that we generate NeXT setjmp based exceptions.
721 fobjc-sjlj-exceptions
722 ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1)
723 Enable Objective-C setjmp exception handling runtime
726 C ObjC C++ ObjC++ Var(flag_openmp)
727 Enable OpenMP (implies -frecursive in Fortran)
731 Recognize C++ keywords like \"compl\" and \"xor\"
735 Does nothing. Preserved for backward compatibility.
742 Look for and use PCH files even when preprocessing
746 Downgrade conformance errors to warnings
750 Treat the input file as already preprocessed
753 C++ ObjC++ Var(flag_pretty_templates) Init(1)
754 -fno-pretty-templates Do not pretty-print template specializations as the template signature followed by the arguments
756 freplace-objc-classes
757 ObjC ObjC++ Var(flag_replace_objc_classes)
758 Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime
762 Enable automatic template instantiation
765 C++ ObjC++ Optimization Var(flag_rtti) Init(1)
766 Generate run time type descriptor information
769 C ObjC C++ ObjC++ Optimization Var(flag_short_double)
770 Use the same size for double as for float
773 C ObjC C++ ObjC++ Optimization Var(flag_short_enums)
774 Use the narrowest integer type possible for enumeration types
777 C ObjC C++ ObjC++ Optimization Var(flag_short_wchar)
778 Force the underlying type for \"wchar_t\" to be \"unsigned short\"
781 C ObjC C++ ObjC++ Var(flag_signed_bitfields) Init(1)
782 When \"signed\" or \"unsigned\" is not given make the bitfield signed
785 C ObjC C++ ObjC++ LTO Var(flag_signed_char)
786 Make \"char\" signed by default
792 C++ ObjC++ Var(flag_detailed_statistics)
793 Display statistics accumulated during compilation
796 C++ ObjC++ Optimization Var(flag_strict_enums)
797 Assume that values of enumeration type are always within the minimum range of that type
803 C ObjC C++ ObjC++ Joined RejectNegative UInteger
804 -ftabstop=<number> Distance between tab stops for column reporting
807 C++ ObjC++ Joined RejectNegative UInteger Undocumented
810 C++ ObjC++ Joined RejectNegative UInteger
811 -ftemplate-depth=<number> Specify maximum template instantiation depth
817 C++ ObjC++ Optimization Var(flag_threadsafe_statics) Init(1)
818 -fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
821 C ObjC C++ ObjC++ Var(flag_signed_bitfields, 0) VarExists
822 When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
825 C ObjC C++ ObjC++ LTO Var(flag_signed_char, 0) VarExists
826 Make \"char\" unsigned by default
829 C++ ObjC++ Var(flag_use_cxa_atexit) Init(DEFAULT_USE_CXA_ATEXIT)
830 Use __cxa_atexit to register destructors
832 fuse-cxa-get-exception-ptr
833 C++ ObjC++ Var(flag_use_cxa_get_exception_ptr) Init(2)
834 Use __cxa_get_exception_ptr in exception handling
836 fvisibility-inlines-hidden
838 Marks all inlined methods as having hidden visibility
840 fvisibility-ms-compat
841 C++ ObjC++ Var(flag_visibility_ms_compat)
842 Changes visibility to match Microsoft Visual Studio by default
846 Discard unused virtual functions
850 Implement vtables using thunks
853 C++ ObjC++ Var(flag_weak) Init(1)
854 Emit common-like symbols as weak symbols
857 C ObjC C++ ObjC++ Joined RejectNegative
858 -fwide-exec-charset=<cset> Convert all wide strings and character constants to character set <cset>
861 C ObjC C++ ObjC++ Var(flag_working_directory) Init(-1)
862 Generate a #line directive pointing at the current working directory
866 Emit cross referencing information
869 ObjC ObjC++ Var(flag_zero_link)
870 Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode
873 ObjC ObjC++ Var(flag_gen_declaration)
874 Dump declarations to a .decl file
876 femit-struct-debug-baseonly
878 -femit-struct-debug-baseonly Aggressive reduced debug info for structs
880 femit-struct-debug-reduced
882 -femit-struct-debug-reduced Conservative reduced debug info for structs
884 femit-struct-debug-detailed=
885 C ObjC C++ ObjC++ Joined
886 -femit-struct-debug-detailed=<spec-list> Detailed reduced debug info for structs
889 C ObjC C++ ObjC++ Joined Separate
890 -idirafter <dir> Add <dir> to the end of the system include path
893 C ObjC C++ ObjC++ Joined Separate
894 -imacros <file> Accept definition of macros in <file>
897 C ObjC C++ ObjC++ Joined Separate
898 -imultilib <dir> Set <dir> to be the multilib include subdirectory
901 C ObjC C++ ObjC++ Joined Separate
902 -include <file> Include the contents of <file> before other files
905 C ObjC C++ ObjC++ Joined Separate
906 -iprefix <path> Specify <path> as a prefix for next two options
909 C ObjC C++ ObjC++ Joined Separate
910 -isysroot <dir> Set <dir> to be the system root directory
913 C ObjC C++ ObjC++ Joined Separate
914 -isystem <dir> Add <dir> to the start of the system include path
917 C ObjC C++ ObjC++ Joined Separate
918 -iquote <dir> Add <dir> to the end of the quote include path
921 C ObjC C++ ObjC++ Joined Separate
922 -iwithprefix <dir> Add <dir> to the end of the system include path
925 C ObjC C++ ObjC++ Joined Separate
926 -iwithprefixbefore <dir> Add <dir> to the end of the main include path
933 Do not search standard system include directories (those specified with -isystem will still be used)
937 Do not search standard system include directories for C++
940 C ObjC C++ ObjC++ Joined Separate
941 ; Documented in common.opt
945 ; Documented in common.opt
949 ; Documented in common.opt
951 print-objc-runtime-info
953 Generate C header of platform-specific features
957 Print a checksum of the executable for PCH validity checking, and stop
961 Remap file names when including files
965 Conform to the ISO 1998 C++ standard
969 Conform to the ISO 1998 C++ standard, with extensions that are likely to
970 become a part of the upcoming ISO C++ standard, dubbed C++0x. Note that the
971 extensions enabled by this mode are experimental and may be removed in
972 future releases of GCC.
976 Conform to the ISO 201X C standard draft (experimental and incomplete support)
980 Conform to the ISO 1990 C standard
984 Conform to the ISO 1990 C standard
988 Conform to the ISO 1999 C standard
992 Deprecated in favor of -std=c99
996 Conform to the ISO 1998 C++ standard with GNU extensions
1000 Conform to the ISO 1998 C++ standard, with GNU extensions and
1001 extensions that are likely to become a part of the upcoming ISO C++
1002 standard, dubbed C++0x. Note that the extensions enabled by this mode
1003 are experimental and may be removed in future releases of GCC.
1007 Conform to the ISO 201X C standard draft with GNU extensions (experimental and incomplete support)
1011 Conform to the ISO 1990 C standard with GNU extensions
1015 Conform to the ISO 1990 C standard with GNU extensions
1019 Conform to the ISO 1999 C standard with GNU extensions
1023 Deprecated in favor of -std=gnu99
1027 Conform to the ISO 1990 C standard
1031 Conform to the ISO 1990 C standard as amended in 1994
1035 Conform to the ISO 1999 C standard
1039 Deprecated in favor of -std=iso9899:1999
1043 Enable traditional preprocessing
1047 -trigraphs Support ISO C trigraphs
1050 C ObjC C++ ObjC++ Var(flag_undef)
1051 Do not predefine system-specific and GCC-specific macros
1054 Common C ObjC C++ ObjC++
1055 Enable verbose output
1059 ; Documented in common.opt
1061 ; This comment is to ensure we retain the blank line above.