OSDN Git Service

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