]> gcc.gnu.org Git - gcc.git/blob - gcc/c-family/c.opt
invoke.texi: Document -Wc99-c11-compat.
[gcc.git] / gcc / c-family / c.opt
1 ; Options for the C, ObjC, C++ and ObjC++ front ends.
2 ; Copyright (C) 2003-2014 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 -all-warnings
37 C ObjC C++ ObjC++ Warning Alias(Wall)
38
39 -ansi
40 C ObjC C++ ObjC++ Alias(ansi)
41
42 -assert
43 C ObjC C++ ObjC++ Separate Alias(A) MissingArgError(assertion missing after %qs)
44
45 -assert=
46 C ObjC C++ ObjC++ Joined Alias(A) MissingArgError(assertion missing after %qs)
47
48 -comments
49 C ObjC C++ ObjC++ Alias(C)
50
51 -comments-in-macros
52 C ObjC C++ ObjC++ Alias(CC)
53
54 -define-macro
55 C ObjC C++ ObjC++ Separate Alias(D) MissingArgError(macro name missing after %qs)
56
57 -define-macro=
58 C ObjC C++ ObjC++ Joined Alias(D) MissingArgError(macro name missing after %qs)
59
60 -dependencies
61 C ObjC C++ ObjC++ Alias(M)
62
63 -dump
64 C ObjC C++ ObjC++ Separate Alias(d)
65
66 -dump=
67 C ObjC C++ ObjC++ Joined Alias(d)
68
69 -imacros
70 C ObjC C++ ObjC++ Separate Alias(imacros) MissingArgError(missing filename after %qs)
71
72 -imacros=
73 C ObjC C++ ObjC++ Joined Alias(imacros) MissingArgError(missing filename after %qs)
74
75 -include
76 C ObjC C++ ObjC++ Separate Alias(include) MissingArgError(missing filename after %qs)
77
78 -include=
79 C ObjC C++ ObjC++ Joined Alias(include) MissingArgError(missing filename after %qs)
80
81 -include-barrier
82 C ObjC C++ ObjC++ Alias(I, -)
83
84 -include-directory
85 C ObjC C++ ObjC++ Separate Alias(I) MissingArgError(missing path after %qs)
86
87 -include-directory=
88 C ObjC C++ ObjC++ Joined Alias(I) MissingArgError(missing path after %qs)
89
90 -include-directory-after
91 C ObjC C++ ObjC++ Separate Alias(idirafter) MissingArgError(missing path after %qs)
92
93 -include-directory-after=
94 C ObjC C++ ObjC++ Joined Alias(idirafter) MissingArgError(missing path after %qs)
95
96 -include-prefix
97 C ObjC C++ ObjC++ Separate Alias(iprefix)
98
99 -include-prefix=
100 C ObjC C++ ObjC++ JoinedOrMissing Alias(iprefix)
101
102 -include-with-prefix
103 C ObjC C++ ObjC++ Separate Alias(iwithprefix)
104
105 -include-with-prefix=
106 C ObjC C++ ObjC++ JoinedOrMissing Alias(iwithprefix)
107
108 -include-with-prefix-after
109 C ObjC C++ ObjC++ Separate Alias(iwithprefix)
110
111 -include-with-prefix-after=
112 C ObjC C++ ObjC++ JoinedOrMissing Alias(iwithprefix)
113
114 -include-with-prefix-before
115 C ObjC C++ ObjC++ Separate Alias(iwithprefixbefore)
116
117 -include-with-prefix-before=
118 C ObjC C++ ObjC++ JoinedOrMissing Alias(iwithprefixbefore)
119
120 -no-integrated-cpp
121 Driver Alias(no-integrated-cpp)
122
123 -no-line-commands
124 C ObjC C++ ObjC++ Alias(P)
125
126 -no-standard-includes
127 C ObjC C++ ObjC++ Alias(nostdinc)
128
129 -no-warnings
130 C ObjC C++ ObjC++ Alias(w)
131
132 -output
133 C ObjC C++ ObjC++ Separate Alias(o)
134
135 -output=
136 C ObjC C++ ObjC++ Joined Alias(o)
137
138 -output-pch=
139 C ObjC C++ ObjC++ Joined Separate
140
141 -pedantic
142 C ObjC C++ ObjC++ Alias(pedantic)
143
144 -preprocess
145 C ObjC C++ ObjC++ Undocumented Alias(E)
146
147 -print-missing-file-dependencies
148 C ObjC C++ ObjC++ Alias(MG)
149
150 -trace-includes
151 C ObjC C++ ObjC++ Alias(H)
152
153 -traditional
154 Driver Alias(traditional)
155
156 -traditional-cpp
157 C ObjC C++ ObjC++ Alias(traditional-cpp)
158
159 -trigraphs
160 C ObjC C++ ObjC++ Alias(trigraphs)
161
162 -undefine-macro
163 C ObjC C++ ObjC++ Separate Alias(U) MissingArgError(macro name missing after %qs)
164
165 -undefine-macro=
166 C ObjC C++ ObjC++ Joined Alias(U) MissingArgError(macro name missing after %qs)
167
168 -user-dependencies
169 C ObjC C++ ObjC++ Alias(MM)
170
171 -verbose
172 Common C ObjC C++ ObjC++ Alias(v)
173
174 -write-dependencies
175 C ObjC C++ ObjC++ NoDriverArg Separate Alias(MD) MissingArgError(missing filename after %qs)
176
177 -write-user-dependencies
178 C ObjC C++ ObjC++ NoDriverArg Separate Alias(MMD) MissingArgError(missing filename after %qs)
179
180 A
181 C ObjC C++ ObjC++ Joined Separate MissingArgError(assertion missing after %qs)
182 -A<question>=<answer> Assert the <answer> to <question>. Putting '-' before <question> disables the <answer> to <question>
183
184 C
185 C ObjC C++ ObjC++
186 Do not discard comments
187
188 CC
189 C ObjC C++ ObjC++
190 Do not discard comments in macro expansions
191
192 D
193 C ObjC C++ ObjC++ Joined Separate MissingArgError(macro name missing after %qs)
194 -D<macro>[=<val>] Define a <macro> with <val> as its value. If just <macro> is given, <val> is taken to be 1
195
196 E
197 C ObjC C++ ObjC++ Undocumented Var(flag_preprocess_only)
198
199 F
200 Driver C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
201 -F <dir> Add <dir> to the end of the main framework include path
202
203 H
204 C ObjC C++ ObjC++
205 Print the name of header files as they are used
206
207 I
208 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
209 -I <dir> Add <dir> to the end of the main include path
210
211 M
212 C ObjC C++ ObjC++
213 Generate make dependencies
214
215 MD
216 C ObjC C++ ObjC++ NoDriverArg Separate MissingArgError(missing filename after %qs)
217 Generate make dependencies and compile
218
219 MF
220 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs)
221 -MF <file> Write dependency output to the given file
222
223 MG
224 C ObjC C++ ObjC++
225 Treat missing header files as generated files
226
227 MM
228 C ObjC C++ ObjC++
229 Like -M but ignore system header files
230
231 MMD
232 C ObjC C++ ObjC++ NoDriverArg Separate MissingArgError(missing filename after %qs)
233 Like -MD but ignore system header files
234
235 MP
236 C ObjC C++ ObjC++
237 Generate phony targets for all headers
238
239 MQ
240 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing makefile target after %qs)
241 -MQ <target> Add a MAKE-quoted target
242
243 MT
244 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing makefile target after %qs)
245 -MT <target> Add an unquoted target
246
247 P
248 C ObjC C++ ObjC++
249 Do not generate #line directives
250
251 U
252 C ObjC C++ ObjC++ Joined Separate MissingArgError(macro name missing after %qs)
253 -U<macro> Undefine <macro>
254
255 Wabi
256 C ObjC C++ ObjC++ LTO Var(warn_abi) Warning
257 Warn about things that will change when compiling with an ABI-compliant compiler
258
259 Wabi=
260 C ObjC C++ ObjC++ LTO Joined RejectNegative UInteger Warning
261 Warn about things that change between the current -fabi-version and the specified version
262
263 Wabi-tag
264 C++ ObjC++ Var(warn_abi_tag) Warning
265 Warn if a subobject has an abi_tag attribute that the complete object type does not have
266
267 Wpsabi
268 C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Undocumented
269
270 Waddress
271 C ObjC C++ ObjC++ Var(warn_address) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
272 Warn about suspicious uses of memory addresses
273
274 Wall
275 C ObjC C++ ObjC++ Warning
276 Enable most warning messages
277
278 Warray-bounds
279 LangEnabledBy(C ObjC C++ ObjC++,Wall)
280 ; in common.opt
281
282 Wassign-intercept
283 ObjC ObjC++ Var(warn_assign_intercept) Warning
284 Warn whenever an Objective-C assignment is being intercepted by the garbage collector
285
286 Wbad-function-cast
287 C ObjC Var(warn_bad_function_cast) Warning
288 Warn about casting functions to incompatible types
289
290 Wbuiltin-macro-redefined
291 C ObjC C++ ObjC++ Warning
292 Warn when a built-in preprocessor macro is undefined or redefined
293
294 Wc90-c99-compat
295 C ObjC Var(warn_c90_c99_compat) Init(-1) Warning
296 Warn about features not present in ISO C90, but present in ISO C99
297
298 Wc99-c11-compat
299 C ObjC Var(warn_c99_c11_compat) Init(-1) Warning
300 Warn about features not present in ISO C99, but present in ISO C11
301
302 Wc++-compat
303 C ObjC Var(warn_cxx_compat) Warning
304 Warn about C constructs that are not in the common subset of C and C++
305
306 Wc++0x-compat
307 C++ ObjC++ Var(warn_cxx0x_compat) Warning LangEnabledBy(C++ ObjC++,Wall)
308 Deprecated in favor of -Wc++11-compat
309
310 Wc++11-compat
311 C++ ObjC++ Warning Alias(Wc++0x-compat)
312 Warn about C++ constructs whose meaning differs between ISO C++ 1998 and ISO C++ 2011
313
314 Wcast-qual
315 C ObjC C++ ObjC++ Var(warn_cast_qual) Warning
316 Warn about casts which discard qualifiers
317
318 Wchar-subscripts
319 C ObjC C++ ObjC++ Var(warn_char_subscripts) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
320 Warn about subscripts whose type is \"char\"
321
322 Wclobbered
323 C ObjC C++ ObjC++ Var(warn_clobbered) Warning EnabledBy(Wextra)
324 Warn about variables that might be changed by \"longjmp\" or \"vfork\"
325
326 Wcomment
327 C ObjC C++ ObjC++ Warning
328 Warn about possibly nested block comments, and C++ comments spanning more than one physical line
329
330 Wcomments
331 C ObjC C++ ObjC++ Warning Alias(Wcomment)
332 Synonym for -Wcomment
333
334 Wconditionally-supported
335 C++ ObjC++ Var(warn_conditionally_supported) Warning
336 Warn for conditionally-supported constructs
337
338 Wconversion
339 C ObjC C++ ObjC++ Var(warn_conversion) Warning
340 Warn for implicit type conversions that may change a value
341
342 Wconversion-null
343 C++ ObjC++ Var(warn_conversion_null) Init(1) Warning
344 Warn for converting NULL from/to a non-pointer type
345
346 Wctor-dtor-privacy
347 C++ ObjC++ Var(warn_ctor_dtor_privacy) Warning
348 Warn when all constructors and destructors are private
349
350 Wdeclaration-after-statement
351 C ObjC Var(warn_declaration_after_statement) Init(-1) Warning
352 Warn when a declaration is found after a statement
353
354 Wdelete-incomplete
355 C++ ObjC++ Var(warn_delete_incomplete) Init(1) Warning
356 Warn when deleting a pointer to incomplete type
357
358 Wdelete-non-virtual-dtor
359 C++ ObjC++ Var(warn_delnonvdtor) Warning LangEnabledBy(C++ ObjC++,Wall)
360 Warn about deleting polymorphic objects with non-virtual destructors
361
362 Wdelete-non-virtual-dtor
363 LangEnabledBy(C++ ObjC++,Weffc++)
364 ;
365
366 Wdeprecated
367 C C++ ObjC ObjC++ Var(warn_deprecated) Init(1) Warning
368 Warn if a deprecated compiler feature, class, method, or field is used
369
370 Wdesignated-init
371 C ObjC Var(warn_designated_init) Init(1) Warning
372 Warn about positional initialization of structs requiring designated initializers
373
374 Wdiscarded-qualifiers
375 C ObjC Var(warn_discarded_qualifiers) Init(1) Warning
376 Warn if type qualifiers on pointers are discarded
377
378 Wdiv-by-zero
379 C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1) Warning
380 Warn about compile-time integer division by zero
381
382 Weffc++
383 C++ ObjC++ Var(warn_ecpp) Warning
384 Warn about violations of Effective C++ style rules
385
386 Wempty-body
387 C ObjC C++ ObjC++ Var(warn_empty_body) Warning EnabledBy(Wextra)
388 Warn about an empty body in an if or else statement
389
390 Wendif-labels
391 C ObjC C++ ObjC++ Warning
392 Warn about stray tokens after #elif and #endif
393
394 Wenum-compare
395 C ObjC C++ ObjC++ Var(warn_enum_compare) Init(-1) Warning LangEnabledBy(C ObjC,Wall)
396 Warn about comparison of different enum types
397
398 Wenum-compare
399 LangEnabledBy(C ObjC,Wc++-compat)
400 ;
401
402 Werror
403 C ObjC C++ ObjC++
404 ; Documented in common.opt
405
406 Werror-implicit-function-declaration
407 C ObjC RejectNegative Warning Alias(Werror=, implicit-function-declaration)
408 This switch is deprecated; use -Werror=implicit-function-declaration instead
409
410 Wfloat-conversion
411 C ObjC C++ ObjC++ Var(warn_float_conversion) LangEnabledBy(C ObjC C++ ObjC++,Wconversion)
412 Warn for implicit type conversions that cause loss of floating point precision
413
414 Wfloat-equal
415 C ObjC C++ ObjC++ Var(warn_float_equal) Warning
416 Warn if testing floating point numbers for equality
417
418 Wformat
419 C ObjC C++ ObjC++ Warning Alias(Wformat=, 1, 0)
420 Warn about printf/scanf/strftime/strfmon format string anomalies
421
422 Wformat-contains-nul
423 C ObjC C++ ObjC++ Var(warn_format_contains_nul) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 1, 0)
424 Warn about format strings that contain NUL bytes
425
426 Wformat-extra-args
427 C ObjC C++ ObjC++ Var(warn_format_extra_args) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 1, 0)
428 Warn if passing too many arguments to a function for its format string
429
430 Wformat-nonliteral
431 C ObjC C++ ObjC++ Var(warn_format_nonliteral) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
432 Warn about format strings that are not literals
433
434 Wformat-security
435 C ObjC C++ ObjC++ Var(warn_format_security) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
436 Warn about possible security problems with format functions
437
438 Wformat-signedness
439 C ObjC C++ ObjC++ Var(warn_format_signedness) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=, warn_format >= 2, 0)
440 Warn about sign differences with format functions
441
442 Wformat-y2k
443 C ObjC C++ ObjC++ Var(warn_format_y2k) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=,warn_format >= 2, 0)
444 Warn about strftime formats yielding 2-digit years
445
446 Wformat-zero-length
447 C ObjC C++ ObjC++ Var(warn_format_zero_length) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=,warn_format >= 1, 0)
448 Warn about zero-length formats
449
450 Wformat=
451 C ObjC C++ ObjC++ Joined RejectNegative UInteger Var(warn_format) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0)
452 Warn about printf/scanf/strftime/strfmon format string anomalies
453
454 Wignored-qualifiers
455 C C++ Var(warn_ignored_qualifiers) Warning EnabledBy(Wextra)
456 Warn whenever type qualifiers are ignored.
457
458 Wincompatible-pointer-types
459 C ObjC Var(warn_incompatible_pointer_types) Init(1) Warning
460 Warn when there is a conversion between pointers that have incompatible types
461
462 Winit-self
463 C ObjC C++ ObjC++ Var(warn_init_self) Warning LangEnabledBy(C++ ObjC++,Wall)
464 Warn about variables which are initialized to themselves
465
466 Wimplicit
467 C ObjC Var(warn_implicit) Warning LangEnabledBy(C ObjC,Wall)
468 Warn about implicit declarations
469
470 Wdouble-promotion
471 C ObjC C++ ObjC++ Var(warn_double_promotion) Warning
472 Warn about implicit conversions from \"float\" to \"double\"
473
474 Wimplicit-function-declaration
475 C ObjC Var(warn_implicit_function_declaration) Init(-1) Warning LangEnabledBy(C ObjC,Wimplicit)
476 Warn about implicit function declarations
477
478 Wimplicit-int
479 C ObjC Var(warn_implicit_int) Warning LangEnabledBy(C ObjC,Wimplicit)
480 Warn when a declaration does not specify a type
481
482 Wimport
483 C ObjC C++ ObjC++ Undocumented Ignore
484
485 Winherited-variadic-ctor
486 C++ ObjC++ Var(warn_inh_var_ctor) Init(1) Warning
487 Warn about C++11 inheriting constructors when the base has a variadic constructor
488
489 Wint-conversion
490 C ObjC Var(warn_int_conversion) Init(1) Warning
491 Warn about incompatible integer to pointer and pointer to integer conversions
492
493 Wint-to-pointer-cast
494 C ObjC C++ ObjC++ Var(warn_int_to_pointer_cast) Init(1) Warning
495 Warn when there is a cast to a pointer from an integer of a different size
496
497 Winvalid-offsetof
498 C++ ObjC++ Var(warn_invalid_offsetof) Init(1) Warning
499 Warn about invalid uses of the \"offsetof\" macro
500
501 Winvalid-pch
502 C ObjC C++ ObjC++ Warning
503 Warn about PCH files that are found but not used
504
505 Wjump-misses-init
506 C ObjC Var(warn_jump_misses_init) Warning LangEnabledby(C ObjC,Wc++-compat)
507 Warn when a jump misses a variable initialization
508
509 Wliteral-suffix
510 C++ ObjC++ Warning
511 Warn when a string or character literal is followed by a ud-suffix which does not begin with an underscore.
512
513 Wlogical-op
514 C ObjC C++ ObjC++ Var(warn_logical_op) Init(0) Warning
515 Warn when a logical operator is suspiciously always evaluating to true or false
516
517 Wlogical-not-parentheses
518 C ObjC C++ ObjC++ Var(warn_logical_not_paren) Warning
519 Warn when logical not is used on the left hand side operand of a comparison
520
521 Wlong-long
522 C ObjC C++ ObjC++ Var(warn_long_long) Init(-1) Warning
523 Do not warn about using \"long long\" when -pedantic
524
525 Wmain
526 C ObjC C++ ObjC++ Var(warn_main) Init(-1) Warning LangEnabledBy(C ObjC,Wall, 2, 0)
527 Warn about suspicious declarations of \"main\"
528
529 Wmain
530 LangEnabledBy(C ObjC C++ ObjC++,Wpedantic, 2, 0)
531 ;
532
533 Wmemset-transposed-args
534 C ObjC C++ ObjC++ Var(warn_memset_transposed_args) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
535 Warn about suspicious calls to memset where the third argument is constant literal zero and the second is not
536
537 Wmissing-braces
538 C ObjC C++ ObjC++ Var(warn_missing_braces) Warning LangEnabledBy(C ObjC,Wall)
539 Warn about possibly missing braces around initializers
540
541 Wmissing-declarations
542 C ObjC C++ ObjC++ Var(warn_missing_declarations) Warning
543 Warn about global functions without previous declarations
544
545 Wmissing-field-initializers
546 C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Warning EnabledBy(Wextra)
547 Warn about missing fields in struct initializers
548
549 Wsizeof-pointer-memaccess
550 C ObjC C++ ObjC++ Var(warn_sizeof_pointer_memaccess) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
551 Warn about suspicious length parameters to certain string functions if the argument uses sizeof
552
553 Wsizeof-array-argument
554 C ObjC C++ ObjC++ Var(warn_sizeof_array_argument) Warning Init(1)
555 Warn when sizeof is applied on a parameter declared as an array
556
557 Wsuggest-attribute=format
558 C ObjC C++ ObjC++ Var(warn_suggest_attribute_format) Warning
559 Warn about functions which might be candidates for format attributes
560
561 Wswitch
562 C ObjC C++ ObjC++ Var(warn_switch) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
563 Warn about enumerated switches, with no default, missing a case
564
565 Wswitch-default
566 C ObjC C++ ObjC++ Var(warn_switch_default) Warning
567 Warn about enumerated switches missing a \"default:\" statement
568
569 Wswitch-enum
570 C ObjC C++ ObjC++ Var(warn_switch_enum) Warning
571 Warn about all enumerated switches missing a specific case
572
573 Wswitch-bool
574 C ObjC C++ ObjC++ Var(warn_switch_bool) Warning Init(1)
575 Warn about switches with boolean controlling expression
576
577 Wmissing-format-attribute
578 C ObjC C++ ObjC++ Alias(Wsuggest-attribute=format)
579 ;
580
581 Wmissing-include-dirs
582 C ObjC C++ ObjC++ Warning
583 Warn about user-specified include directories that do not exist
584
585 Wmissing-parameter-type
586 C ObjC Var(warn_missing_parameter_type) Warning EnabledBy(Wextra)
587 Warn about function parameters declared without a type specifier in K&R-style functions
588
589 Wmissing-prototypes
590 C ObjC Var(warn_missing_prototypes) Warning
591 Warn about global functions without prototypes
592
593 Wmudflap
594 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
595
596 Wmultichar
597 C ObjC C++ ObjC++ Warning
598 Warn about use of multi-character character constants
599
600 Wnarrowing
601 C ObjC C++ ObjC++ Warning Var(warn_narrowing) Init(-1) LangEnabledBy(C++ ObjC++,Wall)
602 Warn about narrowing conversions within { } that are ill-formed in C++11
603
604 Wnarrowing
605 C ObjC C++ ObjC++ LangEnabledBy(C++ ObjC++,Wc++0x-compat)
606 ;
607
608 Wnested-externs
609 C ObjC Var(warn_nested_externs) Warning
610 Warn about \"extern\" declarations not at file scope
611
612 Wnoexcept
613 C++ ObjC++ Var(warn_noexcept) Warning
614 Warn when a noexcept expression evaluates to false even though the expression can't actually throw
615
616 Wnon-template-friend
617 C++ ObjC++ Var(warn_nontemplate_friend) Init(1) Warning
618 Warn when non-templatized friend functions are declared within a template
619
620 Wnon-virtual-dtor
621 C++ ObjC++ Var(warn_nonvdtor) Warning LangEnabledBy(C++ ObjC++,Weffc++)
622 Warn about non-virtual destructors
623
624 Wnonnull
625 C ObjC C++ ObjC++ Var(warn_nonnull) Warning LangEnabledBy(C ObjC C++ ObjC++,Wformat=,warn_format >= 1,0)
626 Warn about NULL being passed to argument slots marked as requiring non-NULL
627
628 Wnonnull
629 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
630 ;
631
632 Wnormalized=
633 C ObjC C++ ObjC++ Joined Warning
634 -Wnormalized=<id|nfc|nfkc> Warn about non-normalised Unicode strings
635
636 Wold-style-cast
637 C++ ObjC++ Var(warn_old_style_cast) Warning
638 Warn if a C-style cast is used in a program
639
640 Wold-style-declaration
641 C ObjC Var(warn_old_style_declaration) Warning EnabledBy(Wextra)
642 Warn for obsolescent usage in a declaration
643
644 Wold-style-definition
645 C ObjC Var(warn_old_style_definition) Warning
646 Warn if an old-style parameter definition is used
647
648 Wopenmp-simd
649 C C++ Var(warn_openmp_simd) Warning LangEnabledBy(C C++,Wall)
650 Warn if a simd directive is overridden by the vectorizer cost model
651
652 Woverlength-strings
653 C ObjC C++ ObjC++ Var(warn_overlength_strings) Warning LangEnabledBy(C ObjC C++ ObjC++,Wpedantic)
654 Warn if a string is longer than the maximum portable length specified by the standard
655
656 Woverloaded-virtual
657 C++ ObjC++ Var(warn_overloaded_virtual) Warning
658 Warn about overloaded virtual function names
659
660 Woverride-init
661 C ObjC Var(warn_override_init) Warning EnabledBy(Wextra)
662 Warn about overriding initializers without side effects
663
664 Wpacked-bitfield-compat
665 C ObjC C++ ObjC++ Var(warn_packed_bitfield_compat) Init(-1) Warning
666 Warn about packed bit-fields whose offset changed in GCC 4.4
667
668 Wparentheses
669 C ObjC C++ ObjC++ Var(warn_parentheses) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
670 Warn about possibly missing parentheses
671
672 Wpedantic
673 C ObjC C++ ObjC++ Warning
674 ; Documented in common.opt
675
676 Wpmf-conversions
677 C++ ObjC++ Var(warn_pmf2ptr) Init(1) Warning
678 Warn when converting the type of pointers to member functions
679
680 Wpointer-arith
681 C ObjC C++ ObjC++ Var(warn_pointer_arith) Warning LangEnabledBy(C ObjC C++ ObjC++,Wpedantic)
682 Warn about function pointer arithmetic
683
684 Wpointer-sign
685 C ObjC Var(warn_pointer_sign) Warning LangEnabledBy(C ObjC,Wall)
686 Warn when a pointer differs in signedness in an assignment
687
688 Wpointer-sign
689 C ObjC LangEnabledBy(C ObjC,Wpedantic)
690 ;
691
692 Wpointer-to-int-cast
693 C ObjC Var(warn_pointer_to_int_cast) Init(1) Warning
694 Warn when a pointer is cast to an integer of a different size
695
696 Wpragmas
697 C ObjC C++ ObjC++ Var(warn_pragmas) Init(1) Warning
698 Warn about misuses of pragmas
699
700 Wdate-time
701 Common Var(cpp_warn_date_time) Warning
702 Warn about __TIME__, __DATE__ and __TIMESTAMP__ usage
703
704 Wproperty-assign-default
705 ObjC ObjC++ Var(warn_property_assign_default) Init(1) Warning
706 Warn if a property for an Objective-C object has no assign semantics specified
707
708 Wprotocol
709 ObjC ObjC++ Var(warn_protocol) Init(1) Warning
710 Warn if inherited methods are unimplemented
711
712 Wredundant-decls
713 C ObjC C++ ObjC++ Var(warn_redundant_decls) Warning
714 Warn about multiple declarations of the same object
715
716 Wreorder
717 C++ ObjC++ Var(warn_reorder) Warning LangEnabledBy(C++ ObjC++,Wall)
718 Warn when the compiler reorders code
719
720 Wreturn-type
721 C ObjC C++ ObjC++ Var(warn_return_type) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
722 Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++)
723
724 Wselector
725 ObjC ObjC++ Var(warn_selector) Warning
726 Warn if a selector has multiple methods
727
728 Wshadow-ivar
729 ObjC ObjC++ Var(warn_shadow_ivar) EnabledBy(Wshadow) Init(1) Warning
730 Warn if a local declaration hides an instance variable
731
732 Wsequence-point
733 C ObjC C++ ObjC++ Var(warn_sequence_point) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
734 Warn about possible violations of sequence point rules
735
736 Wsign-compare
737 C ObjC C++ ObjC++ Var(warn_sign_compare) Warning LangEnabledBy(C++ ObjC++,Wall)
738 Warn about signed-unsigned comparisons
739
740 Wsign-compare
741 C ObjC C++ ObjC++ EnabledBy(Wextra)
742 ;
743
744 Wsign-conversion
745 C ObjC C++ ObjC++ Var(warn_sign_conversion) LangEnabledBy(C ObjC,Wconversion)
746 Warn for implicit type conversions between signed and unsigned integers
747
748 Wsign-promo
749 C++ ObjC++ Var(warn_sign_promo) Warning
750 Warn when overload promotes from unsigned to signed
751
752 Wstrict-null-sentinel
753 C++ ObjC++ Warning Var(warn_strict_null_sentinel)
754 Warn about uncasted NULL used as sentinel
755
756 Wstrict-prototypes
757 C ObjC Var(warn_strict_prototypes) Warning
758 Warn about unprototyped function declarations
759
760 Wstrict-aliasing=
761 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall, 3, 0)
762 ;
763
764 Wstrict-overflow=
765 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0)
766 ;
767
768 Wstrict-selector-match
769 ObjC ObjC++ Var(warn_strict_selector_match) Warning
770 Warn if type signatures of candidate methods do not match exactly
771
772 Wsync-nand
773 C C++ Var(warn_sync_nand) Init(1) Warning
774 Warn when __sync_fetch_and_nand and __sync_nand_and_fetch built-in functions are used
775
776 Wsynth
777 C++ ObjC++ Var(warn_synth) Warning
778 Deprecated. This switch has no effect
779
780 Wsystem-headers
781 C ObjC C++ ObjC++ Warning
782 ; Documented in common.opt
783
784 Wtraditional
785 C ObjC Var(warn_traditional) Warning
786 Warn about features not present in traditional C
787
788 Wtraditional-conversion
789 C ObjC Var(warn_traditional_conversion) Warning
790 Warn of prototypes causing type conversions different from what would happen in the absence of prototype
791
792 Wtrigraphs
793 C ObjC C++ ObjC++ Warning
794 Warn if trigraphs are encountered that might affect the meaning of the program
795
796 Wundeclared-selector
797 ObjC ObjC++ Var(warn_undeclared_selector) Warning
798 Warn about @selector()s without previously declared methods
799
800 Wundef
801 C ObjC C++ ObjC++ Warning
802 Warn if an undefined macro is used in an #if directive
803
804 Wuninitialized
805 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
806 ;
807
808 Wmaybe-uninitialized
809 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
810 ;
811
812 Wunknown-pragmas
813 C ObjC C++ ObjC++ Warning Var(warn_unknown_pragmas) LangEnabledBy(C ObjC C++ ObjC++,Wall, 1, 0)
814 Warn about unrecognized pragmas
815
816 Wunsuffixed-float-constants
817 C ObjC Var(warn_unsuffixed_float_constants) Warning
818 Warn about unsuffixed float constants
819
820 Wunused
821 C ObjC C++ ObjC++ LangEnabledBy(C ObjC C++ ObjC++,Wall)
822 ; documented in common.opt
823
824 Wunused-local-typedefs
825 C ObjC C++ ObjC++ Var(warn_unused_local_typedefs) Warning EnabledBy(Wunused)
826 Warn when typedefs locally defined in a function are not used
827
828 Wunused-macros
829 C ObjC C++ ObjC++ Var(cpp_warn_unused_macros) Warning
830 Warn about macros defined in the main file that are not used
831
832 Wunused-result
833 C ObjC C++ ObjC++ Var(warn_unused_result) Init(1) Warning
834 Warn if a caller of a function, marked with attribute warn_unused_result, does not use its return value
835
836 Wvariadic-macros
837 C ObjC C++ ObjC++ Var(cpp_warn_variadic_macros) Init(1) Warning
838 Warn about using variadic macros
839
840 Wvarargs
841 C ObjC C++ ObjC++ Warning Var(warn_varargs) Init(1)
842 Warn about questionable usage of the macros used to retrieve variable arguments
843
844 Wvla
845 C ObjC C++ ObjC++ Var(warn_vla) Init(-1) Warning
846 Warn if a variable length array is used
847
848 Wvolatile-register-var
849 C ObjC C++ ObjC++ Var(warn_volatile_register_var) Warning LangEnabledBy(C ObjC C++ ObjC++,Wall)
850 Warn when a register variable is declared volatile
851
852 Wvirtual-move-assign
853 C++ ObjC++ Var(warn_virtual_move_assign) Warning Init(1)
854 Warn if a virtual base has a non-trivial move assignment operator
855
856 Wwrite-strings
857 C ObjC C++ ObjC++ Var(warn_write_strings) Warning
858 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.
859
860 Wzero-as-null-pointer-constant
861 C++ ObjC++ Var(warn_zero_as_null_pointer_constant) Warning
862 Warn when a literal '0' is used as null pointer
863
864 Wuseless-cast
865 C++ ObjC++ Var(warn_useless_cast) Warning
866 Warn about useless casts
867
868 ansi
869 C ObjC C++ ObjC++
870 A synonym for -std=c89 (for C) or -std=c++98 (for C++)
871
872 d
873 C ObjC C++ ObjC++ Joined
874 ; Documented in common.opt. FIXME - what about -dI, -dD, -dN and -dD?
875
876 fabi-compat-version=
877 C++ ObjC++ Joined RejectNegative UInteger Var(flag_abi_compat_version) Init(-1)
878 The version of the C++ ABI used for -Wabi warnings and link compatibility aliases
879
880 faccess-control
881 C++ ObjC++ Var(flag_access_control) Init(1)
882 Enforce class member access control semantics
883
884 fada-spec-parent=
885 C ObjC C++ ObjC++ RejectNegative Joined Var(ada_specs_parent)
886 -fada-spec-parent=unit Dump Ada specs as child units of given parent
887
888 fall-virtual
889 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
890
891 fallow-parameterless-variadic-functions
892 C ObjC Var(flag_allow_parameterless_variadic_functions)
893 Allow variadic functions without named parameter
894
895 falt-external-templates
896 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
897 No longer supported
898
899 fasm
900 C ObjC C++ ObjC++ Var(flag_no_asm, 0)
901 Recognize the \"asm\" keyword
902
903 ; Define extra predefined macros for use in libgcc.
904 fbuilding-libgcc
905 C ObjC C++ ObjC++ Undocumented Var(flag_building_libgcc)
906
907 fbuiltin
908 C ObjC C++ ObjC++ Var(flag_no_builtin, 0)
909 Recognize built-in functions
910
911 fbuiltin-
912 C ObjC C++ ObjC++ Joined
913
914 fcanonical-system-headers
915 C ObjC C++ ObjC++
916 Where shorter, use canonicalized paths to systems headers.
917
918 fcilkplus
919 C ObjC C++ ObjC++ LTO Report Var(flag_cilkplus) Init(0)
920 Enable Cilk Plus
921
922 fcond-mismatch
923 C ObjC C++ ObjC++
924 Allow the arguments of the '?' operator to have different types
925
926 fconserve-space
927 C++ ObjC++ Var(flag_conserve_space)
928 Does nothing. Preserved for backward compatibility.
929
930 fconstant-string-class=
931 ObjC ObjC++ Joined MissingArgError(no class name specified with %qs)
932 -fconst-string-class=<name> Use class <name> for constant strings
933
934 fconstexpr-depth=
935 C++ ObjC++ Joined RejectNegative UInteger Var(max_constexpr_depth) Init(512)
936 -fconstexpr-depth=<number> Specify maximum constexpr recursion depth
937
938 fdebug-cpp
939 C ObjC C++ ObjC++
940 Emit debug annotations during preprocessing
941
942 fdeduce-init-list
943 C++ ObjC++ Var(flag_deduce_init_list) Init(0)
944 -fdeduce-init-list enable deduction of std::initializer_list for a template type parameter from a brace-enclosed initializer-list
945
946 fdeclone-ctor-dtor
947 C++ ObjC++ Var(flag_declone_ctor_dtor) Init(-1)
948 Factor complex constructors and destructors to favor space over speed
949
950 fdefault-inline
951 C++ ObjC++ Ignore
952 Does nothing. Preserved for backward compatibility.
953
954 fdirectives-only
955 C ObjC C++ ObjC++
956 Preprocess directives only.
957
958 fdollars-in-identifiers
959 C ObjC C++ ObjC++
960 Permit '$' as an identifier character
961
962 fdump-ada-spec
963 C ObjC C++ ObjC++ RejectNegative Var(flag_dump_ada_spec)
964 Write all declarations as Ada code transitively
965
966 fdump-ada-spec-slim
967 C ObjC C++ ObjC++ RejectNegative Var(flag_dump_ada_spec_slim)
968 Write all declarations as Ada code for the given file only
969
970 felide-constructors
971 C++ ObjC++ Var(flag_elide_constructors) Init(1)
972
973 fenforce-eh-specs
974 C++ ObjC++ Var(flag_enforce_eh_specs) Init(1)
975 Generate code to check exception specifications
976
977 fenum-int-equiv
978 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
979
980 fexec-charset=
981 C ObjC C++ ObjC++ Joined RejectNegative
982 -fexec-charset=<cset> Convert all strings and character constants to character set <cset>
983
984 fextended-identifiers
985 C ObjC C++ ObjC++
986 Permit universal character names (\\u and \\U) in identifiers
987
988 finput-charset=
989 C ObjC C++ ObjC++ Joined RejectNegative
990 -finput-charset=<cset> Specify the default character set for source files
991
992 fextern-tls-init
993 C++ ObjC++ Var(flag_extern_tls_init) Init(-1)
994 Support dynamic initialization of thread-local variables in a different translation unit
995
996 fexternal-templates
997 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
998
999 ffor-scope
1000 C++ ObjC++ Var(flag_new_for_scope) Init(1)
1001 Scope of for-init-statement variables is local to the loop
1002
1003 ffreestanding
1004 C ObjC C++ ObjC++
1005 Do not assume that standard C libraries and \"main\" exist
1006
1007 fgnu-keywords
1008 C++ ObjC++ Var(flag_no_gnu_keywords, 0)
1009 Recognize GNU-defined keywords
1010
1011 fgnu-runtime
1012 ObjC ObjC++ LTO Report RejectNegative Var(flag_next_runtime,0) Init(NEXT_OBJC_RUNTIME)
1013 Generate code for GNU runtime environment
1014
1015 fgnu89-inline
1016 C ObjC Var(flag_gnu89_inline) Init(-1)
1017 Use traditional GNU semantics for inline functions
1018
1019 fguiding-decls
1020 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1021
1022 fhandle-exceptions
1023 C++ ObjC++ Optimization Alias(fexceptions) Warn({-fhandle-exceptions has been renamed -fexceptions (and is now on by default)})
1024
1025 fhonor-std
1026 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1027
1028 fhosted
1029 C ObjC
1030 Assume normal C execution environment
1031
1032 fhuge-objects
1033 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1034 No longer supported
1035
1036 fimplement-inlines
1037 C++ ObjC++ Var(flag_implement_inlines) Init(1)
1038 Export functions even if they can be inlined
1039
1040 fimplicit-inline-templates
1041 C++ ObjC++ Var(flag_implicit_inline_templates) Init(1)
1042 Emit implicit instantiations of inline templates
1043
1044 fimplicit-templates
1045 C++ ObjC++ Var(flag_implicit_templates) Init(1)
1046 Emit implicit instantiations of templates
1047
1048 ffriend-injection
1049 C++ ObjC++ Var(flag_friend_injection)
1050 Inject friend functions into enclosing namespace
1051
1052 fkeep-inline-dllexport
1053 C C++ ObjC ObjC++ Var(flag_keep_inline_dllexport) Init(1) Report Condition(TARGET_DLLIMPORT_DECL_ATTRIBUTES)
1054 Don't emit dllexported inline functions unless needed
1055
1056 flabels-ok
1057 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1058
1059 flax-vector-conversions
1060 C ObjC C++ ObjC++ Var(flag_lax_vector_conversions)
1061 Allow implicit conversions between vectors with differing numbers of subparts and/or differing element types.
1062
1063 fms-extensions
1064 C ObjC C++ ObjC++ Var(flag_ms_extensions)
1065 Don't warn about uses of Microsoft extensions
1066
1067 fmudflap
1068 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1069
1070 fmudflapth
1071 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1072
1073 fmudflapir
1074 C ObjC C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1075
1076 fname-mangling-version-
1077 C++ ObjC++ Joined Ignore Warn(switch %qs is no longer supported)
1078
1079 fnew-abi
1080 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1081
1082 fnext-runtime
1083 ObjC ObjC++ LTO Report RejectNegative Var(flag_next_runtime)
1084 Generate code for NeXT (Apple Mac OS X) runtime environment
1085
1086 fnil-receivers
1087 ObjC ObjC++ Var(flag_nil_receivers) Init(1)
1088 Assume that receivers of Objective-C messages may be nil
1089
1090 flocal-ivars
1091 ObjC ObjC++ Var(flag_local_ivars) Init(1)
1092 Allow access to instance variables as if they were local declarations within instance method implementations.
1093
1094 fivar-visibility=
1095 ObjC ObjC++ Joined RejectNegative Enum(ivar_visibility) Var(default_ivar_visibility) Init(IVAR_VISIBILITY_PROTECTED)
1096 -fvisibility=[private|protected|public|package] Set the default symbol visibility
1097
1098 Enum
1099 Name(ivar_visibility) Type(enum ivar_visibility) UnknownError(unrecognized ivar visibility value %qs)
1100
1101 EnumValue
1102 Enum(ivar_visibility) String(private) Value(IVAR_VISIBILITY_PRIVATE)
1103
1104 EnumValue
1105 Enum(ivar_visibility) String(protected) Value(IVAR_VISIBILITY_PROTECTED)
1106
1107 EnumValue
1108 Enum(ivar_visibility) String(public) Value(IVAR_VISIBILITY_PUBLIC)
1109
1110 EnumValue
1111 Enum(ivar_visibility) String(package) Value(IVAR_VISIBILITY_PACKAGE)
1112
1113 fnonansi-builtins
1114 C++ ObjC++ Var(flag_no_nonansi_builtin, 0)
1115
1116 fnonnull-objects
1117 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1118
1119 fnothrow-opt
1120 C++ ObjC++ Optimization Var(flag_nothrow_opt)
1121 Treat a throw() exception specification as noexcept to improve code size
1122
1123 fobjc-abi-version=
1124 ObjC ObjC++ LTO Joined Report RejectNegative UInteger Var(flag_objc_abi)
1125 Specify which ABI to use for Objective-C family code and meta-data generation.
1126
1127 ; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
1128 ; to initialize any non-POD ivars in Objective-C++ classes.
1129 fobjc-call-cxx-cdtors
1130 ObjC++ Var(flag_objc_call_cxx_cdtors)
1131 Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed
1132
1133 fobjc-direct-dispatch
1134 ObjC ObjC++ Var(flag_objc_direct_dispatch)
1135 Allow fast jumps to the message dispatcher
1136
1137 ; Nonzero means that we will allow new ObjC exception syntax (@throw,
1138 ; @try, etc.) in source code.
1139 fobjc-exceptions
1140 ObjC ObjC++ Var(flag_objc_exceptions)
1141 Enable Objective-C exception and synchronization syntax
1142
1143 fobjc-gc
1144 ObjC ObjC++ LTO Var(flag_objc_gc)
1145 Enable garbage collection (GC) in Objective-C/Objective-C++ programs
1146
1147 fobjc-nilcheck
1148 ObjC ObjC++ Var(flag_objc_nilcheck,1)
1149 Enable inline checks for nil receivers with the NeXT runtime and ABI version 2.
1150
1151 ; Nonzero means that we generate NeXT setjmp based exceptions.
1152 fobjc-sjlj-exceptions
1153 ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1)
1154 Enable Objective-C setjmp exception handling runtime
1155
1156 fobjc-std=objc1
1157 ObjC ObjC++ Var(flag_objc1_only)
1158 Conform to the Objective-C 1.0 language as implemented in GCC 4.0
1159
1160 fopenmp
1161 C ObjC C++ ObjC++ Var(flag_openmp)
1162 Enable OpenMP (implies -frecursive in Fortran)
1163
1164 fopenmp-simd
1165 C ObjC C++ ObjC++ Var(flag_openmp_simd)
1166 Enable OpenMP's SIMD directives
1167
1168 foperator-names
1169 C++ ObjC++
1170 Recognize C++ keywords like \"compl\" and \"xor\"
1171
1172 foptional-diags
1173 C++ ObjC++ Ignore
1174 Does nothing. Preserved for backward compatibility.
1175
1176 fpch-deps
1177 C ObjC C++ ObjC++
1178
1179 fpch-preprocess
1180 C ObjC C++ ObjC++
1181 Look for and use PCH files even when preprocessing
1182
1183 fpermissive
1184 C++ ObjC++ Var(flag_permissive)
1185 Downgrade conformance errors to warnings
1186
1187 fplan9-extensions
1188 C ObjC Var(flag_plan9_extensions)
1189 Enable Plan 9 language extensions
1190
1191 fpreprocessed
1192 C ObjC C++ ObjC++
1193 Treat the input file as already preprocessed
1194
1195 ftrack-macro-expansion
1196 C ObjC C++ ObjC++ JoinedOrMissing RejectNegative UInteger
1197 ; converted into ftrack-macro-expansion=
1198
1199 ftrack-macro-expansion=
1200 C ObjC C++ ObjC++ JoinedOrMissing RejectNegative UInteger
1201 -ftrack-macro-expansion=<0|1|2> Track locations of tokens coming from macro expansion and display them in error messages
1202
1203 fpretty-templates
1204 C++ ObjC++ Var(flag_pretty_templates) Init(1)
1205 -fno-pretty-templates Do not pretty-print template specializations as the template signature followed by the arguments
1206
1207 freplace-objc-classes
1208 ObjC ObjC++ LTO Var(flag_replace_objc_classes)
1209 Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime
1210
1211 frepo
1212 C++ ObjC++
1213 Enable automatic template instantiation
1214
1215 frtti
1216 C++ ObjC++ Optimization Var(flag_rtti) Init(1)
1217 Generate run time type descriptor information
1218
1219 fshort-double
1220 C ObjC C++ ObjC++ LTO Optimization Var(flag_short_double)
1221 Use the same size for double as for float
1222
1223 fshort-enums
1224 C ObjC C++ ObjC++ LTO Optimization Var(flag_short_enums)
1225 Use the narrowest integer type possible for enumeration types
1226
1227 fshort-wchar
1228 C ObjC C++ ObjC++ LTO Optimization Var(flag_short_wchar)
1229 Force the underlying type for \"wchar_t\" to be \"unsigned short\"
1230
1231 fsigned-bitfields
1232 C ObjC C++ ObjC++ Var(flag_signed_bitfields) Init(1)
1233 When \"signed\" or \"unsigned\" is not given make the bitfield signed
1234
1235 fsigned-char
1236 C ObjC C++ ObjC++ LTO Var(flag_signed_char)
1237 Make \"char\" signed by default
1238
1239 fsquangle
1240 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1241
1242 fstats
1243 C++ ObjC++ Var(flag_detailed_statistics)
1244 Display statistics accumulated during compilation
1245
1246 fstrict-enums
1247 C++ ObjC++ Optimization Var(flag_strict_enums)
1248 Assume that values of enumeration type are always within the minimum range of that type
1249
1250 fstrict-prototype
1251 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1252
1253 ftabstop=
1254 C ObjC C++ ObjC++ Joined RejectNegative UInteger
1255 -ftabstop=<number> Distance between tab stops for column reporting
1256
1257 ftemplate-backtrace-limit=
1258 C++ ObjC++ Joined RejectNegative UInteger Var(template_backtrace_limit) Init(10)
1259 Set the maximum number of template instantiation notes for a single warning or error
1260
1261 ftemplate-depth-
1262 C++ ObjC++ Joined RejectNegative Undocumented Alias(ftemplate-depth=)
1263
1264 ftemplate-depth=
1265 C++ ObjC++ Joined RejectNegative UInteger
1266 -ftemplate-depth=<number> Specify maximum template instantiation depth
1267
1268 fthis-is-variable
1269 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1270
1271 fthreadsafe-statics
1272 C++ ObjC++ Optimization Var(flag_threadsafe_statics) Init(1)
1273 -fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
1274
1275 funsigned-bitfields
1276 C ObjC C++ ObjC++ Var(flag_signed_bitfields, 0)
1277 When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
1278
1279 funsigned-char
1280 C ObjC C++ ObjC++ LTO Var(flag_signed_char, 0)
1281 Make \"char\" unsigned by default
1282
1283 fuse-cxa-atexit
1284 C++ ObjC++ Var(flag_use_cxa_atexit) Init(DEFAULT_USE_CXA_ATEXIT)
1285 Use __cxa_atexit to register destructors
1286
1287 fuse-cxa-get-exception-ptr
1288 C++ ObjC++ Var(flag_use_cxa_get_exception_ptr) Init(2)
1289 Use __cxa_get_exception_ptr in exception handling
1290
1291 fvisibility-inlines-hidden
1292 C++ ObjC++
1293 Marks all inlined functions and methods as having hidden visibility
1294
1295 fvisibility-ms-compat
1296 C++ ObjC++ Var(flag_visibility_ms_compat)
1297 Changes visibility to match Microsoft Visual Studio by default
1298
1299 fvtable-gc
1300 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1301 No longer supported
1302
1303 fvtable-thunks
1304 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1305 No longer supported
1306
1307 fweak
1308 C++ ObjC++ Var(flag_weak) Init(1)
1309 Emit common-like symbols as weak symbols
1310
1311 fwide-exec-charset=
1312 C ObjC C++ ObjC++ Joined RejectNegative
1313 -fwide-exec-charset=<cset> Convert all wide strings and character constants to character set <cset>
1314
1315 fworking-directory
1316 C ObjC C++ ObjC++ Var(flag_working_directory) Init(-1)
1317 Generate a #line directive pointing at the current working directory
1318
1319 fxref
1320 C++ ObjC++ Ignore Warn(switch %qs is no longer supported)
1321 No longer supported
1322
1323 fzero-link
1324 ObjC ObjC++ Var(flag_zero_link)
1325 Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode
1326
1327 gen-decls
1328 ObjC ObjC++ Var(flag_gen_declaration)
1329 Dump declarations to a .decl file
1330
1331 femit-struct-debug-baseonly
1332 C ObjC C++ ObjC++
1333 -femit-struct-debug-baseonly Aggressive reduced debug info for structs
1334
1335 femit-struct-debug-reduced
1336 C ObjC C++ ObjC++
1337 -femit-struct-debug-reduced Conservative reduced debug info for structs
1338
1339 femit-struct-debug-detailed=
1340 C ObjC C++ ObjC++ Joined
1341 -femit-struct-debug-detailed=<spec-list> Detailed reduced debug info for structs
1342
1343 fext-numeric-literals
1344 C++ ObjC++
1345 Interpret imaginary, fixed-point, or other gnu number suffix as the corresponding
1346 number literal rather than a user-defined number literal.
1347
1348 idirafter
1349 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1350 -idirafter <dir> Add <dir> to the end of the system include path
1351
1352 imacros
1353 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs)
1354 -imacros <file> Accept definition of macros in <file>
1355
1356 imultilib
1357 C ObjC C++ ObjC++ Joined Separate
1358 -imultilib <dir> Set <dir> to be the multilib include subdirectory
1359
1360 include
1361 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs)
1362 -include <file> Include the contents of <file> before other files
1363
1364 iprefix
1365 C ObjC C++ ObjC++ Joined Separate
1366 -iprefix <path> Specify <path> as a prefix for next two options
1367
1368 isysroot
1369 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1370 -isysroot <dir> Set <dir> to be the system root directory
1371
1372 isystem
1373 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1374 -isystem <dir> Add <dir> to the start of the system include path
1375
1376 iquote
1377 C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs)
1378 -iquote <dir> Add <dir> to the end of the quote include path
1379
1380 iwithprefix
1381 C ObjC C++ ObjC++ Joined Separate
1382 -iwithprefix <dir> Add <dir> to the end of the system include path
1383
1384 iwithprefixbefore
1385 C ObjC C++ ObjC++ Joined Separate
1386 -iwithprefixbefore <dir> Add <dir> to the end of the main include path
1387
1388 lang-asm
1389 C Undocumented RejectDriver
1390
1391 no-integrated-cpp
1392 Driver
1393
1394 nostdinc
1395 C ObjC C++ ObjC++
1396 Do not search standard system include directories (those specified with -isystem will still be used)
1397
1398 nostdinc++
1399 C++ ObjC++
1400 Do not search standard system include directories for C++
1401
1402 o
1403 C ObjC C++ ObjC++ Joined Separate
1404 ; Documented in common.opt
1405
1406 pedantic
1407 C ObjC C++ ObjC++ Alias(Wpedantic)
1408 ; Documented in common.opt
1409
1410 print-objc-runtime-info
1411 ObjC ObjC++
1412 Generate C header of platform-specific features
1413
1414 remap
1415 C ObjC C++ ObjC++
1416 Remap file names when including files
1417
1418 std=c++98
1419 C++ ObjC++
1420 Conform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum
1421
1422 std=c++03
1423 C++ ObjC++ Alias(std=c++98)
1424 Conform to the ISO 1998 C++ standard revised by the 2003 technical corrigendum
1425
1426 std=c++11
1427 C++ ObjC++
1428 Conform to the ISO 2011 C++ standard
1429
1430 std=c++0x
1431 C++ ObjC++ Alias(std=c++11) Undocumented
1432 Deprecated in favor of -std=c++11
1433
1434 std=c++1y
1435 C++ ObjC++
1436 Conform to the ISO 2014(?) C++ draft standard (experimental and incomplete support)
1437
1438 std=c++14
1439 C++ ObjC++ Alias(std=c++1y) Undocumented
1440
1441 std=c++1z
1442 C++ ObjC++
1443 Conform to the ISO 2017(?) C++ draft standard (experimental and incomplete support)
1444
1445 std=c++17
1446 C++ ObjC++ Alias(std=c++1z) Undocumented
1447
1448 std=c11
1449 C ObjC
1450 Conform to the ISO 2011 C standard (experimental and incomplete support)
1451
1452 std=c1x
1453 C ObjC Alias(std=c11)
1454 Deprecated in favor of -std=c11
1455
1456 std=c89
1457 C ObjC Alias(std=c90)
1458 Conform to the ISO 1990 C standard
1459
1460 std=c90
1461 C ObjC
1462 Conform to the ISO 1990 C standard
1463
1464 std=c99
1465 C ObjC
1466 Conform to the ISO 1999 C standard
1467
1468 std=c9x
1469 C ObjC Alias(std=c99)
1470 Deprecated in favor of -std=c99
1471
1472 std=gnu++98
1473 C++ ObjC++
1474 Conform to the ISO 1998 C++ standard revised by the 2003 technical
1475 corrigendum with GNU extensions
1476
1477 std=gnu++03
1478 C++ ObjC++ Alias(std=gnu++98)
1479 Conform to the ISO 1998 C++ standard revised by the 2003 technical
1480 corrigendum with GNU extensions
1481
1482 std=gnu++11
1483 C++ ObjC++
1484 Conform to the ISO 2011 C++ standard with GNU extensions (experimental and incomplete support)
1485
1486 std=gnu++0x
1487 C++ ObjC++ Alias(std=gnu++11)
1488 Deprecated in favor of -std=gnu++11
1489
1490 std=gnu++1y
1491 C++ ObjC++
1492 Conform to the ISO 201y(4?) C++ draft standard with GNU extensions (experimental and incomplete support)
1493
1494 std=gnu++14
1495 C++ ObjC++ Alias(std=gnu++1y) Undocumented
1496
1497 std=gnu++1z
1498 C++ ObjC++
1499 Conform to the ISO 201z(7?) C++ draft standard with GNU extensions (experimental and incomplete support)
1500
1501 std=gnu++17
1502 C++ ObjC++ Alias(std=gnu++1y) Undocumented
1503
1504 std=gnu11
1505 C ObjC
1506 Conform to the ISO 2011 C standard with GNU extensions (experimental and incomplete support)
1507
1508 std=gnu1x
1509 C ObjC Alias(std=gnu11)
1510 Deprecated in favor of -std=gnu11
1511
1512 std=gnu89
1513 C ObjC Alias(std=gnu90)
1514 Conform to the ISO 1990 C standard with GNU extensions
1515
1516 std=gnu90
1517 C ObjC
1518 Conform to the ISO 1990 C standard with GNU extensions
1519
1520 std=gnu99
1521 C ObjC
1522 Conform to the ISO 1999 C standard with GNU extensions
1523
1524 std=gnu9x
1525 C ObjC Alias(std=gnu99)
1526 Deprecated in favor of -std=gnu99
1527
1528 std=iso9899:1990
1529 C ObjC Alias(std=c90)
1530 Conform to the ISO 1990 C standard
1531
1532 std=iso9899:199409
1533 C ObjC
1534 Conform to the ISO 1990 C standard as amended in 1994
1535
1536 std=iso9899:1999
1537 C ObjC Alias(std=c99)
1538 Conform to the ISO 1999 C standard
1539
1540 std=iso9899:199x
1541 C ObjC Alias(std=c99)
1542 Deprecated in favor of -std=iso9899:1999
1543
1544 std=iso9899:2011
1545 C ObjC Alias(std=c11)
1546 Conform to the ISO 2011 C standard (experimental and incomplete support)
1547
1548 traditional
1549 Driver
1550
1551 traditional-cpp
1552 C ObjC C++ ObjC++
1553 Enable traditional preprocessing
1554
1555 trigraphs
1556 C ObjC C++ ObjC++
1557 -trigraphs Support ISO C trigraphs
1558
1559 undef
1560 C ObjC C++ ObjC++ Var(flag_undef)
1561 Do not predefine system-specific and GCC-specific macros
1562
1563 v
1564 C ObjC C++ ObjC++
1565 ; Documented in common.opt
1566
1567 w
1568 C ObjC C++ ObjC++
1569 ; Documented in common.opt
1570
1571 ; This comment is to ensure we retain the blank line above.
This page took 0.112062 seconds and 6 git commands to generate.