OSDN Git Service

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