OSDN Git Service

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