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