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