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