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