]>
Commit | Line | Data |
---|---|---|
fef3106c | 1 | ; Options for the C, ObjC, C++ and ObjC++ front ends. |
ca2b05ba | 2 | ; Copyright (C) 2003, 2004 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 | ||
21 | ||
22 | ; This file is processed by the script opts.sh. It is a database of | |
23 | ; command line options, with each record separated by a blank line, | |
24 | ; and each field appearing on its own line. The first field is the | |
25 | ; command-line switch with the leading "-" removed. All options | |
26 | ; beginning with "f" or "W" are implicitly assumed to take a "no-" | |
c83857ff NB |
27 | ; form; this form should not be listed. If you do not want this |
28 | ; negative form and you want it to be automatically rejected, add | |
29 | ; RejectNegative to the second field. | |
fef3106c NB |
30 | |
31 | ; The second field is a space-separated list of which parts of the | |
be43ab4e NB |
32 | ; compiler recognize the switch, as declared by "Language" entries. |
33 | ; If the switch takes an argument, then you should also specify | |
34 | ; "Joined" and/or "Separate" to indicate where the argument can | |
7b086b11 NB |
35 | ; appear. If a Joined argument can legitimately be omitted, specify |
36 | ; "JoinedOrMissing" instead of "Joined". If the argument to a switch | |
37 | ; is a non-negative integer, you can specify "UInteger" and the switch | |
38 | ; decoder will convert the argument for you, or complain to the user | |
39 | ; if the argument is invalid. | |
fef3106c | 40 | |
cf03fd63 NB |
41 | ; The third field is the help text to output with --help. This is |
42 | ; automatically line-wrapped on output. Normally the switch is output | |
43 | ; automatically, with the help text on the right hand side of the | |
44 | ; output. However, if the help text contains a tab character, the | |
45 | ; text to the left of the tab is output instead of the switch, and the | |
46 | ; text to its right forms the help. This is useful for elaborating on | |
f2ac9964 NB |
47 | ; what type of argument a switch takes, for example. If the second |
48 | ; field contains "Undocumented" then nothing is output with --help. | |
49 | ; Only do this with good reason like the switch being internal between | |
50 | ; the driver and the front end - it is not an excuse to leave a switch | |
51 | ; undocumented. | |
cf03fd63 | 52 | |
fef3106c NB |
53 | ; Comments can appear on their own line anwhere in the file, preceded |
54 | ; by a semicolon. Whitespace is permitted before the semicolon. | |
55 | ||
56 | ; For each switch XXX below, an enumeration constant is created by the | |
57 | ; script opts.sh spelt OPT_XXX, but with all non-alphanumeric | |
58 | ; characters replaced with an underscore. | |
59 | ||
60 | ; Please try to keep this file in ASCII collating order. | |
61 | ||
be43ab4e NB |
62 | Language |
63 | C | |
64 | ||
65 | Language | |
66 | ObjC | |
67 | ||
68 | Language | |
69 | C++ | |
70 | ||
71 | Language | |
72 | ObjC++ | |
73 | ||
fef3106c NB |
74 | -output-pch= |
75 | C ObjC C++ ObjC++ Joined Separate | |
76 | ||
77 | A | |
78 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 79 | -A<question>=<answer> Assert the <answer> to <question>. Putting '-' before <question> disables the <answer> to <question> |
fef3106c NB |
80 | |
81 | C | |
82 | C ObjC C++ ObjC++ | |
72de27ea | 83 | Do not discard comments |
fef3106c NB |
84 | |
85 | CC | |
86 | C ObjC C++ ObjC++ | |
72de27ea | 87 | Do not discard comments in macro expansions |
fef3106c NB |
88 | |
89 | D | |
90 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 91 | -D<macro>[=<val>] Define a <macro> with <val> as its value. If just <macro> is given, <val> is taken to be 1 |
fef3106c NB |
92 | |
93 | E | |
f2ac9964 | 94 | C ObjC C++ ObjC++ Undocumented |
fef3106c | 95 | |
94d1613b MS |
96 | F |
97 | C ObjC C++ ObjC++ Joined Separate | |
98 | -F <dir> Add <dir> to the end of the main framework include path | |
99 | ||
fef3106c NB |
100 | H |
101 | C ObjC C++ ObjC++ | |
72de27ea | 102 | Print the name of header files as they are used |
fef3106c NB |
103 | |
104 | I | |
105 | C ObjC C++ ObjC++ Joined Separate | |
4bed3787 | 106 | -I <dir> Add <dir> to the end of the main include path |
fef3106c NB |
107 | |
108 | M | |
109 | C ObjC C++ ObjC++ | |
72de27ea | 110 | Generate make dependencies |
fef3106c NB |
111 | |
112 | MD | |
113 | C ObjC C++ ObjC++ Separate | |
72de27ea | 114 | Generate make dependencies and compile |
fef3106c NB |
115 | |
116 | MF | |
117 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 118 | -MF <file> Write dependency output to the given file |
fef3106c NB |
119 | |
120 | MG | |
121 | C ObjC C++ ObjC++ | |
72de27ea | 122 | Treat missing header files as generated files |
fef3106c NB |
123 | |
124 | MM | |
125 | C ObjC C++ ObjC++ | |
72de27ea | 126 | Like -M but ignore system header files |
fef3106c NB |
127 | |
128 | MMD | |
129 | C ObjC C++ ObjC++ Separate | |
72de27ea | 130 | Like -MD but ignore system header files |
fef3106c NB |
131 | |
132 | MP | |
133 | C ObjC C++ ObjC++ | |
72de27ea | 134 | Generate phony targets for all headers |
fef3106c NB |
135 | |
136 | MQ | |
137 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 138 | -MQ <target> Add a MAKE-quoted target |
fef3106c NB |
139 | |
140 | MT | |
141 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 142 | -MT <target> Add an unquoted target |
fef3106c NB |
143 | |
144 | P | |
145 | C ObjC C++ ObjC++ | |
72de27ea | 146 | Do not generate #line directives |
fef3106c NB |
147 | |
148 | U | |
149 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 150 | -U<macro> Undefine <macro> |
fef3106c NB |
151 | |
152 | Wabi | |
153 | C++ ObjC++ | |
154 | ||
155 | Wall | |
156 | C ObjC C++ ObjC++ | |
5a170a05 | 157 | Enable most warning messages |
fef3106c NB |
158 | |
159 | Wbad-function-cast | |
160 | C ObjC | |
5a170a05 | 161 | Warn about casting functions to incompatible types |
fef3106c NB |
162 | |
163 | Wcast-qual | |
164 | C ObjC C++ ObjC++ | |
5a170a05 | 165 | Warn about casts which discard qualifiers |
fef3106c NB |
166 | |
167 | Wchar-subscripts | |
168 | C ObjC C++ ObjC++ | |
5a170a05 | 169 | Warn about subscripts whose type is \"char\" |
fef3106c NB |
170 | |
171 | Wcomment | |
172 | C ObjC C++ ObjC++ | |
72de27ea | 173 | Warn about possibly nested block comments, and C++ comments spanning more than one physical line |
fef3106c NB |
174 | |
175 | Wcomments | |
176 | C ObjC C++ ObjC++ | |
72de27ea | 177 | Synonym for -Wcomment |
fef3106c NB |
178 | |
179 | Wconversion | |
180 | C ObjC C++ ObjC++ | |
5a170a05 | 181 | Warn about possibly confusing type conversions |
fef3106c NB |
182 | |
183 | Wctor-dtor-privacy | |
184 | C++ ObjC++ | |
bae92bf3 | 185 | Warn when all constructors and destructors are private |
fef3106c | 186 | |
85617eba HPN |
187 | Wdeclaration-after-statement |
188 | C ObjC | |
189 | Warn when a declaration is found after a statement | |
190 | ||
fef3106c NB |
191 | Wdeprecated |
192 | C++ ObjC++ | |
bae92bf3 | 193 | Warn about deprecated compiler features |
fef3106c NB |
194 | |
195 | Wdiv-by-zero | |
196 | C ObjC | |
5a170a05 | 197 | Warn about compile-time integer division by zero |
fef3106c NB |
198 | |
199 | Weffc++ | |
200 | C++ ObjC++ | |
bae92bf3 | 201 | Warn about violations of Effective C++ style rules |
fef3106c NB |
202 | |
203 | Wendif-labels | |
204 | C ObjC C++ ObjC++ | |
72de27ea | 205 | Warn about stray tokens after #elif and #endif |
fef3106c NB |
206 | |
207 | Werror | |
208 | C ObjC C++ ObjC++ | |
72de27ea | 209 | ; Documented in common.opt |
fef3106c NB |
210 | |
211 | Werror-implicit-function-declaration | |
c83857ff | 212 | C ObjC RejectNegative |
5a170a05 | 213 | Make implicit function declarations an error |
fef3106c NB |
214 | |
215 | Wfloat-equal | |
216 | C ObjC C++ ObjC++ | |
5a170a05 | 217 | Warn if testing floating point numbers for equality |
fef3106c NB |
218 | |
219 | Wformat | |
220 | C ObjC C++ ObjC++ | |
5a170a05 | 221 | Warn about printf/scanf/strftime/strfmon format string anomalies |
fef3106c NB |
222 | |
223 | Wformat-extra-args | |
224 | C ObjC C++ ObjC++ | |
5a170a05 | 225 | Warn if passing too many arguments to a function for its format string |
fef3106c NB |
226 | |
227 | Wformat-nonliteral | |
228 | C ObjC C++ ObjC++ | |
5a170a05 | 229 | Warn about format strings that are not literals |
fef3106c NB |
230 | |
231 | Wformat-security | |
232 | C ObjC C++ ObjC++ | |
5a170a05 | 233 | Warn about possible security problems with format functions |
fef3106c NB |
234 | |
235 | Wformat-y2k | |
236 | C ObjC C++ ObjC++ | |
5a170a05 | 237 | Warn about strftime formats yielding 2-digit years |
fef3106c NB |
238 | |
239 | Wformat-zero-length | |
240 | C ObjC | |
241 | ||
242 | Wformat= | |
243 | C ObjC C++ ObjC++ Joined | |
244 | ||
3390f9c9 AP |
245 | Winit-self |
246 | C ObjC C++ ObjC++ | |
247 | Warn about variables which are initialized to themselves. | |
248 | ||
fef3106c NB |
249 | Wimplicit |
250 | C ObjC C++ ObjC++ | |
251 | ||
252 | Wimplicit-function-declaration | |
253 | C ObjC | |
5a170a05 | 254 | Warn about implicit function declarations |
fef3106c NB |
255 | |
256 | Wimplicit-int | |
257 | C ObjC | |
5a170a05 | 258 | Warn when a declaration does not specify a type |
fef3106c NB |
259 | |
260 | Wimport | |
261 | C ObjC C++ ObjC++ | |
bf42e45b | 262 | Deprecated. This switch has no effect. |
fef3106c NB |
263 | |
264 | Winvalid-offsetof | |
265 | C++ ObjC++ | |
bae92bf3 | 266 | Warn about invalid uses of the \"offsetof\" macro |
fef3106c NB |
267 | |
268 | Winvalid-pch | |
269 | C ObjC C++ ObjC++ | |
5a170a05 | 270 | Warn about PCH files that are found but not used |
fef3106c NB |
271 | |
272 | Wlong-long | |
273 | C ObjC C++ ObjC++ | |
5a170a05 | 274 | Do not warn about using \"long long\" when -pedantic |
fef3106c NB |
275 | |
276 | Wmain | |
277 | C ObjC | |
5a170a05 | 278 | Warn about suspicious declarations of \"main\" |
fef3106c NB |
279 | |
280 | Wmissing-braces | |
281 | C ObjC C++ ObjC++ | |
5a170a05 | 282 | Warn about possibly missing braces around initializers |
fef3106c NB |
283 | |
284 | Wmissing-declarations | |
285 | C ObjC | |
5a170a05 | 286 | Warn about global functions without previous declarations |
fef3106c NB |
287 | |
288 | Wmissing-format-attribute | |
289 | C ObjC C++ ObjC++ | |
5a170a05 | 290 | Warn about functions which might be candidates for format attributes |
fef3106c NB |
291 | |
292 | Wmissing-prototypes | |
293 | C ObjC | |
5a170a05 | 294 | Warn about global functions without prototypes |
fef3106c NB |
295 | |
296 | Wmultichar | |
297 | C ObjC C++ ObjC++ | |
5a170a05 | 298 | Warn about use of multi-character character constants |
fef3106c NB |
299 | |
300 | Wnested-externs | |
301 | C ObjC | |
5a170a05 | 302 | Warn about \"extern\" declarations not at file scope |
fef3106c NB |
303 | |
304 | Wnon-template-friend | |
305 | C++ ObjC++ | |
bae92bf3 | 306 | Warn when non-templatized friend functions are declared within a template |
fef3106c NB |
307 | |
308 | Wnon-virtual-dtor | |
309 | C++ ObjC++ | |
bae92bf3 | 310 | Warn about non-virtual destructors |
fef3106c NB |
311 | |
312 | Wnonnull | |
313 | C ObjC | |
314 | ||
315 | Wold-style-cast | |
316 | C++ ObjC++ | |
bae92bf3 | 317 | Warn if a C-style cast is used in a program |
fef3106c | 318 | |
c034f121 AJ |
319 | Wold-style-definition |
320 | C ObjC | |
321 | Warn if an old-style parameter definition is used | |
322 | ||
fef3106c NB |
323 | Woverloaded-virtual |
324 | C++ ObjC++ | |
bae92bf3 | 325 | Warn about overloaded virtual function names |
fef3106c NB |
326 | |
327 | Wparentheses | |
328 | C ObjC C++ ObjC++ | |
5a170a05 | 329 | Warn about possibly missing parentheses |
fef3106c NB |
330 | |
331 | Wpmf-conversions | |
332 | C++ ObjC++ | |
bae92bf3 | 333 | Warn when converting the type of pointers to member functions |
fef3106c NB |
334 | |
335 | Wpointer-arith | |
336 | C ObjC C++ ObjC++ | |
5a170a05 | 337 | Warn about function pointer arithmetic |
fef3106c NB |
338 | |
339 | Wprotocol | |
340 | ObjC ObjC++ | |
f2ac9964 | 341 | Warn if inherited methods are unimplemented |
fef3106c NB |
342 | |
343 | Wredundant-decls | |
344 | C ObjC C++ ObjC++ | |
5a170a05 | 345 | Warn about multiple declarations of the same object |
fef3106c NB |
346 | |
347 | Wreorder | |
348 | C++ ObjC++ | |
bae92bf3 | 349 | Warn when the compiler reorders code |
fef3106c NB |
350 | |
351 | Wreturn-type | |
352 | C ObjC C++ ObjC++ | |
bae92bf3 | 353 | Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++) |
fef3106c NB |
354 | |
355 | Wselector | |
356 | ObjC ObjC++ | |
f2ac9964 | 357 | Warn if a selector has multiple methods |
fef3106c NB |
358 | |
359 | Wsequence-point | |
360 | C ObjC | |
5a170a05 | 361 | Warn about possible violations of sequence point rules |
fef3106c NB |
362 | |
363 | Wsign-compare | |
364 | C ObjC C++ ObjC++ | |
5a170a05 | 365 | Warn about signed-unsigned comparisons |
fef3106c NB |
366 | |
367 | Wsign-promo | |
368 | C++ ObjC++ | |
bae92bf3 | 369 | Warn when overload promotes from unsigned to signed |
fef3106c NB |
370 | |
371 | Wstrict-prototypes | |
372 | C ObjC | |
5a170a05 | 373 | Warn about unprototyped function declarations |
fef3106c NB |
374 | |
375 | Wsynth | |
376 | C++ ObjC++ | |
bae92bf3 | 377 | Warn when synthesis behavior differs from Cfront |
fef3106c NB |
378 | |
379 | Wsystem-headers | |
380 | C ObjC C++ ObjC++ | |
72de27ea | 381 | Do not suppress warnings from system headers |
fef3106c NB |
382 | |
383 | Wtraditional | |
384 | C ObjC | |
72de27ea | 385 | Warn about features not present in traditional C |
fef3106c NB |
386 | |
387 | Wtrigraphs | |
388 | C ObjC C++ ObjC++ | |
72de27ea | 389 | Warn if trigraphs are encountered that might affect the meaning of the program |
fef3106c NB |
390 | |
391 | Wundeclared-selector | |
392 | ObjC ObjC++ | |
393 | ||
394 | Wundef | |
395 | C ObjC C++ ObjC++ | |
72de27ea | 396 | Warn if an undefined macro is used in an #if directive |
fef3106c NB |
397 | |
398 | Wunknown-pragmas | |
399 | C ObjC C++ ObjC++ | |
5a170a05 | 400 | Warn about unrecognized pragmas |
fef3106c NB |
401 | |
402 | Wunused-macros | |
403 | C ObjC C++ ObjC++ | |
72de27ea | 404 | Warn about macros defined in the main file that are not used |
fef3106c | 405 | |
e5b79219 RH |
406 | Wvariadic-macros |
407 | C ObjC C++ ObjC++ | |
408 | Do not warn about using variadic macros when -pedantic | |
409 | ||
fef3106c NB |
410 | Wwrite-strings |
411 | C ObjC C++ ObjC++ | |
5a170a05 | 412 | Give strings the type \"array of char\" |
fef3106c NB |
413 | |
414 | ansi | |
415 | C ObjC C++ ObjC++ | |
5a170a05 | 416 | A synonym for -std=c89. In a future version of GCC it will become synonymous with -std=c99 instead |
fef3106c NB |
417 | |
418 | d | |
419 | C ObjC C++ ObjC++ Joined | |
72de27ea | 420 | ; Documented in common.opt. FIXME - what about -dI, -dD, -dN and -dD? |
fef3106c | 421 | |
fef3106c NB |
422 | faccess-control |
423 | C++ ObjC++ | |
bae92bf3 | 424 | Enforce class member access control semantics |
fef3106c NB |
425 | |
426 | fall-virtual | |
427 | C++ ObjC++ | |
428 | ||
429 | falt-external-templates | |
430 | C++ ObjC++ | |
bae92bf3 | 431 | Change when template instances are emitted |
fef3106c NB |
432 | |
433 | fasm | |
434 | C ObjC C++ ObjC++ | |
5a170a05 | 435 | Recognize the \"asm\" keyword |
fef3106c NB |
436 | |
437 | fbuiltin | |
438 | C ObjC C++ ObjC++ | |
5a170a05 | 439 | Recognize built-in functions |
fef3106c NB |
440 | |
441 | fbuiltin- | |
442 | C ObjC C++ ObjC++ Joined | |
443 | ||
444 | fcheck-new | |
445 | C++ ObjC++ | |
bae92bf3 | 446 | Check the return value of new |
fef3106c NB |
447 | |
448 | fcond-mismatch | |
449 | C ObjC C++ ObjC++ | |
5a170a05 | 450 | Allow the arguments of the '?' operator to have different types |
fef3106c NB |
451 | |
452 | fconserve-space | |
453 | C++ ObjC++ | |
bae92bf3 | 454 | Reduce the size of object files |
fef3106c NB |
455 | |
456 | fconst-strings | |
457 | C++ ObjC++ | |
bae92bf3 | 458 | Make string literals \"const char[]\" not \"char[]\" |
fef3106c NB |
459 | |
460 | fconstant-string-class= | |
461 | ObjC ObjC++ Joined | |
f2ac9964 | 462 | -fconst-string-class=<name> Use class <name> for constant strings |
fef3106c NB |
463 | |
464 | fdefault-inline | |
465 | C++ ObjC++ | |
bae92bf3 | 466 | Inline member functions by default |
fef3106c NB |
467 | |
468 | fdollars-in-identifiers | |
469 | C ObjC C++ ObjC++ | |
72de27ea | 470 | Permit '$' as an identifier character |
fef3106c | 471 | |
fef3106c NB |
472 | felide-constructors |
473 | C++ ObjC++ | |
474 | ||
475 | fenforce-eh-specs | |
476 | C++ ObjC++ | |
bae92bf3 | 477 | Generate code to check exception specifications |
fef3106c NB |
478 | |
479 | fenum-int-equiv | |
480 | C++ ObjC++ | |
481 | ||
e6cc3a24 ZW |
482 | fexec-charset= |
483 | C ObjC C++ ObjC++ Joined RejectNegative | |
72de27ea | 484 | -fexec-charset=<cset> Convert all strings and character constants to character set <cset> |
e6cc3a24 | 485 | |
16dd5cfe EC |
486 | finput-charset= |
487 | C ObjC C++ ObjC++ Joined RejectNegative | |
488 | -finput-charset=<cset> Specify the default character set for source files. | |
489 | ||
490 | ||
fef3106c NB |
491 | fexternal-templates |
492 | C++ ObjC++ | |
493 | ||
494 | ffixed-form | |
495 | C ObjC | |
496 | ||
497 | ffixed-line-length- | |
498 | C ObjC Joined | |
499 | ||
500 | ffor-scope | |
501 | C++ ObjC++ | |
bae92bf3 | 502 | Scope of for-init-statement variables is local to the loop |
fef3106c NB |
503 | |
504 | ffreestanding | |
505 | C ObjC | |
5a170a05 | 506 | Do not assume that standard C libraries and \"main\" exist |
fef3106c NB |
507 | |
508 | fgnu-keywords | |
509 | C++ ObjC++ | |
bae92bf3 | 510 | Recognize GNU-defined keywords |
fef3106c NB |
511 | |
512 | fgnu-runtime | |
513 | ObjC ObjC++ | |
f2ac9964 | 514 | Generate code for GNU runtime environment |
fef3106c NB |
515 | |
516 | fguiding-decls | |
517 | C++ ObjC++ | |
518 | ||
519 | fhandle-exceptions | |
520 | C++ ObjC++ | |
521 | ||
522 | fhonor-std | |
523 | C++ ObjC++ | |
524 | ||
525 | fhosted | |
526 | C ObjC | |
5a170a05 | 527 | Assume normal C execution environment |
fef3106c NB |
528 | |
529 | fhuge-objects | |
530 | C++ ObjC++ | |
bae92bf3 | 531 | Enable support for huge objects |
fef3106c NB |
532 | |
533 | fimplement-inlines | |
534 | C++ ObjC++ | |
bae92bf3 | 535 | Export functions even if they can be inlined |
fef3106c NB |
536 | |
537 | fimplicit-inline-templates | |
538 | C++ ObjC++ | |
bae92bf3 | 539 | Emit implicit instantiations of inline templates |
fef3106c NB |
540 | |
541 | fimplicit-templates | |
542 | C++ ObjC++ | |
bae92bf3 | 543 | Emit implicit instantiations of templates |
fef3106c NB |
544 | |
545 | flabels-ok | |
546 | C++ ObjC++ | |
547 | ||
548 | fms-extensions | |
549 | C ObjC C++ ObjC++ | |
bae92bf3 | 550 | Don't warn about uses of Microsoft extensions |
fef3106c NB |
551 | |
552 | fname-mangling-version- | |
553 | C++ ObjC++ Joined | |
554 | ||
555 | fnew-abi | |
556 | C++ ObjC++ | |
557 | ||
558 | fnext-runtime | |
559 | ObjC ObjC++ | |
264fa2db ZL |
560 | Generate code for NeXT (Apple Mac OS X) runtime environment |
561 | ||
562 | fnil-receivers | |
563 | ObjC ObjC++ | |
564 | Assume that receivers of Objective-C messages may be nil | |
fef3106c NB |
565 | |
566 | fnonansi-builtins | |
567 | C++ ObjC++ | |
568 | ||
569 | fnonnull-objects | |
570 | C++ ObjC++ | |
571 | ||
264fa2db ZL |
572 | fobjc-exceptions |
573 | ObjC ObjC++ | |
574 | Enable Objective-C exception and synchronization syntax | |
575 | ||
fef3106c NB |
576 | foperator-names |
577 | C++ ObjC++ | |
bae92bf3 | 578 | Recognize C++ kewords like \"compl\" and \"xor\" |
fef3106c NB |
579 | |
580 | foptional-diags | |
581 | C++ ObjC++ | |
bae92bf3 | 582 | Enable optional diagnostics |
fef3106c NB |
583 | |
584 | fpch-deps | |
585 | C ObjC C++ ObjC++ | |
586 | ||
587 | fpermissive | |
588 | C++ ObjC++ | |
bae92bf3 | 589 | Downgrade conformance errors to warnings |
fef3106c NB |
590 | |
591 | fpreprocessed | |
592 | C ObjC C++ ObjC++ | |
72de27ea | 593 | Treat the input file as already preprocessed |
fef3106c | 594 | |
264fa2db ZL |
595 | freplace-objc-classes |
596 | ObjC ObjC++ | |
597 | Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime | |
598 | ||
fef3106c NB |
599 | frepo |
600 | C++ ObjC++ | |
bae92bf3 | 601 | Enable automatic template instantiation |
fef3106c NB |
602 | |
603 | frtti | |
604 | C++ ObjC++ | |
bae92bf3 | 605 | Generate run time type descriptor information |
fef3106c NB |
606 | |
607 | fshort-double | |
608 | C ObjC C++ ObjC++ | |
5a170a05 | 609 | Use the same size for double as for float |
fef3106c NB |
610 | |
611 | fshort-enums | |
612 | C ObjC C++ ObjC++ | |
5a170a05 | 613 | Use the narrowest integer type possible for enumeration types |
fef3106c NB |
614 | |
615 | fshort-wchar | |
616 | C ObjC C++ ObjC++ | |
5a170a05 | 617 | Force the underlying type for \"wchar_t\" to be \"unsigned short\" |
fef3106c NB |
618 | |
619 | fshow-column | |
620 | C ObjC C++ ObjC++ | |
621 | ||
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 | ||
651 | funsigned-bitfields | |
652 | C ObjC C++ ObjC++ | |
5a170a05 | 653 | When \"signed\" or \"unsigned\" is not given make the bitfield unsigned |
fef3106c NB |
654 | |
655 | funsigned-char | |
656 | C ObjC C++ ObjC++ | |
5a170a05 | 657 | Make \"char\" unsigned by default |
fef3106c NB |
658 | |
659 | fuse-cxa-atexit | |
660 | C++ ObjC++ | |
bae92bf3 | 661 | Use __cxa_atexit to register destructors |
fef3106c NB |
662 | |
663 | fvtable-gc | |
664 | C++ ObjC++ | |
bae92bf3 | 665 | Discard unused virtual functions |
fef3106c NB |
666 | |
667 | fvtable-thunks | |
668 | C++ ObjC++ | |
bae92bf3 | 669 | Implement vtables using thunks |
fef3106c NB |
670 | |
671 | fweak | |
672 | C++ ObjC++ | |
bae92bf3 | 673 | Emit common-like symbols as weak symbols |
fef3106c | 674 | |
e6cc3a24 ZW |
675 | fwide-exec-charset= |
676 | C ObjC C++ ObjC++ Joined RejectNegative | |
72de27ea | 677 | -fwide-exec-charset=<cset> Convert all wide strings and character constants to character set <cset> |
e6cc3a24 | 678 | |
b20d9f0c AO |
679 | fworking-directory |
680 | C ObjC C++ ObjC++ | |
681 | Generate a #line directive pointing at the current working directory | |
682 | ||
fef3106c NB |
683 | fxref |
684 | C++ ObjC++ | |
bae92bf3 | 685 | Emit cross referencing information |
fef3106c | 686 | |
264fa2db ZL |
687 | fzero-link |
688 | ObjC ObjC++ | |
689 | Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode | |
690 | ||
fef3106c NB |
691 | gen-decls |
692 | ObjC ObjC++ | |
f2ac9964 | 693 | Dump declarations to a .decl file |
fef3106c NB |
694 | |
695 | idirafter | |
696 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 697 | -idirafter <dir> Add <dir> to the end of the system include path |
fef3106c NB |
698 | |
699 | imacros | |
700 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 701 | -imacros <file> Accept definition of macros in <file> |
fef3106c NB |
702 | |
703 | include | |
704 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 705 | -include <file> Include the contents of <file> before other files |
fef3106c NB |
706 | |
707 | iprefix | |
708 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 709 | -iprefix <path> Specify <path> as a prefix for next two options |
fef3106c NB |
710 | |
711 | isysroot | |
712 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 713 | -isysroot <dir> Set <dir> to be the system root directory |
fef3106c NB |
714 | |
715 | isystem | |
716 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 717 | -isystem <dir> Add <dir> to the start of the system include path |
fef3106c | 718 | |
4bed3787 MS |
719 | iquote |
720 | C ObjC C++ ObjC++ Joined Separate | |
721 | -iquote <dir> Add <dir> to the end of the quote include path | |
722 | ||
fef3106c NB |
723 | iwithprefix |
724 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 725 | -iwithprefix <dir> Add <dir> to the end of the system include path |
fef3106c NB |
726 | |
727 | iwithprefixbefore | |
728 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 729 | -iwithprefixbefore <dir> Add <dir> to the end of the main include path |
fef3106c NB |
730 | |
731 | lang-asm | |
f2ac9964 | 732 | C Undocumented |
fef3106c NB |
733 | |
734 | lang-objc | |
f2ac9964 | 735 | C ObjC C++ ObjC++ Undocumented |
fef3106c NB |
736 | |
737 | nostdinc | |
738 | C ObjC C++ ObjC++ | |
72de27ea | 739 | Do not search standard system include directories (those specified with -isystem will still be used) |
fef3106c NB |
740 | |
741 | nostdinc++ | |
72de27ea NB |
742 | C++ ObjC++ |
743 | Do not search standard system include directories for C++ | |
fef3106c NB |
744 | |
745 | o | |
746 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 747 | ; Documented in common.opt |
fef3106c NB |
748 | |
749 | pedantic | |
750 | C ObjC C++ ObjC++ | |
72de27ea | 751 | ; Documented in common.opt |
fef3106c NB |
752 | |
753 | pedantic-errors | |
754 | C ObjC C++ ObjC++ | |
72de27ea | 755 | ; Documented in common.opt |
fef3106c NB |
756 | |
757 | print-objc-runtime-info | |
758 | ObjC ObjC++ | |
f2ac9964 | 759 | Generate C header of platform-specific features |
fef3106c NB |
760 | |
761 | remap | |
762 | C ObjC C++ ObjC++ | |
72de27ea | 763 | Remap file names when including files |
fef3106c NB |
764 | |
765 | std=c++98 | |
766 | C++ ObjC++ | |
72de27ea | 767 | Conform to the ISO 1998 C++ standard |
fef3106c NB |
768 | |
769 | std=c89 | |
770 | C ObjC | |
72de27ea | 771 | Conform to the ISO 1990 C standard |
fef3106c NB |
772 | |
773 | std=c99 | |
774 | C ObjC | |
72de27ea | 775 | Conform to the ISO 1999 C standard |
fef3106c NB |
776 | |
777 | std=c9x | |
778 | C ObjC | |
72de27ea | 779 | Deprecated in favor of -std=c99 |
fef3106c NB |
780 | |
781 | std=gnu++98 | |
782 | C++ ObjC++ | |
72de27ea | 783 | Conform to the ISO 1998 C++ standard with GNU extensions |
fef3106c NB |
784 | |
785 | std=gnu89 | |
786 | C ObjC | |
72de27ea | 787 | Conform to the ISO 1990 C standard with GNU extensions |
fef3106c NB |
788 | |
789 | std=gnu99 | |
790 | C ObjC | |
72de27ea | 791 | Conform to the ISO 1999 C standard with GNU extensions |
fef3106c NB |
792 | |
793 | std=gnu9x | |
794 | C ObjC | |
72de27ea | 795 | Deprecated in favor of -std=gnu99 |
fef3106c NB |
796 | |
797 | std=iso9899:1990 | |
798 | C ObjC | |
72de27ea | 799 | Deprecated in favor of -std=c89 |
fef3106c NB |
800 | |
801 | std=iso9899:199409 | |
802 | C ObjC | |
72de27ea | 803 | Conform to the ISO 1990 C standard as amended in 1994 |
fef3106c NB |
804 | |
805 | std=iso9899:1999 | |
806 | C ObjC | |
72de27ea | 807 | Deprecated in favor of -std=c99 |
fef3106c NB |
808 | |
809 | std=iso9899:199x | |
810 | C ObjC | |
72de27ea | 811 | Deprecated in favor of -std=c99 |
fef3106c NB |
812 | |
813 | traditional-cpp | |
814 | C ObjC C++ ObjC++ | |
72de27ea | 815 | Enable traditional preprocessing |
fef3106c NB |
816 | |
817 | trigraphs | |
818 | C ObjC C++ ObjC++ | |
72de27ea | 819 | -trigraphs Support ISO C trigraphs |
fef3106c NB |
820 | |
821 | undef | |
822 | C ObjC C++ ObjC++ | |
72de27ea | 823 | Do not predefine system-specific and GCC-specific macros |
fef3106c NB |
824 | |
825 | v | |
826 | C ObjC C++ ObjC++ | |
72de27ea | 827 | Enable verbose output |
fef3106c NB |
828 | |
829 | w | |
830 | C ObjC C++ ObjC++ | |
72de27ea | 831 | ; Documented in common.opt |
e11a4ae5 NB |
832 | |
833 | ; This comment is to ensure we retain the blank line above. |