OSDN Git Service

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