OSDN Git Service

2007-01-18 Hui-May Chang <hm.chang@apple.com>
[pf3gnuchains/gcc-fork.git] / gcc / c.opt
1 ; Options for the C, ObjC, C++ and ObjC++ front ends.
2 ; Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
3 ;
4 ; This file is part of GCC.
5 ;
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 2, or (at your option) any later
9 ; version.
10 ;
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.
15 ;
16 ; You should have received a copy of the GNU General Public License
17 ; along with GCC; see the file COPYING.  If not, write to the Free
18 ; Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
19 ; 02110-1301, USA.
20
21 ; See the GCC internals manual for a description of this file's format.
22
23 ; Please try to keep this file in ASCII collating order.
24
25 Language
26 C
27
28 Language
29 ObjC
30
31 Language
32 C++
33
34 Language
35 ObjC++
36
37 -output-pch=
38 C ObjC C++ ObjC++ Joined Separate
39
40 A
41 C ObjC C++ ObjC++ Joined Separate
42 -A<question>=<answer>   Assert the <answer> to <question>.  Putting '-' before <question> disables the <answer> to <question>
43
44 C
45 C ObjC C++ ObjC++
46 Do not discard comments
47
48 CC
49 C ObjC C++ ObjC++
50 Do not discard comments in macro expansions
51
52 D
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
55
56 E
57 C ObjC C++ ObjC++ Undocumented
58
59 F
60 C ObjC C++ ObjC++ Joined Separate
61 -F <dir>        Add <dir> to the end of the main framework include path
62
63 H
64 C ObjC C++ ObjC++
65 Print the name of header files as they are used
66
67 I
68 C ObjC C++ ObjC++ Joined Separate
69 -I <dir>        Add <dir> to the end of the main include path
70
71 M
72 C ObjC C++ ObjC++
73 Generate make dependencies
74
75 MD
76 C ObjC C++ ObjC++ Separate
77 Generate make dependencies and compile
78
79 MF
80 C ObjC C++ ObjC++ Joined Separate
81 -MF <file>      Write dependency output to the given file
82
83 MG
84 C ObjC C++ ObjC++
85 Treat missing header files as generated files
86
87 MM
88 C ObjC C++ ObjC++
89 Like -M but ignore system header files
90
91 MMD
92 C ObjC C++ ObjC++ Separate
93 Like -MD but ignore system header files
94
95 MP
96 C ObjC C++ ObjC++
97 Generate phony targets for all headers
98
99 MQ
100 C ObjC C++ ObjC++ Joined Separate
101 -MQ <target>    Add a MAKE-quoted target
102
103 MT
104 C ObjC C++ ObjC++ Joined Separate
105 -MT <target>    Add an unquoted target
106
107 P
108 C ObjC C++ ObjC++
109 Do not generate #line directives
110
111 U
112 C ObjC C++ ObjC++ Joined Separate
113 -U<macro>       Undefine <macro>
114
115 Wabi
116 C++ ObjC++ Var(warn_abi)
117 Warn about things that will change when compiling with an ABI-compliant compiler
118
119 Wall
120 C ObjC C++ ObjC++
121 Enable most warning messages
122
123 Wassign-intercept
124 ObjC ObjC++ Var(warn_assign_intercept)
125 Warn whenever an Objective-C assignment is being intercepted by the garbage collector
126
127 Wbad-function-cast
128 C ObjC Var(warn_bad_function_cast)
129 Warn about casting functions to incompatible types
130
131 Wc++-compat
132 C Var(warn_cxx_compat)
133 Warn about C constructs that are not in the common subset of C and C++
134
135
136 Wcast-qual
137 C ObjC C++ ObjC++ Var(warn_cast_qual)
138 Warn about casts which discard qualifiers
139
140 Wchar-subscripts
141 C ObjC C++ ObjC++ Var(warn_char_subscripts)
142 Warn about subscripts whose type is \"char\"
143
144 Wclobbered
145 C ObjC C++ ObjC++ Var(warn_clobbered) Init(-1)
146 Warn about variables that might be changed by \"longjmp\" or \"vfork\"
147
148 Wcomment
149 C ObjC C++ ObjC++
150 Warn about possibly nested block comments, and C++ comments spanning more than one physical line
151
152 Wcomments
153 C ObjC C++ ObjC++
154 Synonym for -Wcomment
155
156 Wconversion
157 C ObjC C++ ObjC++ Var(warn_conversion)
158 Warn for implicit type conversions that may change a value
159
160 Wctor-dtor-privacy
161 C++ ObjC++ Var(warn_ctor_dtor_privacy)
162 Warn when all constructors and destructors are private
163
164 Wdeclaration-after-statement
165 C ObjC Var(warn_declaration_after_statement)
166 Warn when a declaration is found after a statement
167
168 Wdeprecated
169 C++ ObjC++ Var(warn_deprecated) Init(1)
170 Warn about deprecated compiler features
171
172 Wdiv-by-zero
173 C ObjC C++ Var(warn_div_by_zero) Init(1)
174 Warn about compile-time integer division by zero
175
176 Weffc++
177 C++ ObjC++ Var(warn_ecpp)
178 Warn about violations of Effective C++ style rules
179
180 Wempty-body
181 C ObjC C++ ObjC++ Var(warn_empty_body) Init(-1)
182 Warn about an empty body in an if or else statement
183
184 Wendif-labels
185 C ObjC C++ ObjC++
186 Warn about stray tokens after #elif and #endif
187
188 Werror
189 C ObjC C++ ObjC++
190 ; Documented in common.opt
191
192 Werror-implicit-function-declaration
193 C ObjC RejectNegative
194 Make implicit function declarations an error
195
196 Wfloat-equal
197 C ObjC C++ ObjC++ Var(warn_float_equal)
198 Warn if testing floating point numbers for equality
199
200 Wformat
201 C ObjC C++ ObjC++
202 Warn about printf/scanf/strftime/strfmon format string anomalies
203
204 Wformat-extra-args
205 C ObjC C++ ObjC++ Var(warn_format_extra_args)
206 Warn if passing too many arguments to a function for its format string
207
208 Wformat-nonliteral
209 C ObjC C++ ObjC++ Var(warn_format_nonliteral)
210 Warn about format strings that are not literals
211
212 Wformat-security
213 C ObjC C++ ObjC++ Var(warn_format_security)
214 Warn about possible security problems with format functions
215
216 Wformat-y2k
217 C ObjC C++ ObjC++ Var(warn_format_y2k)
218 Warn about strftime formats yielding 2-digit years
219
220 Wformat-zero-length
221 C ObjC Var(warn_format_zero_length)
222 Warn about zero-length formats
223
224 Wformat=
225 C ObjC C++ ObjC++ Joined
226
227 Winit-self
228 C ObjC C++ ObjC++ Var(warn_init_self)
229 Warn about variables which are initialized to themselves
230
231 Wimplicit
232 C ObjC C++ ObjC++
233
234 Wimplicit-function-declaration
235 C ObjC Var(mesg_implicit_function_declaration) Init(-1)
236 Warn about implicit function declarations
237
238 Wimplicit-int
239 C ObjC Var(warn_implicit_int)
240 Warn when a declaration does not specify a type
241
242 Wimport
243 C ObjC C++ ObjC++
244 Deprecated.  This switch has no effect
245
246 Wint-to-pointer-cast
247 C ObjC Var(warn_int_to_pointer_cast) Init(1)
248 Warn when there is a cast to a pointer from an integer of a different size
249
250 Winvalid-offsetof
251 C++ ObjC++ Var(warn_invalid_offsetof) Init(1)
252 Warn about invalid uses of the \"offsetof\" macro
253
254 Winvalid-pch
255 C ObjC C++ ObjC++
256 Warn about PCH files that are found but not used
257
258 Wlong-long
259 C ObjC C++ ObjC++ Var(warn_long_long) Init(1)
260 Do not warn about using \"long long\" when -pedantic
261
262 Wmain
263 C ObjC
264 Warn about suspicious declarations of \"main\"
265
266 Wmissing-braces
267 C ObjC C++ ObjC++ Var(warn_missing_braces)
268 Warn about possibly missing braces around initializers
269
270 Wmissing-declarations
271 C ObjC C++ ObjC++ Var(warn_missing_declarations)
272 Warn about global functions without previous declarations
273
274 Wmissing-field-initializers
275 C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Init(-1)
276 Warn about missing fields in struct initializers
277
278 Wmissing-format-attribute
279 C ObjC C++ ObjC++ Var(warn_missing_format_attribute)
280 Warn about functions which might be candidates for format attributes
281
282 Wmissing-include-dirs
283 C ObjC C++ ObjC++
284 Warn about user-specified include directories that do not exist
285
286 Wmissing-parameter-type
287 C ObjC Var(warn_missing_parameter_type) Init(-1)
288 Warn about function parameters declared without a type specifier in K&R-style functions
289
290 Wmissing-prototypes
291 C ObjC Var(warn_missing_prototypes)
292 Warn about global functions without prototypes
293
294 Wmultichar
295 C ObjC C++ ObjC++
296 Warn about use of multi-character character constants
297
298 Wnested-externs
299 C ObjC Var(warn_nested_externs)
300 Warn about \"extern\" declarations not at file scope
301
302 Wnon-template-friend
303 C++ ObjC++ Var(warn_nontemplate_friend) Init(1)
304 Warn when non-templatized friend functions are declared within a template
305
306 Wnon-virtual-dtor
307 C++ ObjC++ Var(warn_nonvdtor)
308 Warn about non-virtual destructors
309
310 Wnonnull
311 C ObjC Var(warn_nonnull)
312 Warn about NULL being passed to argument slots marked as requiring non-NULL
313
314 Wnormalized=
315 C ObjC C++ ObjC++ Joined
316 -Wnormalized=<id|nfc|nfkc>      Warn about non-normalised Unicode strings
317
318 Wold-style-cast
319 C++ ObjC++ Var(warn_old_style_cast)
320 Warn if a C-style cast is used in a program
321
322 Wold-style-declaration
323 C ObjC Var(warn_old_style_declaration) Init(-1)
324 Warn for obsolescent usage in a declaration
325
326 Wold-style-definition
327 C ObjC Var(warn_old_style_definition)
328 Warn if an old-style parameter definition is used
329
330 Woverlength-strings
331 C ObjC C++ ObjC++ Var(warn_overlength_strings) Init(-1)
332 Warn if a string is longer than the maximum portable length specified by the standard
333
334 Woverloaded-virtual
335 C++ ObjC++ Var(warn_overloaded_virtual)
336 Warn about overloaded virtual function names
337
338 Woverride-init
339 C ObjC Var(warn_override_init) Init(-1)
340 Warn about overriding initializers without side effects
341
342 Wparentheses
343 C ObjC C++ ObjC++ Var(warn_parentheses)
344 Warn about possibly missing parentheses
345
346 Wpmf-conversions
347 C++ ObjC++ Var(warn_pmf2ptr) Init(1)
348 Warn when converting the type of pointers to member functions
349
350 Wpointer-arith
351 C ObjC C++ ObjC++ Var(warn_pointer_arith)
352 Warn about function pointer arithmetic
353
354 Wpointer-to-int-cast
355 C ObjC Var(warn_pointer_to_int_cast) Init(1)
356 Warn when a pointer is cast to an integer of a different size
357
358 Wpragmas
359 C ObjC C++ ObjC++ Var(warn_pragmas) Init(1)
360 Warn about misuses of pragmas
361
362 Wprotocol
363 ObjC ObjC++ Var(warn_protocol) Init(1)
364 Warn if inherited methods are unimplemented
365
366 Wredundant-decls
367 C ObjC C++ ObjC++ Var(warn_redundant_decls)
368 Warn about multiple declarations of the same object
369
370 Wreorder
371 C++ ObjC++ Var(warn_reorder)
372 Warn when the compiler reorders code
373
374 Wreturn-type
375 C ObjC C++ ObjC++ Var(warn_return_type)
376 Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++)
377
378 Wselector
379 ObjC ObjC++ Var(warn_selector)
380 Warn if a selector has multiple methods
381
382 Wsequence-point
383 C ObjC C++ ObjC++ Var(warn_sequence_point)
384 Warn about possible violations of sequence point rules
385
386 Wsign-compare
387 C ObjC C++ ObjC++ Var(warn_sign_compare) Init(-1)
388 Warn about signed-unsigned comparisons
389
390 Wsign-promo
391 C++ ObjC++ Var(warn_sign_promo)
392 Warn when overload promotes from unsigned to signed
393
394 Wstrict-null-sentinel
395 C++ ObjC++
396 Warn about uncasted NULL used as sentinel
397
398 Wstrict-prototypes
399 C ObjC Var(warn_strict_prototypes)
400 Warn about unprototyped function declarations
401
402 Wstrict-selector-match
403 ObjC ObjC++ Var(warn_strict_selector_match)
404 Warn if type signatures of candidate methods do not match exactly
405
406 Wsynth
407 C++ ObjC++ Var(warn_synth)
408 Warn when synthesis behavior differs from Cfront
409
410 Wsystem-headers
411 C ObjC C++ ObjC++
412 Do not suppress warnings from system headers
413
414 Wtraditional
415 C ObjC Var(warn_traditional)
416 Warn about features not present in traditional C
417
418 Wtraditional-conversion
419 C ObjC Var(warn_traditional_conversion)
420 Warn of prototypes causing type conversions different from what would happen in the absence of prototype
421
422 Wtrigraphs
423 C ObjC C++ ObjC++
424 Warn if trigraphs are encountered that might affect the meaning of the program
425
426 Wundeclared-selector
427 ObjC ObjC++ Var(warn_undeclared_selector)
428 Warn about @selector()s without previously declared methods
429
430 Wundef
431 C ObjC C++ ObjC++
432 Warn if an undefined macro is used in an #if directive
433
434 Wunknown-pragmas
435 C ObjC C++ ObjC++
436 Warn about unrecognized pragmas
437
438 Wunused-macros
439 C ObjC C++ ObjC++
440 Warn about macros defined in the main file that are not used
441
442 Wvariadic-macros
443 C ObjC C++ ObjC++
444 Do not warn about using variadic macros when -pedantic
445
446 Wwrite-strings
447 C ObjC C++ ObjC++ Var(warn_write_strings)
448 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.
449
450 Wpointer-sign
451 C ObjC Var(warn_pointer_sign) Init(-1)
452 Warn when a pointer differs in signedness in an assignment
453
454 ansi
455 C ObjC C++ ObjC++
456 A synonym for -std=c89 (for C) or -std=c++98 (for C++)
457
458 d
459 C ObjC C++ ObjC++ Joined
460 ; Documented in common.opt.  FIXME - what about -dI, -dD, -dN and -dD?
461
462 faccess-control
463 C++ ObjC++
464 Enforce class member access control semantics
465
466 fall-virtual
467 C++ ObjC++
468
469 falt-external-templates
470 C++ ObjC++
471 Change when template instances are emitted
472
473 fasm
474 C ObjC C++ ObjC++
475 Recognize the \"asm\" keyword
476
477 fbuiltin
478 C ObjC C++ ObjC++
479 Recognize built-in functions
480
481 fbuiltin-
482 C ObjC C++ ObjC++ Joined
483
484 fcheck-new
485 C++ ObjC++
486 Check the return value of new
487
488 fcond-mismatch
489 C ObjC C++ ObjC++
490 Allow the arguments of the '?' operator to have different types
491
492 fconserve-space
493 C++ ObjC++
494 Reduce the size of object files
495
496 fconstant-string-class=
497 ObjC ObjC++ Joined
498 -fconst-string-class=<name>     Use class <name> for constant strings
499
500 fdefault-inline
501 C++ ObjC++
502 Inline member functions by default
503
504 fdollars-in-identifiers
505 C ObjC C++ ObjC++
506 Permit '$' as an identifier character
507
508 felide-constructors
509 C++ ObjC++
510
511 fenforce-eh-specs
512 C++ ObjC++
513 Generate code to check exception specifications
514
515 fenum-int-equiv
516 C++ ObjC++
517
518 fexec-charset=
519 C ObjC C++ ObjC++ Joined RejectNegative
520 -fexec-charset=<cset>   Convert all strings and character constants to character set <cset>
521
522 fextended-identifiers
523 C ObjC C++ ObjC++
524 Permit universal character names (\\u and \\U) in identifiers
525
526 finput-charset=
527 C ObjC C++ ObjC++ Joined RejectNegative
528 -finput-charset=<cset>  Specify the default character set for source files
529
530
531 fexternal-templates
532 C++ ObjC++
533
534 ffor-scope
535 C++ ObjC++
536 Scope of for-init-statement variables is local to the loop
537
538 ffreestanding
539 C ObjC
540 Do not assume that standard C libraries and \"main\" exist
541
542 fgnu-keywords
543 C++ ObjC++
544 Recognize GNU-defined keywords
545
546 fgnu-runtime
547 ObjC ObjC++
548 Generate code for GNU runtime environment
549
550 fguiding-decls
551 C++ ObjC++
552
553 fhandle-exceptions
554 C++ ObjC++
555
556 fhonor-std
557 C++ ObjC++
558
559 fhosted
560 C ObjC
561 Assume normal C execution environment
562
563 fhuge-objects
564 C++ ObjC++
565 Enable support for huge objects
566
567 fimplement-inlines
568 C++ ObjC++
569 Export functions even if they can be inlined
570
571 fimplicit-inline-templates
572 C++ ObjC++
573 Emit implicit instantiations of inline templates
574
575 fimplicit-templates
576 C++ ObjC++
577 Emit implicit instantiations of templates
578
579 ffriend-injection
580 C++ Var(flag_friend_injection)
581 Inject friend functions into enclosing namespace
582
583 flabels-ok
584 C++ ObjC++
585
586 flax-vector-conversions
587 C ObjC C++ ObjC++
588 Allow implicit conversions between vectors with differing numbers of subparts and/or differing element types.
589
590 fms-extensions
591 C ObjC C++ ObjC++
592 Don't warn about uses of Microsoft extensions
593
594 fname-mangling-version-
595 C++ ObjC++ Joined
596
597 fnew-abi
598 C++ ObjC++
599
600 fnext-runtime
601 ObjC ObjC++
602 Generate code for NeXT (Apple Mac OS X) runtime environment
603
604 fnil-receivers
605 ObjC ObjC++
606 Assume that receivers of Objective-C messages may be nil
607
608 fnonansi-builtins
609 C++ ObjC++
610
611 fnonnull-objects
612 C++ ObjC++
613
614 ; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
615 ; to initialize any non-POD ivars in Objective-C++ classes.
616 fobjc-call-cxx-cdtors
617 ObjC++ Var(flag_objc_call_cxx_cdtors)
618 Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed
619
620 fobjc-direct-dispatch
621 ObjC ObjC++ Var(flag_objc_direct_dispatch)
622 Allow fast jumps to the message dispatcher
623
624 ; Nonzero means that we will allow new ObjC exception syntax (@throw,
625 ; @try, etc.) in source code.
626 fobjc-exceptions
627 ObjC ObjC++ Var(flag_objc_exceptions)
628 Enable Objective-C exception and synchronization syntax
629
630 fobjc-gc
631 ObjC ObjC++ Var(flag_objc_gc)
632 Enable garbage collection (GC) in Objective-C/Objective-C++ programs
633
634 ; Nonzero means that we generate NeXT setjmp based exceptions.
635 fobjc-sjlj-exceptions
636 ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1)
637 Enable Objective-C setjmp exception handling runtime
638
639 fopenmp
640 C ObjC C++ ObjC++ Var(flag_openmp)
641 Enable OpenMP
642
643 foperator-names
644 C++ ObjC++
645 Recognize C++ kewords like \"compl\" and \"xor\"
646
647 foptional-diags
648 C++ ObjC++
649 Enable optional diagnostics
650
651 fpch-deps
652 C ObjC C++ ObjC++
653
654 fpch-preprocess
655 C ObjC C++ ObjC++
656 Look for and use PCH files even when preprocessing
657
658 fpermissive
659 C++ ObjC++
660 Downgrade conformance errors to warnings
661
662 fpreprocessed
663 C ObjC C++ ObjC++
664 Treat the input file as already preprocessed
665
666 freplace-objc-classes
667 ObjC ObjC++
668 Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime
669
670 frepo
671 C++ ObjC++
672 Enable automatic template instantiation
673
674 frtti
675 C++ ObjC++
676 Generate run time type descriptor information
677
678 fshort-double
679 C ObjC C++ ObjC++
680 Use the same size for double as for float
681
682 fshort-enums
683 C ObjC C++ ObjC++
684 Use the narrowest integer type possible for enumeration types
685
686 fshort-wchar
687 C ObjC C++ ObjC++
688 Force the underlying type for \"wchar_t\" to be \"unsigned short\"
689
690 fsigned-bitfields
691 C ObjC C++ ObjC++
692 When \"signed\" or \"unsigned\" is not given make the bitfield signed
693
694 fsigned-char
695 C ObjC C++ ObjC++
696 Make \"char\" signed by default
697
698 fsquangle
699 C++ ObjC++
700
701 fstats
702 C++ ObjC++
703 Display statistics accumulated during compilation
704
705 fstrict-prototype
706 C++ ObjC++
707
708 ftabstop=
709 C ObjC C++ ObjC++ Joined RejectNegative UInteger
710 -ftabstop=<number>      Distance between tab stops for column reporting
711
712 ftemplate-depth-
713 C++ ObjC++ Joined RejectNegative UInteger
714 -ftemplate-depth-<number>       Specify maximum template instantiation depth
715
716 fthis-is-variable
717 C++ ObjC++
718
719 fthreadsafe-statics
720 C++ ObjC++
721 -fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
722
723 funsigned-bitfields
724 C ObjC C++ ObjC++
725 When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
726
727 funsigned-char
728 C ObjC C++ ObjC++
729 Make \"char\" unsigned by default
730
731 fuse-cxa-atexit
732 C++ ObjC++
733 Use __cxa_atexit to register destructors
734
735 fuse-cxa-get-exception-ptr
736 C++ ObjC++
737 Use __cxa_get_exception_ptr in exception handling
738
739 fvisibility-inlines-hidden
740 C++ ObjC++
741 Marks all inlined methods as having hidden visibility
742
743 fvtable-gc
744 C++ ObjC++
745 Discard unused virtual functions
746
747 fvtable-thunks
748 C++ ObjC++
749 Implement vtables using thunks
750
751 fweak
752 C++ ObjC++
753 Emit common-like symbols as weak symbols
754
755 fwide-exec-charset=
756 C ObjC C++ ObjC++ Joined RejectNegative
757 -fwide-exec-charset=<cset>      Convert all wide strings and character constants to character set <cset>
758
759 fworking-directory
760 C ObjC C++ ObjC++
761 Generate a #line directive pointing at the current working directory
762
763 fxref
764 C++ ObjC++
765 Emit cross referencing information
766
767 fzero-link
768 ObjC ObjC++
769 Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode
770
771 gen-decls
772 ObjC ObjC++
773 Dump declarations to a .decl file
774
775 idirafter
776 C ObjC C++ ObjC++ Joined Separate
777 -idirafter <dir>        Add <dir> to the end of the system include path
778
779 imacros
780 C ObjC C++ ObjC++ Joined Separate
781 -imacros <file> Accept definition of macros in <file>
782
783 imultilib
784 C ObjC C++ ObjC++ Joined Separate
785 -imultilib <dir> Set <dir> to be the multilib include subdirectory
786
787 include
788 C ObjC C++ ObjC++ Joined Separate
789 -include <file> Include the contents of <file> before other files
790
791 iprefix
792 C ObjC C++ ObjC++ Joined Separate
793 -iprefix <path> Specify <path> as a prefix for next two options
794
795 isysroot
796 C ObjC C++ ObjC++ Joined Separate
797 -isysroot <dir> Set <dir> to be the system root directory
798
799 isystem
800 C ObjC C++ ObjC++ Joined Separate
801 -isystem <dir>  Add <dir> to the start of the system include path
802
803 iquote
804 C ObjC C++ ObjC++ Joined Separate
805 -iquote <dir>   Add <dir> to the end of the quote include path
806
807 iwithprefix
808 C ObjC C++ ObjC++ Joined Separate
809 -iwithprefix <dir>      Add <dir> to the end of the system include path
810
811 iwithprefixbefore
812 C ObjC C++ ObjC++ Joined Separate
813 -iwithprefixbefore <dir>        Add <dir> to the end of the main include path
814
815 lang-asm
816 C Undocumented
817
818 lang-fortran
819 C Undocumented
820
821 lang-objc
822 C ObjC C++ ObjC++ Undocumented
823
824 nostdinc
825 C ObjC C++ ObjC++
826 Do not search standard system include directories (those specified with -isystem will still be used)
827
828 nostdinc++
829 C++ ObjC++
830 Do not search standard system include directories for C++
831
832 o
833 C ObjC C++ ObjC++ Joined Separate
834 ; Documented in common.opt
835
836 pedantic
837 C ObjC C++ ObjC++
838 ; Documented in common.opt
839
840 pedantic-errors
841 C ObjC C++ ObjC++
842 ; Documented in common.opt
843
844 print-objc-runtime-info
845 ObjC ObjC++
846 Generate C header of platform-specific features
847
848 print-pch-checksum
849 C ObjC C++ ObjC++
850 Print a checksum of the executable for PCH validity checking, and stop
851
852 remap
853 C ObjC C++ ObjC++
854 Remap file names when including files
855
856 std=c++98
857 C++ ObjC++
858 Conform to the ISO 1998 C++ standard
859
860 std=c++0x
861 C++ ObjC++
862 Conform to the ISO 1998 C++ standard, with extensions that are likely to
863 become a part of the upcoming ISO C++ standard, dubbed C++0x. Note that the
864 extensions enabled by this mode are experimental and may be removed in
865 future releases of GCC.
866
867 std=c89
868 C ObjC
869 Conform to the ISO 1990 C standard
870
871 std=c99
872 C ObjC
873 Conform to the ISO 1999 C standard
874
875 std=c9x
876 C ObjC
877 Deprecated in favor of -std=c99
878
879 std=gnu++98
880 C++ ObjC++
881 Conform to the ISO 1998 C++ standard with GNU extensions
882
883 std=gnu++0x
884 C++ ObjC++
885 Conform to the ISO 1998 C++ standard, with GNU extensions and
886 extensions that are likely to become a part of the upcoming ISO C++
887 standard, dubbed C++0x. Note that the extensions enabled by this mode
888 are experimental and may be removed in future releases of GCC.
889
890 std=gnu89
891 C ObjC
892 Conform to the ISO 1990 C standard with GNU extensions
893
894 std=gnu99
895 C ObjC
896 Conform to the ISO 1999 C standard with GNU extensions
897
898 std=gnu9x
899 C ObjC
900 Deprecated in favor of -std=gnu99
901
902 std=iso9899:1990
903 C ObjC
904 Conform to the ISO 1990 C standard
905
906 std=iso9899:199409
907 C ObjC
908 Conform to the ISO 1990 C standard as amended in 1994
909
910 std=iso9899:1999
911 C ObjC
912 Conform to the ISO 1999 C standard
913
914 std=iso9899:199x
915 C ObjC
916 Deprecated in favor of -std=iso9899:1999
917
918 traditional-cpp
919 C ObjC C++ ObjC++
920 Enable traditional preprocessing
921
922 trigraphs
923 C ObjC C++ ObjC++
924 -trigraphs      Support ISO C trigraphs
925
926 undef
927 C ObjC C++ ObjC++
928 Do not predefine system-specific and GCC-specific macros
929
930 v
931 C ObjC C++ ObjC++
932 Enable verbose output
933
934 w
935 C ObjC C++ ObjC++
936 ; Documented in common.opt
937
938 ; This comment is to ensure we retain the blank line above.