]>
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 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 | |
1104b28b | 169 | C ObjC C++ 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 | ||
89a42ac8 ZW |
314 | Woverlength-strings |
315 | C ObjC C++ ObjC++ Var(warn_overlength_strings) Init(-1) | |
316 | Warn if a string is longer than the maximum portable length specified by the standard | |
317 | ||
fef3106c | 318 | Woverloaded-virtual |
7619c085 | 319 | C++ ObjC++ Var(warn_overloaded_virtual) |
bae92bf3 | 320 | Warn about overloaded virtual function names |
fef3106c NB |
321 | |
322 | Wparentheses | |
7619c085 | 323 | C ObjC C++ ObjC++ Var(warn_parentheses) |
5a170a05 | 324 | Warn about possibly missing parentheses |
fef3106c NB |
325 | |
326 | Wpmf-conversions | |
7619c085 | 327 | C++ ObjC++ Var(warn_pmf2ptr) Init(1) |
bae92bf3 | 328 | Warn when converting the type of pointers to member functions |
fef3106c NB |
329 | |
330 | Wpointer-arith | |
7619c085 | 331 | C ObjC C++ ObjC++ Var(warn_pointer_arith) |
5a170a05 | 332 | Warn about function pointer arithmetic |
fef3106c | 333 | |
53a2494e JM |
334 | Wpointer-to-int-cast |
335 | C ObjC Var(warn_pointer_to_int_cast) Init(1) | |
336 | Warn when a pointer is cast to an integer of a different size | |
337 | ||
b9b8dde3 DD |
338 | Wpragmas |
339 | C ObjC C++ ObjC++ Var(warn_pragmas) Init(1) | |
340 | Warn about misuses of pragmas | |
341 | ||
fef3106c | 342 | Wprotocol |
7619c085 | 343 | ObjC ObjC++ Var(warn_protocol) Init(1) |
f2ac9964 | 344 | Warn if inherited methods are unimplemented |
fef3106c NB |
345 | |
346 | Wredundant-decls | |
7619c085 | 347 | C ObjC C++ ObjC++ Var(warn_redundant_decls) |
5a170a05 | 348 | Warn about multiple declarations of the same object |
fef3106c NB |
349 | |
350 | Wreorder | |
7619c085 | 351 | C++ ObjC++ Var(warn_reorder) |
bae92bf3 | 352 | Warn when the compiler reorders code |
fef3106c NB |
353 | |
354 | Wreturn-type | |
44c21c7f | 355 | C ObjC C++ ObjC++ Var(warn_return_type) |
bae92bf3 | 356 | Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++) |
fef3106c NB |
357 | |
358 | Wselector | |
7619c085 | 359 | ObjC ObjC++ Var(warn_selector) |
f2ac9964 | 360 | Warn if a selector has multiple methods |
fef3106c NB |
361 | |
362 | Wsequence-point | |
3ff0c9ed | 363 | C ObjC C++ ObjC++ Var(warn_sequence_point) |
5a170a05 | 364 | Warn about possible violations of sequence point rules |
fef3106c NB |
365 | |
366 | Wsign-compare | |
7619c085 | 367 | C ObjC C++ ObjC++ Var(warn_sign_compare) Init(-1) |
5a170a05 | 368 | Warn about signed-unsigned comparisons |
fef3106c NB |
369 | |
370 | Wsign-promo | |
7619c085 | 371 | C++ ObjC++ Var(warn_sign_promo) |
bae92bf3 | 372 | Warn when overload promotes from unsigned to signed |
fef3106c | 373 | |
b2f97e4a MM |
374 | Wstrict-null-sentinel |
375 | C++ ObjC++ | |
376 | Warn about uncasted NULL used as sentinel | |
377 | ||
fef3106c | 378 | Wstrict-prototypes |
7619c085 | 379 | C ObjC Var(warn_strict_prototypes) |
5a170a05 | 380 | Warn about unprototyped function declarations |
fef3106c | 381 | |
6e955430 ZL |
382 | Wstrict-selector-match |
383 | ObjC ObjC++ Var(warn_strict_selector_match) | |
384 | Warn if type signatures of candidate methods do not match exactly | |
385 | ||
fef3106c | 386 | Wsynth |
7619c085 | 387 | C++ ObjC++ Var(warn_synth) |
bae92bf3 | 388 | Warn when synthesis behavior differs from Cfront |
fef3106c NB |
389 | |
390 | Wsystem-headers | |
391 | C ObjC C++ ObjC++ | |
72de27ea | 392 | Do not suppress warnings from system headers |
fef3106c NB |
393 | |
394 | Wtraditional | |
7619c085 | 395 | C ObjC Var(warn_traditional) |
72de27ea | 396 | Warn about features not present in traditional C |
fef3106c NB |
397 | |
398 | Wtrigraphs | |
399 | C ObjC C++ ObjC++ | |
72de27ea | 400 | Warn if trigraphs are encountered that might affect the meaning of the program |
fef3106c NB |
401 | |
402 | Wundeclared-selector | |
7619c085 DD |
403 | ObjC ObjC++ Var(warn_undeclared_selector) |
404 | Warn about @selector()s without previously declared methods | |
fef3106c NB |
405 | |
406 | Wundef | |
407 | C ObjC C++ ObjC++ | |
72de27ea | 408 | Warn if an undefined macro is used in an #if directive |
fef3106c NB |
409 | |
410 | Wunknown-pragmas | |
411 | C ObjC C++ ObjC++ | |
5a170a05 | 412 | Warn about unrecognized pragmas |
fef3106c NB |
413 | |
414 | Wunused-macros | |
415 | C ObjC C++ ObjC++ | |
72de27ea | 416 | Warn about macros defined in the main file that are not used |
fef3106c | 417 | |
e5b79219 RH |
418 | Wvariadic-macros |
419 | C ObjC C++ ObjC++ | |
420 | Do not warn about using variadic macros when -pedantic | |
421 | ||
fef3106c | 422 | Wwrite-strings |
d539b114 GDR |
423 | C ObjC C++ ObjC++ Var(warn_write_strings) |
424 | 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 | 425 | |
f2fd3821 | 426 | Wpointer-sign |
f4e9414e | 427 | C ObjC Var(warn_pointer_sign) Init(-1) |
c85ce869 | 428 | Warn when a pointer differs in signedness in an assignment |
f2fd3821 | 429 | |
fef3106c NB |
430 | ansi |
431 | C ObjC C++ ObjC++ | |
c85ce869 | 432 | A synonym for -std=c89 (for C) or -std=c++98 (for C++) |
fef3106c NB |
433 | |
434 | d | |
435 | C ObjC C++ ObjC++ Joined | |
72de27ea | 436 | ; Documented in common.opt. FIXME - what about -dI, -dD, -dN and -dD? |
fef3106c | 437 | |
fef3106c NB |
438 | faccess-control |
439 | C++ ObjC++ | |
bae92bf3 | 440 | Enforce class member access control semantics |
fef3106c NB |
441 | |
442 | fall-virtual | |
443 | C++ ObjC++ | |
444 | ||
445 | falt-external-templates | |
446 | C++ ObjC++ | |
bae92bf3 | 447 | Change when template instances are emitted |
fef3106c NB |
448 | |
449 | fasm | |
450 | C ObjC C++ ObjC++ | |
5a170a05 | 451 | Recognize the \"asm\" keyword |
fef3106c NB |
452 | |
453 | fbuiltin | |
454 | C ObjC C++ ObjC++ | |
5a170a05 | 455 | Recognize built-in functions |
fef3106c NB |
456 | |
457 | fbuiltin- | |
458 | C ObjC C++ ObjC++ Joined | |
459 | ||
460 | fcheck-new | |
461 | C++ ObjC++ | |
bae92bf3 | 462 | Check the return value of new |
fef3106c NB |
463 | |
464 | fcond-mismatch | |
465 | C ObjC C++ ObjC++ | |
5a170a05 | 466 | Allow the arguments of the '?' operator to have different types |
fef3106c NB |
467 | |
468 | fconserve-space | |
469 | C++ ObjC++ | |
bae92bf3 | 470 | Reduce the size of object files |
fef3106c | 471 | |
fef3106c NB |
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 | ||
953ff289 DN |
620 | fopenmp |
621 | C ObjC C++ ObjC++ Var(flag_openmp) | |
622 | Enable OpenMP | |
623 | ||
fef3106c NB |
624 | foperator-names |
625 | C++ ObjC++ | |
bae92bf3 | 626 | Recognize C++ kewords like \"compl\" and \"xor\" |
fef3106c NB |
627 | |
628 | foptional-diags | |
629 | C++ ObjC++ | |
bae92bf3 | 630 | Enable optional diagnostics |
fef3106c NB |
631 | |
632 | fpch-deps | |
633 | C ObjC C++ ObjC++ | |
634 | ||
c0d578e6 GK |
635 | fpch-preprocess |
636 | C ObjC C++ ObjC++ | |
637 | Look for and use PCH files even when preprocessing | |
638 | ||
fef3106c NB |
639 | fpermissive |
640 | C++ ObjC++ | |
bae92bf3 | 641 | Downgrade conformance errors to warnings |
fef3106c NB |
642 | |
643 | fpreprocessed | |
644 | C ObjC C++ ObjC++ | |
72de27ea | 645 | Treat the input file as already preprocessed |
fef3106c | 646 | |
264fa2db ZL |
647 | freplace-objc-classes |
648 | ObjC ObjC++ | |
649 | Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime | |
650 | ||
fef3106c NB |
651 | frepo |
652 | C++ ObjC++ | |
bae92bf3 | 653 | Enable automatic template instantiation |
fef3106c NB |
654 | |
655 | frtti | |
656 | C++ ObjC++ | |
bae92bf3 | 657 | Generate run time type descriptor information |
fef3106c NB |
658 | |
659 | fshort-double | |
660 | C ObjC C++ ObjC++ | |
5a170a05 | 661 | Use the same size for double as for float |
fef3106c NB |
662 | |
663 | fshort-enums | |
664 | C ObjC C++ ObjC++ | |
5a170a05 | 665 | Use the narrowest integer type possible for enumeration types |
fef3106c NB |
666 | |
667 | fshort-wchar | |
668 | C ObjC C++ ObjC++ | |
5a170a05 | 669 | Force the underlying type for \"wchar_t\" to be \"unsigned short\" |
fef3106c | 670 | |
fef3106c NB |
671 | fsigned-bitfields |
672 | C ObjC C++ ObjC++ | |
5a170a05 | 673 | When \"signed\" or \"unsigned\" is not given make the bitfield signed |
fef3106c NB |
674 | |
675 | fsigned-char | |
676 | C ObjC C++ ObjC++ | |
5a170a05 | 677 | Make \"char\" signed by default |
fef3106c NB |
678 | |
679 | fsquangle | |
680 | C++ ObjC++ | |
681 | ||
682 | fstats | |
683 | C++ ObjC++ | |
bae92bf3 | 684 | Display statistics accumulated during compilation |
fef3106c NB |
685 | |
686 | fstrict-prototype | |
687 | C++ ObjC++ | |
688 | ||
689 | ftabstop= | |
7b086b11 | 690 | C ObjC C++ ObjC++ Joined RejectNegative UInteger |
72de27ea | 691 | -ftabstop=<number> Distance between tab stops for column reporting |
fef3106c NB |
692 | |
693 | ftemplate-depth- | |
c22cacf3 | 694 | C++ ObjC++ Joined RejectNegative UInteger |
bae92bf3 | 695 | -ftemplate-depth-<number> Specify maximum template instantiation depth |
fef3106c NB |
696 | |
697 | fthis-is-variable | |
698 | C++ ObjC++ | |
699 | ||
40aac948 JM |
700 | fthreadsafe-statics |
701 | C++ ObjC++ | |
c85ce869 | 702 | -fno-threadsafe-statics Do not generate thread-safe code for initializing local statics |
40aac948 | 703 | |
fef3106c NB |
704 | funsigned-bitfields |
705 | C ObjC C++ ObjC++ | |
5a170a05 | 706 | When \"signed\" or \"unsigned\" is not given make the bitfield unsigned |
fef3106c NB |
707 | |
708 | funsigned-char | |
709 | C ObjC C++ ObjC++ | |
5a170a05 | 710 | Make \"char\" unsigned by default |
fef3106c NB |
711 | |
712 | fuse-cxa-atexit | |
713 | C++ ObjC++ | |
bae92bf3 | 714 | Use __cxa_atexit to register destructors |
fef3106c | 715 | |
c7b5e395 GK |
716 | fuse-cxa-get-exception-ptr |
717 | C++ ObjC++ | |
718 | Use __cxa_get_exception_ptr in exception handling | |
719 | ||
d7afec4b | 720 | fvisibility-inlines-hidden |
d0b07283 | 721 | C++ ObjC++ |
d7afec4b ND |
722 | Marks all inlined methods as having hidden visibility |
723 | ||
fef3106c NB |
724 | fvtable-gc |
725 | C++ ObjC++ | |
bae92bf3 | 726 | Discard unused virtual functions |
fef3106c NB |
727 | |
728 | fvtable-thunks | |
729 | C++ ObjC++ | |
bae92bf3 | 730 | Implement vtables using thunks |
fef3106c NB |
731 | |
732 | fweak | |
733 | C++ ObjC++ | |
bae92bf3 | 734 | Emit common-like symbols as weak symbols |
fef3106c | 735 | |
e6cc3a24 ZW |
736 | fwide-exec-charset= |
737 | C ObjC C++ ObjC++ Joined RejectNegative | |
72de27ea | 738 | -fwide-exec-charset=<cset> Convert all wide strings and character constants to character set <cset> |
e6cc3a24 | 739 | |
b20d9f0c AO |
740 | fworking-directory |
741 | C ObjC C++ ObjC++ | |
742 | Generate a #line directive pointing at the current working directory | |
743 | ||
fef3106c NB |
744 | fxref |
745 | C++ ObjC++ | |
bae92bf3 | 746 | Emit cross referencing information |
fef3106c | 747 | |
264fa2db ZL |
748 | fzero-link |
749 | ObjC ObjC++ | |
750 | Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode | |
751 | ||
fef3106c NB |
752 | gen-decls |
753 | ObjC ObjC++ | |
f2ac9964 | 754 | Dump declarations to a .decl file |
fef3106c NB |
755 | |
756 | idirafter | |
757 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 758 | -idirafter <dir> Add <dir> to the end of the system include path |
fef3106c NB |
759 | |
760 | imacros | |
761 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 762 | -imacros <file> Accept definition of macros in <file> |
fef3106c | 763 | |
2b6dd222 JM |
764 | imultilib |
765 | C ObjC C++ ObjC++ Joined Separate | |
766 | -imultilib <dir> Set <dir> to be the multilib include subdirectory | |
767 | ||
fef3106c NB |
768 | include |
769 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 770 | -include <file> Include the contents of <file> before other files |
fef3106c NB |
771 | |
772 | iprefix | |
773 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 774 | -iprefix <path> Specify <path> as a prefix for next two options |
fef3106c NB |
775 | |
776 | isysroot | |
777 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 778 | -isysroot <dir> Set <dir> to be the system root directory |
fef3106c NB |
779 | |
780 | isystem | |
781 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 782 | -isystem <dir> Add <dir> to the start of the system include path |
fef3106c | 783 | |
4bed3787 MS |
784 | iquote |
785 | C ObjC C++ ObjC++ Joined Separate | |
786 | -iquote <dir> Add <dir> to the end of the quote include path | |
787 | ||
fef3106c NB |
788 | iwithprefix |
789 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 790 | -iwithprefix <dir> Add <dir> to the end of the system include path |
fef3106c NB |
791 | |
792 | iwithprefixbefore | |
793 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 794 | -iwithprefixbefore <dir> Add <dir> to the end of the main include path |
fef3106c NB |
795 | |
796 | lang-asm | |
f2ac9964 | 797 | C Undocumented |
fef3106c | 798 | |
a67ec6ab FXC |
799 | lang-fortran |
800 | C Undocumented | |
801 | ||
fef3106c | 802 | lang-objc |
f2ac9964 | 803 | C ObjC C++ ObjC++ Undocumented |
fef3106c NB |
804 | |
805 | nostdinc | |
806 | C ObjC C++ ObjC++ | |
72de27ea | 807 | Do not search standard system include directories (those specified with -isystem will still be used) |
fef3106c NB |
808 | |
809 | nostdinc++ | |
72de27ea NB |
810 | C++ ObjC++ |
811 | Do not search standard system include directories for C++ | |
fef3106c NB |
812 | |
813 | o | |
814 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 815 | ; Documented in common.opt |
fef3106c NB |
816 | |
817 | pedantic | |
818 | C ObjC C++ ObjC++ | |
72de27ea | 819 | ; Documented in common.opt |
fef3106c NB |
820 | |
821 | pedantic-errors | |
822 | C ObjC C++ ObjC++ | |
72de27ea | 823 | ; Documented in common.opt |
fef3106c NB |
824 | |
825 | print-objc-runtime-info | |
826 | ObjC ObjC++ | |
f2ac9964 | 827 | Generate C header of platform-specific features |
fef3106c | 828 | |
3fd30b88 GK |
829 | print-pch-checksum |
830 | C ObjC C++ ObjC++ | |
c85ce869 | 831 | Print a checksum of the executable for PCH validity checking, and stop |
3fd30b88 | 832 | |
fef3106c NB |
833 | remap |
834 | C ObjC C++ ObjC++ | |
72de27ea | 835 | Remap file names when including files |
fef3106c NB |
836 | |
837 | std=c++98 | |
838 | C++ ObjC++ | |
72de27ea | 839 | Conform to the ISO 1998 C++ standard |
fef3106c NB |
840 | |
841 | std=c89 | |
842 | C ObjC | |
72de27ea | 843 | Conform to the ISO 1990 C standard |
fef3106c NB |
844 | |
845 | std=c99 | |
846 | C ObjC | |
72de27ea | 847 | Conform to the ISO 1999 C standard |
fef3106c NB |
848 | |
849 | std=c9x | |
850 | C ObjC | |
72de27ea | 851 | Deprecated in favor of -std=c99 |
fef3106c NB |
852 | |
853 | std=gnu++98 | |
854 | C++ ObjC++ | |
72de27ea | 855 | Conform to the ISO 1998 C++ standard with GNU extensions |
fef3106c NB |
856 | |
857 | std=gnu89 | |
858 | C ObjC | |
72de27ea | 859 | Conform to the ISO 1990 C standard with GNU extensions |
fef3106c NB |
860 | |
861 | std=gnu99 | |
862 | C ObjC | |
72de27ea | 863 | Conform to the ISO 1999 C standard with GNU extensions |
fef3106c NB |
864 | |
865 | std=gnu9x | |
866 | C ObjC | |
72de27ea | 867 | Deprecated in favor of -std=gnu99 |
fef3106c NB |
868 | |
869 | std=iso9899:1990 | |
870 | C ObjC | |
3a1e400e | 871 | Conform to the ISO 1990 C standard |
fef3106c NB |
872 | |
873 | std=iso9899:199409 | |
874 | C ObjC | |
72de27ea | 875 | Conform to the ISO 1990 C standard as amended in 1994 |
fef3106c NB |
876 | |
877 | std=iso9899:1999 | |
878 | C ObjC | |
3a1e400e | 879 | Conform to the ISO 1999 C standard |
fef3106c NB |
880 | |
881 | std=iso9899:199x | |
882 | C ObjC | |
3a1e400e | 883 | Deprecated in favor of -std=iso9899:1999 |
fef3106c NB |
884 | |
885 | traditional-cpp | |
886 | C ObjC C++ ObjC++ | |
72de27ea | 887 | Enable traditional preprocessing |
fef3106c NB |
888 | |
889 | trigraphs | |
890 | C ObjC C++ ObjC++ | |
72de27ea | 891 | -trigraphs Support ISO C trigraphs |
fef3106c NB |
892 | |
893 | undef | |
894 | C ObjC C++ ObjC++ | |
72de27ea | 895 | Do not predefine system-specific and GCC-specific macros |
fef3106c NB |
896 | |
897 | v | |
898 | C ObjC C++ ObjC++ | |
72de27ea | 899 | Enable verbose output |
fef3106c NB |
900 | |
901 | w | |
902 | C ObjC C++ ObjC++ | |
72de27ea | 903 | ; Documented in common.opt |
e11a4ae5 NB |
904 | |
905 | ; This comment is to ensure we retain the blank line above. |