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