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