]>
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) |
05170031 | 154 | Warn for implicit type conversions that may change a value |
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 | 321 | |
7ed322d7 JM |
322 | Woverride-init |
323 | C ObjC Var(warn_override_init) Init(-1) | |
324 | Warn about overriding initializers without side effects | |
325 | ||
fef3106c | 326 | Wparentheses |
7619c085 | 327 | C ObjC C++ ObjC++ Var(warn_parentheses) |
5a170a05 | 328 | Warn about possibly missing parentheses |
fef3106c NB |
329 | |
330 | Wpmf-conversions | |
7619c085 | 331 | C++ ObjC++ Var(warn_pmf2ptr) Init(1) |
bae92bf3 | 332 | Warn when converting the type of pointers to member functions |
fef3106c NB |
333 | |
334 | Wpointer-arith | |
7619c085 | 335 | C ObjC C++ ObjC++ Var(warn_pointer_arith) |
5a170a05 | 336 | Warn about function pointer arithmetic |
fef3106c | 337 | |
53a2494e JM |
338 | Wpointer-to-int-cast |
339 | C ObjC Var(warn_pointer_to_int_cast) Init(1) | |
340 | Warn when a pointer is cast to an integer of a different size | |
341 | ||
b9b8dde3 DD |
342 | Wpragmas |
343 | C ObjC C++ ObjC++ Var(warn_pragmas) Init(1) | |
344 | Warn about misuses of pragmas | |
345 | ||
fef3106c | 346 | Wprotocol |
7619c085 | 347 | ObjC ObjC++ Var(warn_protocol) Init(1) |
f2ac9964 | 348 | Warn if inherited methods are unimplemented |
fef3106c NB |
349 | |
350 | Wredundant-decls | |
7619c085 | 351 | C ObjC C++ ObjC++ Var(warn_redundant_decls) |
5a170a05 | 352 | Warn about multiple declarations of the same object |
fef3106c NB |
353 | |
354 | Wreorder | |
7619c085 | 355 | C++ ObjC++ Var(warn_reorder) |
bae92bf3 | 356 | Warn when the compiler reorders code |
fef3106c NB |
357 | |
358 | Wreturn-type | |
44c21c7f | 359 | C ObjC C++ ObjC++ Var(warn_return_type) |
bae92bf3 | 360 | Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++) |
fef3106c NB |
361 | |
362 | Wselector | |
7619c085 | 363 | ObjC ObjC++ Var(warn_selector) |
f2ac9964 | 364 | Warn if a selector has multiple methods |
fef3106c NB |
365 | |
366 | Wsequence-point | |
3ff0c9ed | 367 | C ObjC C++ ObjC++ Var(warn_sequence_point) |
5a170a05 | 368 | Warn about possible violations of sequence point rules |
fef3106c NB |
369 | |
370 | Wsign-compare | |
7619c085 | 371 | C ObjC C++ ObjC++ Var(warn_sign_compare) Init(-1) |
5a170a05 | 372 | Warn about signed-unsigned comparisons |
fef3106c NB |
373 | |
374 | Wsign-promo | |
7619c085 | 375 | C++ ObjC++ Var(warn_sign_promo) |
bae92bf3 | 376 | Warn when overload promotes from unsigned to signed |
fef3106c | 377 | |
b2f97e4a MM |
378 | Wstrict-null-sentinel |
379 | C++ ObjC++ | |
380 | Warn about uncasted NULL used as sentinel | |
381 | ||
fef3106c | 382 | Wstrict-prototypes |
7619c085 | 383 | C ObjC Var(warn_strict_prototypes) |
5a170a05 | 384 | Warn about unprototyped function declarations |
fef3106c | 385 | |
6e955430 ZL |
386 | Wstrict-selector-match |
387 | ObjC ObjC++ Var(warn_strict_selector_match) | |
388 | Warn if type signatures of candidate methods do not match exactly | |
389 | ||
fef3106c | 390 | Wsynth |
7619c085 | 391 | C++ ObjC++ Var(warn_synth) |
bae92bf3 | 392 | Warn when synthesis behavior differs from Cfront |
fef3106c NB |
393 | |
394 | Wsystem-headers | |
395 | C ObjC C++ ObjC++ | |
72de27ea | 396 | Do not suppress warnings from system headers |
fef3106c NB |
397 | |
398 | Wtraditional | |
7619c085 | 399 | C ObjC Var(warn_traditional) |
72de27ea | 400 | Warn about features not present in traditional C |
fef3106c | 401 | |
05170031 MLI |
402 | Wtraditional-conversion |
403 | C ObjC Var(warn_traditional_conversion) | |
404 | Warn of prototypes causing type conversions different from what would happen in the absence of prototype | |
405 | ||
fef3106c NB |
406 | Wtrigraphs |
407 | C ObjC C++ ObjC++ | |
72de27ea | 408 | Warn if trigraphs are encountered that might affect the meaning of the program |
fef3106c NB |
409 | |
410 | Wundeclared-selector | |
7619c085 DD |
411 | ObjC ObjC++ Var(warn_undeclared_selector) |
412 | Warn about @selector()s without previously declared methods | |
fef3106c NB |
413 | |
414 | Wundef | |
415 | C ObjC C++ ObjC++ | |
72de27ea | 416 | Warn if an undefined macro is used in an #if directive |
fef3106c NB |
417 | |
418 | Wunknown-pragmas | |
419 | C ObjC C++ ObjC++ | |
5a170a05 | 420 | Warn about unrecognized pragmas |
fef3106c NB |
421 | |
422 | Wunused-macros | |
423 | C ObjC C++ ObjC++ | |
72de27ea | 424 | Warn about macros defined in the main file that are not used |
fef3106c | 425 | |
e5b79219 RH |
426 | Wvariadic-macros |
427 | C ObjC C++ ObjC++ | |
428 | Do not warn about using variadic macros when -pedantic | |
429 | ||
fef3106c | 430 | Wwrite-strings |
d539b114 GDR |
431 | C ObjC C++ ObjC++ Var(warn_write_strings) |
432 | 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 | 433 | |
f2fd3821 | 434 | Wpointer-sign |
f4e9414e | 435 | C ObjC Var(warn_pointer_sign) Init(-1) |
c85ce869 | 436 | Warn when a pointer differs in signedness in an assignment |
f2fd3821 | 437 | |
fef3106c NB |
438 | ansi |
439 | C ObjC C++ ObjC++ | |
c85ce869 | 440 | A synonym for -std=c89 (for C) or -std=c++98 (for C++) |
fef3106c NB |
441 | |
442 | d | |
443 | C ObjC C++ ObjC++ Joined | |
72de27ea | 444 | ; Documented in common.opt. FIXME - what about -dI, -dD, -dN and -dD? |
fef3106c | 445 | |
fef3106c NB |
446 | faccess-control |
447 | C++ ObjC++ | |
bae92bf3 | 448 | Enforce class member access control semantics |
fef3106c NB |
449 | |
450 | fall-virtual | |
451 | C++ ObjC++ | |
452 | ||
453 | falt-external-templates | |
454 | C++ ObjC++ | |
bae92bf3 | 455 | Change when template instances are emitted |
fef3106c NB |
456 | |
457 | fasm | |
458 | C ObjC C++ ObjC++ | |
5a170a05 | 459 | Recognize the \"asm\" keyword |
fef3106c NB |
460 | |
461 | fbuiltin | |
462 | C ObjC C++ ObjC++ | |
5a170a05 | 463 | Recognize built-in functions |
fef3106c NB |
464 | |
465 | fbuiltin- | |
466 | C ObjC C++ ObjC++ Joined | |
467 | ||
468 | fcheck-new | |
469 | C++ ObjC++ | |
bae92bf3 | 470 | Check the return value of new |
fef3106c NB |
471 | |
472 | fcond-mismatch | |
473 | C ObjC C++ ObjC++ | |
5a170a05 | 474 | Allow the arguments of the '?' operator to have different types |
fef3106c NB |
475 | |
476 | fconserve-space | |
477 | C++ ObjC++ | |
bae92bf3 | 478 | Reduce the size of object files |
fef3106c | 479 | |
fef3106c NB |
480 | fconstant-string-class= |
481 | ObjC ObjC++ Joined | |
f2ac9964 | 482 | -fconst-string-class=<name> Use class <name> for constant strings |
fef3106c NB |
483 | |
484 | fdefault-inline | |
485 | C++ ObjC++ | |
bae92bf3 | 486 | Inline member functions by default |
fef3106c NB |
487 | |
488 | fdollars-in-identifiers | |
489 | C ObjC C++ ObjC++ | |
72de27ea | 490 | Permit '$' as an identifier character |
fef3106c | 491 | |
fef3106c NB |
492 | felide-constructors |
493 | C++ ObjC++ | |
494 | ||
495 | fenforce-eh-specs | |
496 | C++ ObjC++ | |
bae92bf3 | 497 | Generate code to check exception specifications |
fef3106c NB |
498 | |
499 | fenum-int-equiv | |
500 | C++ ObjC++ | |
501 | ||
e6cc3a24 ZW |
502 | fexec-charset= |
503 | C ObjC C++ ObjC++ Joined RejectNegative | |
72de27ea | 504 | -fexec-charset=<cset> Convert all strings and character constants to character set <cset> |
e6cc3a24 | 505 | |
af15a2fe JM |
506 | fextended-identifiers |
507 | C ObjC C++ ObjC++ | |
508 | Permit universal character names (\\u and \\U) in identifiers | |
509 | ||
16dd5cfe EC |
510 | finput-charset= |
511 | C ObjC C++ ObjC++ Joined RejectNegative | |
c85ce869 | 512 | -finput-charset=<cset> Specify the default character set for source files |
16dd5cfe EC |
513 | |
514 | ||
fef3106c NB |
515 | fexternal-templates |
516 | C++ ObjC++ | |
517 | ||
fef3106c NB |
518 | ffor-scope |
519 | C++ ObjC++ | |
bae92bf3 | 520 | Scope of for-init-statement variables is local to the loop |
fef3106c NB |
521 | |
522 | ffreestanding | |
523 | C ObjC | |
5a170a05 | 524 | Do not assume that standard C libraries and \"main\" exist |
fef3106c NB |
525 | |
526 | fgnu-keywords | |
527 | C++ ObjC++ | |
bae92bf3 | 528 | Recognize GNU-defined keywords |
fef3106c NB |
529 | |
530 | fgnu-runtime | |
531 | ObjC ObjC++ | |
f2ac9964 | 532 | Generate code for GNU runtime environment |
fef3106c NB |
533 | |
534 | fguiding-decls | |
535 | C++ ObjC++ | |
536 | ||
537 | fhandle-exceptions | |
538 | C++ ObjC++ | |
539 | ||
540 | fhonor-std | |
541 | C++ ObjC++ | |
542 | ||
543 | fhosted | |
544 | C ObjC | |
5a170a05 | 545 | Assume normal C execution environment |
fef3106c NB |
546 | |
547 | fhuge-objects | |
548 | C++ ObjC++ | |
bae92bf3 | 549 | Enable support for huge objects |
fef3106c NB |
550 | |
551 | fimplement-inlines | |
552 | C++ ObjC++ | |
bae92bf3 | 553 | Export functions even if they can be inlined |
fef3106c NB |
554 | |
555 | fimplicit-inline-templates | |
556 | C++ ObjC++ | |
bae92bf3 | 557 | Emit implicit instantiations of inline templates |
fef3106c NB |
558 | |
559 | fimplicit-templates | |
560 | C++ ObjC++ | |
bae92bf3 | 561 | Emit implicit instantiations of templates |
fef3106c | 562 | |
d63d5d0c ILT |
563 | ffriend-injection |
564 | C++ Var(flag_friend_injection) | |
565 | Inject friend functions into enclosing namespace | |
566 | ||
fef3106c NB |
567 | flabels-ok |
568 | C++ ObjC++ | |
569 | ||
570 | fms-extensions | |
571 | C ObjC C++ ObjC++ | |
bae92bf3 | 572 | Don't warn about uses of Microsoft extensions |
fef3106c NB |
573 | |
574 | fname-mangling-version- | |
575 | C++ ObjC++ Joined | |
576 | ||
577 | fnew-abi | |
578 | C++ ObjC++ | |
579 | ||
580 | fnext-runtime | |
581 | ObjC ObjC++ | |
264fa2db ZL |
582 | Generate code for NeXT (Apple Mac OS X) runtime environment |
583 | ||
584 | fnil-receivers | |
585 | ObjC ObjC++ | |
586 | Assume that receivers of Objective-C messages may be nil | |
fef3106c NB |
587 | |
588 | fnonansi-builtins | |
589 | C++ ObjC++ | |
590 | ||
591 | fnonnull-objects | |
592 | C++ ObjC++ | |
593 | ||
6e955430 ZL |
594 | ; Generate special '- .cxx_construct' and '- .cxx_destruct' methods |
595 | ; to initialize any non-POD ivars in Objective-C++ classes. | |
596 | fobjc-call-cxx-cdtors | |
597 | ObjC++ Var(flag_objc_call_cxx_cdtors) | |
598 | Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed | |
599 | ||
600 | fobjc-direct-dispatch | |
601 | ObjC ObjC++ Var(flag_objc_direct_dispatch) | |
602 | Allow fast jumps to the message dispatcher | |
603 | ||
604 | ; Nonzero means that we will allow new ObjC exception syntax (@throw, | |
605 | ; @try, etc.) in source code. | |
264fa2db | 606 | fobjc-exceptions |
6e955430 | 607 | ObjC ObjC++ Var(flag_objc_exceptions) |
264fa2db ZL |
608 | Enable Objective-C exception and synchronization syntax |
609 | ||
6e955430 ZL |
610 | fobjc-gc |
611 | ObjC ObjC++ Var(flag_objc_gc) | |
612 | Enable garbage collection (GC) in Objective-C/Objective-C++ programs | |
613 | ||
614 | ; Nonzero means that we generate NeXT setjmp based exceptions. | |
093c7153 | 615 | fobjc-sjlj-exceptions |
6e955430 | 616 | ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1) |
093c7153 RH |
617 | Enable Objective-C setjmp exception handling runtime |
618 | ||
953ff289 DN |
619 | fopenmp |
620 | C ObjC C++ ObjC++ Var(flag_openmp) | |
621 | Enable OpenMP | |
622 | ||
fef3106c NB |
623 | foperator-names |
624 | C++ ObjC++ | |
bae92bf3 | 625 | Recognize C++ kewords like \"compl\" and \"xor\" |
fef3106c NB |
626 | |
627 | foptional-diags | |
628 | C++ ObjC++ | |
bae92bf3 | 629 | Enable optional diagnostics |
fef3106c NB |
630 | |
631 | fpch-deps | |
632 | C ObjC C++ ObjC++ | |
633 | ||
c0d578e6 GK |
634 | fpch-preprocess |
635 | C ObjC C++ ObjC++ | |
636 | Look for and use PCH files even when preprocessing | |
637 | ||
fef3106c NB |
638 | fpermissive |
639 | C++ ObjC++ | |
bae92bf3 | 640 | Downgrade conformance errors to warnings |
fef3106c NB |
641 | |
642 | fpreprocessed | |
643 | C ObjC C++ ObjC++ | |
72de27ea | 644 | Treat the input file as already preprocessed |
fef3106c | 645 | |
264fa2db ZL |
646 | freplace-objc-classes |
647 | ObjC ObjC++ | |
648 | Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime | |
649 | ||
fef3106c NB |
650 | frepo |
651 | C++ ObjC++ | |
bae92bf3 | 652 | Enable automatic template instantiation |
fef3106c NB |
653 | |
654 | frtti | |
655 | C++ ObjC++ | |
bae92bf3 | 656 | Generate run time type descriptor information |
fef3106c NB |
657 | |
658 | fshort-double | |
659 | C ObjC C++ ObjC++ | |
5a170a05 | 660 | Use the same size for double as for float |
fef3106c NB |
661 | |
662 | fshort-enums | |
663 | C ObjC C++ ObjC++ | |
5a170a05 | 664 | Use the narrowest integer type possible for enumeration types |
fef3106c NB |
665 | |
666 | fshort-wchar | |
667 | C ObjC C++ ObjC++ | |
5a170a05 | 668 | Force the underlying type for \"wchar_t\" to be \"unsigned short\" |
fef3106c | 669 | |
fef3106c NB |
670 | fsigned-bitfields |
671 | C ObjC C++ ObjC++ | |
5a170a05 | 672 | When \"signed\" or \"unsigned\" is not given make the bitfield signed |
fef3106c NB |
673 | |
674 | fsigned-char | |
675 | C ObjC C++ ObjC++ | |
5a170a05 | 676 | Make \"char\" signed by default |
fef3106c NB |
677 | |
678 | fsquangle | |
679 | C++ ObjC++ | |
680 | ||
681 | fstats | |
682 | C++ ObjC++ | |
bae92bf3 | 683 | Display statistics accumulated during compilation |
fef3106c NB |
684 | |
685 | fstrict-prototype | |
686 | C++ ObjC++ | |
687 | ||
688 | ftabstop= | |
7b086b11 | 689 | C ObjC C++ ObjC++ Joined RejectNegative UInteger |
72de27ea | 690 | -ftabstop=<number> Distance between tab stops for column reporting |
fef3106c NB |
691 | |
692 | ftemplate-depth- | |
c22cacf3 | 693 | C++ ObjC++ Joined RejectNegative UInteger |
bae92bf3 | 694 | -ftemplate-depth-<number> Specify maximum template instantiation depth |
fef3106c NB |
695 | |
696 | fthis-is-variable | |
697 | C++ ObjC++ | |
698 | ||
40aac948 JM |
699 | fthreadsafe-statics |
700 | C++ ObjC++ | |
c85ce869 | 701 | -fno-threadsafe-statics Do not generate thread-safe code for initializing local statics |
40aac948 | 702 | |
fef3106c NB |
703 | funsigned-bitfields |
704 | C ObjC C++ ObjC++ | |
5a170a05 | 705 | When \"signed\" or \"unsigned\" is not given make the bitfield unsigned |
fef3106c NB |
706 | |
707 | funsigned-char | |
708 | C ObjC C++ ObjC++ | |
5a170a05 | 709 | Make \"char\" unsigned by default |
fef3106c NB |
710 | |
711 | fuse-cxa-atexit | |
712 | C++ ObjC++ | |
bae92bf3 | 713 | Use __cxa_atexit to register destructors |
fef3106c | 714 | |
c7b5e395 GK |
715 | fuse-cxa-get-exception-ptr |
716 | C++ ObjC++ | |
717 | Use __cxa_get_exception_ptr in exception handling | |
718 | ||
d7afec4b | 719 | fvisibility-inlines-hidden |
d0b07283 | 720 | C++ ObjC++ |
d7afec4b ND |
721 | Marks all inlined methods as having hidden visibility |
722 | ||
fef3106c NB |
723 | fvtable-gc |
724 | C++ ObjC++ | |
bae92bf3 | 725 | Discard unused virtual functions |
fef3106c NB |
726 | |
727 | fvtable-thunks | |
728 | C++ ObjC++ | |
bae92bf3 | 729 | Implement vtables using thunks |
fef3106c NB |
730 | |
731 | fweak | |
732 | C++ ObjC++ | |
bae92bf3 | 733 | Emit common-like symbols as weak symbols |
fef3106c | 734 | |
e6cc3a24 ZW |
735 | fwide-exec-charset= |
736 | C ObjC C++ ObjC++ Joined RejectNegative | |
72de27ea | 737 | -fwide-exec-charset=<cset> Convert all wide strings and character constants to character set <cset> |
e6cc3a24 | 738 | |
b20d9f0c AO |
739 | fworking-directory |
740 | C ObjC C++ ObjC++ | |
741 | Generate a #line directive pointing at the current working directory | |
742 | ||
fef3106c NB |
743 | fxref |
744 | C++ ObjC++ | |
bae92bf3 | 745 | Emit cross referencing information |
fef3106c | 746 | |
264fa2db ZL |
747 | fzero-link |
748 | ObjC ObjC++ | |
749 | Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode | |
750 | ||
fef3106c NB |
751 | gen-decls |
752 | ObjC ObjC++ | |
f2ac9964 | 753 | Dump declarations to a .decl file |
fef3106c NB |
754 | |
755 | idirafter | |
756 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 757 | -idirafter <dir> Add <dir> to the end of the system include path |
fef3106c NB |
758 | |
759 | imacros | |
760 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 761 | -imacros <file> Accept definition of macros in <file> |
fef3106c | 762 | |
2b6dd222 JM |
763 | imultilib |
764 | C ObjC C++ ObjC++ Joined Separate | |
765 | -imultilib <dir> Set <dir> to be the multilib include subdirectory | |
766 | ||
fef3106c NB |
767 | include |
768 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 769 | -include <file> Include the contents of <file> before other files |
fef3106c NB |
770 | |
771 | iprefix | |
772 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 773 | -iprefix <path> Specify <path> as a prefix for next two options |
fef3106c NB |
774 | |
775 | isysroot | |
776 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 777 | -isysroot <dir> Set <dir> to be the system root directory |
fef3106c NB |
778 | |
779 | isystem | |
780 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 781 | -isystem <dir> Add <dir> to the start of the system include path |
fef3106c | 782 | |
4bed3787 MS |
783 | iquote |
784 | C ObjC C++ ObjC++ Joined Separate | |
785 | -iquote <dir> Add <dir> to the end of the quote include path | |
786 | ||
fef3106c NB |
787 | iwithprefix |
788 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 789 | -iwithprefix <dir> Add <dir> to the end of the system include path |
fef3106c NB |
790 | |
791 | iwithprefixbefore | |
792 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 793 | -iwithprefixbefore <dir> Add <dir> to the end of the main include path |
fef3106c NB |
794 | |
795 | lang-asm | |
f2ac9964 | 796 | C Undocumented |
fef3106c | 797 | |
a67ec6ab FXC |
798 | lang-fortran |
799 | C Undocumented | |
800 | ||
fef3106c | 801 | lang-objc |
f2ac9964 | 802 | C ObjC C++ ObjC++ Undocumented |
fef3106c NB |
803 | |
804 | nostdinc | |
805 | C ObjC C++ ObjC++ | |
72de27ea | 806 | Do not search standard system include directories (those specified with -isystem will still be used) |
fef3106c NB |
807 | |
808 | nostdinc++ | |
72de27ea NB |
809 | C++ ObjC++ |
810 | Do not search standard system include directories for C++ | |
fef3106c NB |
811 | |
812 | o | |
813 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 814 | ; Documented in common.opt |
fef3106c NB |
815 | |
816 | pedantic | |
817 | C ObjC C++ ObjC++ | |
72de27ea | 818 | ; Documented in common.opt |
fef3106c NB |
819 | |
820 | pedantic-errors | |
821 | C ObjC C++ ObjC++ | |
72de27ea | 822 | ; Documented in common.opt |
fef3106c NB |
823 | |
824 | print-objc-runtime-info | |
825 | ObjC ObjC++ | |
f2ac9964 | 826 | Generate C header of platform-specific features |
fef3106c | 827 | |
3fd30b88 GK |
828 | print-pch-checksum |
829 | C ObjC C++ ObjC++ | |
c85ce869 | 830 | Print a checksum of the executable for PCH validity checking, and stop |
3fd30b88 | 831 | |
fef3106c NB |
832 | remap |
833 | C ObjC C++ ObjC++ | |
72de27ea | 834 | Remap file names when including files |
fef3106c NB |
835 | |
836 | std=c++98 | |
837 | C++ ObjC++ | |
72de27ea | 838 | Conform to the ISO 1998 C++ standard |
fef3106c | 839 | |
966541e3 DG |
840 | std=c++0x |
841 | C++ ObjC++ | |
842 | Conform to the ISO 1998 C++ standard, with extensions that are likely to | |
843 | become a part of the upcoming ISO C++ standard, dubbed C++0x. Note that the | |
844 | extensions enabled by this mode are experimental and may be removed in | |
845 | future releases of GCC. | |
846 | ||
fef3106c NB |
847 | std=c89 |
848 | C ObjC | |
72de27ea | 849 | Conform to the ISO 1990 C standard |
fef3106c NB |
850 | |
851 | std=c99 | |
852 | C ObjC | |
72de27ea | 853 | Conform to the ISO 1999 C standard |
fef3106c NB |
854 | |
855 | std=c9x | |
856 | C ObjC | |
72de27ea | 857 | Deprecated in favor of -std=c99 |
fef3106c NB |
858 | |
859 | std=gnu++98 | |
860 | C++ ObjC++ | |
72de27ea | 861 | Conform to the ISO 1998 C++ standard with GNU extensions |
fef3106c | 862 | |
966541e3 DG |
863 | std=gnu++0x |
864 | C++ ObjC++ | |
865 | Conform to the ISO 1998 C++ standard, with GNU extensions and | |
866 | extensions that are likely to become a part of the upcoming ISO C++ | |
867 | standard, dubbed C++0x. Note that the extensions enabled by this mode | |
868 | are experimental and may be removed in future releases of GCC. | |
869 | ||
fef3106c NB |
870 | std=gnu89 |
871 | C ObjC | |
72de27ea | 872 | Conform to the ISO 1990 C standard with GNU extensions |
fef3106c NB |
873 | |
874 | std=gnu99 | |
875 | C ObjC | |
72de27ea | 876 | Conform to the ISO 1999 C standard with GNU extensions |
fef3106c NB |
877 | |
878 | std=gnu9x | |
879 | C ObjC | |
72de27ea | 880 | Deprecated in favor of -std=gnu99 |
fef3106c NB |
881 | |
882 | std=iso9899:1990 | |
883 | C ObjC | |
3a1e400e | 884 | Conform to the ISO 1990 C standard |
fef3106c NB |
885 | |
886 | std=iso9899:199409 | |
887 | C ObjC | |
72de27ea | 888 | Conform to the ISO 1990 C standard as amended in 1994 |
fef3106c NB |
889 | |
890 | std=iso9899:1999 | |
891 | C ObjC | |
3a1e400e | 892 | Conform to the ISO 1999 C standard |
fef3106c NB |
893 | |
894 | std=iso9899:199x | |
895 | C ObjC | |
3a1e400e | 896 | Deprecated in favor of -std=iso9899:1999 |
fef3106c NB |
897 | |
898 | traditional-cpp | |
899 | C ObjC C++ ObjC++ | |
72de27ea | 900 | Enable traditional preprocessing |
fef3106c NB |
901 | |
902 | trigraphs | |
903 | C ObjC C++ ObjC++ | |
72de27ea | 904 | -trigraphs Support ISO C trigraphs |
fef3106c NB |
905 | |
906 | undef | |
907 | C ObjC C++ ObjC++ | |
72de27ea | 908 | Do not predefine system-specific and GCC-specific macros |
fef3106c NB |
909 | |
910 | v | |
911 | C ObjC C++ ObjC++ | |
72de27ea | 912 | Enable verbose output |
fef3106c NB |
913 | |
914 | w | |
915 | C ObjC C++ ObjC++ | |
72de27ea | 916 | ; Documented in common.opt |
e11a4ae5 NB |
917 | |
918 | ; This comment is to ensure we retain the blank line above. |