OSDN Git Service

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