]>
Commit | Line | Data |
---|---|---|
fef3106c | 1 | ; Options for the C, ObjC, C++ and ObjC++ front ends. |
c75c517d | 2 | ; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
66647d44 | 3 | ; Free Software Foundation, Inc. |
fef3106c NB |
4 | ; |
5 | ; This file is part of GCC. | |
6 | ; | |
7 | ; GCC is free software; you can redistribute it and/or modify it under | |
8 | ; the terms of the GNU General Public License as published by the Free | |
9dcd6f09 | 9 | ; Software Foundation; either version 3, or (at your option) any later |
fef3106c | 10 | ; version. |
c22cacf3 | 11 | ; |
fef3106c NB |
12 | ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY |
13 | ; WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 | ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 | ; for more details. | |
c22cacf3 | 16 | ; |
fef3106c | 17 | ; You should have received a copy of the GNU General Public License |
9dcd6f09 NC |
18 | ; along with GCC; see the file COPYING3. If not see |
19 | ; <http://www.gnu.org/licenses/>. | |
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 | |
61ff2bdc | 41 | C ObjC C++ ObjC++ Joined Separate MissingArgError(assertion missing after %qs) |
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 | |
61ff2bdc | 53 | C ObjC C++ ObjC++ Joined Separate MissingArgError(macro name missing after %qs) |
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 | |
5498f011 | 57 | C ObjC C++ ObjC++ Undocumented Var(flag_preprocess_only) |
fef3106c | 58 | |
94d1613b | 59 | F |
61ff2bdc | 60 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs) |
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 | |
61ff2bdc | 68 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs) |
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 | 74 | |
644fa7ac | 75 | MDX |
603349bf | 76 | C ObjC C++ ObjC++ RejectDriver Separate MissingArgError(missing filename after %qs) |
644fa7ac | 77 | -MD Generate make dependencies and compile |
fef3106c NB |
78 | |
79 | MF | |
61ff2bdc | 80 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs) |
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 | 90 | |
644fa7ac | 91 | MMDX |
603349bf | 92 | C ObjC C++ ObjC++ RejectDriver Separate MissingArgError(missing filename after %qs) |
644fa7ac | 93 | -MMD 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 | |
61ff2bdc | 100 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing makefile target after %qs) |
72de27ea | 101 | -MQ <target> Add a MAKE-quoted target |
fef3106c NB |
102 | |
103 | MT | |
61ff2bdc | 104 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing makefile target after %qs) |
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 | |
61ff2bdc | 112 | C ObjC C++ ObjC++ Joined Separate MissingArgError(macro name missing after %qs) |
72de27ea | 113 | -U<macro> Undefine <macro> |
fef3106c NB |
114 | |
115 | Wabi | |
d7f09764 | 116 | C ObjC C++ ObjC++ LTO Var(warn_abi) Warning |
7619c085 | 117 | Warn about things that will change when compiling with an ABI-compliant compiler |
fef3106c | 118 | |
bce08d50 | 119 | Wpsabi |
d7f09764 | 120 | C ObjC C++ ObjC++ LTO Var(warn_psabi) Init(1) Undocumented |
bce08d50 | 121 | |
c116cd05 MLI |
122 | Waddress |
123 | C ObjC C++ ObjC++ Var(warn_address) Warning | |
124 | Warn about suspicious uses of memory addresses | |
125 | ||
fef3106c | 126 | Wall |
c662432e | 127 | C ObjC C++ ObjC++ Warning |
5a170a05 | 128 | Enable most warning messages |
fef3106c | 129 | |
6e955430 | 130 | Wassign-intercept |
c662432e | 131 | ObjC ObjC++ Var(warn_assign_intercept) Warning |
6e955430 ZL |
132 | Warn whenever an Objective-C assignment is being intercepted by the garbage collector |
133 | ||
fef3106c | 134 | Wbad-function-cast |
c662432e | 135 | C ObjC Var(warn_bad_function_cast) Warning |
5a170a05 | 136 | Warn about casting functions to incompatible types |
fef3106c | 137 | |
c047ce93 SB |
138 | Wbuiltin-macro-redefined |
139 | C ObjC C++ ObjC++ Warning | |
140 | Warn when a built-in preprocessor macro is undefined or redefined | |
141 | ||
b7e20b53 | 142 | Wc++-compat |
2cbac420 | 143 | C ObjC Var(warn_cxx_compat) Warning |
b7e20b53 GDR |
144 | Warn about C constructs that are not in the common subset of C and C++ |
145 | ||
e1f1ee86 | 146 | Wc++0x-compat |
21af5cdf | 147 | C++ ObjC++ Var(warn_cxx0x_compat) Warning |
e1f1ee86 | 148 | Warn about C++ constructs whose meaning differs between ISO C++ 1998 and ISO C++ 200x |
b7e20b53 | 149 | |
fef3106c | 150 | Wcast-qual |
c662432e | 151 | C ObjC C++ ObjC++ Var(warn_cast_qual) Warning |
5a170a05 | 152 | Warn about casts which discard qualifiers |
fef3106c NB |
153 | |
154 | Wchar-subscripts | |
c662432e | 155 | C ObjC C++ ObjC++ Var(warn_char_subscripts) Warning |
5a170a05 | 156 | Warn about subscripts whose type is \"char\" |
fef3106c | 157 | |
2b001724 | 158 | Wclobbered |
c662432e | 159 | C ObjC C++ ObjC++ Var(warn_clobbered) Init(-1) Warning |
2b001724 MLI |
160 | Warn about variables that might be changed by \"longjmp\" or \"vfork\" |
161 | ||
fef3106c | 162 | Wcomment |
c662432e | 163 | C ObjC C++ ObjC++ Warning |
72de27ea | 164 | Warn about possibly nested block comments, and C++ comments spanning more than one physical line |
fef3106c NB |
165 | |
166 | Wcomments | |
c662432e | 167 | C ObjC C++ ObjC++ Warning |
72de27ea | 168 | Synonym for -Wcomment |
fef3106c NB |
169 | |
170 | Wconversion | |
c662432e | 171 | C ObjC C++ ObjC++ Var(warn_conversion) Warning |
05170031 | 172 | Warn for implicit type conversions that may change a value |
fef3106c | 173 | |
17251338 MLI |
174 | Wconversion-null |
175 | C++ ObjC++ Var(warn_conversion_null) Init(1) Warning | |
176 | Warn for converting NULL from/to a non-pointer type | |
177 | ||
7060db96 MLI |
178 | Wsign-conversion |
179 | C ObjC C++ ObjC++ Var(warn_sign_conversion) Init(-1) | |
180 | Warn for implicit type conversions between signed and unsigned integers | |
181 | ||
fef3106c | 182 | Wctor-dtor-privacy |
c662432e | 183 | C++ ObjC++ Var(warn_ctor_dtor_privacy) Warning |
bae92bf3 | 184 | Warn when all constructors and destructors are private |
fef3106c | 185 | |
85617eba | 186 | Wdeclaration-after-statement |
c662432e | 187 | C ObjC Var(warn_declaration_after_statement) Warning |
85617eba HPN |
188 | Warn when a declaration is found after a statement |
189 | ||
fef3106c | 190 | Wdeprecated |
899015a0 | 191 | C C++ ObjC ObjC++ Var(warn_deprecated) Init(1) Warning |
9a0f3e86 | 192 | Warn if a deprecated compiler feature, class, method, or field is used |
fef3106c NB |
193 | |
194 | Wdiv-by-zero | |
2cbac420 | 195 | C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1) Warning |
5a170a05 | 196 | Warn about compile-time integer division by zero |
fef3106c NB |
197 | |
198 | Weffc++ | |
c662432e | 199 | C++ ObjC++ Var(warn_ecpp) Warning |
bae92bf3 | 200 | Warn about violations of Effective C++ style rules |
fef3106c | 201 | |
b3b433c5 | 202 | Wempty-body |
c662432e | 203 | C ObjC C++ ObjC++ Var(warn_empty_body) Init(-1) Warning |
b3b433c5 MLI |
204 | Warn about an empty body in an if or else statement |
205 | ||
fef3106c | 206 | Wendif-labels |
c662432e | 207 | C ObjC C++ ObjC++ Warning |
72de27ea | 208 | Warn about stray tokens after #elif and #endif |
fef3106c | 209 | |
a3299096 | 210 | Wenum-compare |
6866c6e8 | 211 | C ObjC C++ ObjC++ Var(warn_enum_compare) Init(-1) Warning |
a3299096 MM |
212 | Warn about comparison of different enum types |
213 | ||
fef3106c NB |
214 | Werror |
215 | C ObjC C++ ObjC++ | |
72de27ea | 216 | ; Documented in common.opt |
fef3106c NB |
217 | |
218 | Werror-implicit-function-declaration | |
c662432e | 219 | C ObjC RejectNegative Warning |
dc90f45b | 220 | This switch is deprecated; use -Werror=implicit-function-declaration instead |
fef3106c NB |
221 | |
222 | Wfloat-equal | |
c662432e | 223 | C ObjC C++ ObjC++ Var(warn_float_equal) Warning |
5a170a05 | 224 | Warn if testing floating point numbers for equality |
fef3106c NB |
225 | |
226 | Wformat | |
c662432e | 227 | C ObjC C++ ObjC++ Warning |
5a170a05 | 228 | Warn about printf/scanf/strftime/strfmon format string anomalies |
fef3106c NB |
229 | |
230 | Wformat-extra-args | |
c662432e | 231 | C ObjC C++ ObjC++ Var(warn_format_extra_args) Warning |
5a170a05 | 232 | Warn if passing too many arguments to a function for its format string |
fef3106c NB |
233 | |
234 | Wformat-nonliteral | |
c662432e | 235 | C ObjC C++ ObjC++ Var(warn_format_nonliteral) Warning |
5a170a05 | 236 | Warn about format strings that are not literals |
fef3106c | 237 | |
ca178f85 | 238 | Wformat-contains-nul |
6d16b6e7 | 239 | C ObjC C++ ObjC++ Var(warn_format_contains_nul) Warning |
ca178f85 BK |
240 | Warn about format strings that contain NUL bytes |
241 | ||
fef3106c | 242 | Wformat-security |
c662432e | 243 | C ObjC C++ ObjC++ Var(warn_format_security) Warning |
5a170a05 | 244 | Warn about possible security problems with format functions |
fef3106c NB |
245 | |
246 | Wformat-y2k | |
c662432e | 247 | C ObjC C++ ObjC++ Var(warn_format_y2k) Warning |
5a170a05 | 248 | Warn about strftime formats yielding 2-digit years |
fef3106c NB |
249 | |
250 | Wformat-zero-length | |
c662432e | 251 | C ObjC Var(warn_format_zero_length) Warning |
7619c085 | 252 | Warn about zero-length formats |
fef3106c NB |
253 | |
254 | Wformat= | |
c662432e | 255 | C ObjC C++ ObjC++ Joined Warning |
fef3106c | 256 | |
5db2e9ca DK |
257 | Wignored-qualifiers |
258 | C C++ Var(warn_ignored_qualifiers) Init(-1) Warning | |
259 | Warn whenever type qualifiers are ignored. | |
260 | ||
3390f9c9 | 261 | Winit-self |
c662432e | 262 | C ObjC C++ ObjC++ Var(warn_init_self) Warning |
ab532386 | 263 | Warn about variables which are initialized to themselves |
3390f9c9 | 264 | |
fef3106c | 265 | Wimplicit |
3734d960 MLI |
266 | C ObjC Var(warn_implicit) Init(-1) Warning |
267 | Warn about implicit declarations | |
fef3106c NB |
268 | |
269 | Wimplicit-function-declaration | |
dc90f45b | 270 | C ObjC Var(warn_implicit_function_declaration) Init(-1) Warning |
5a170a05 | 271 | Warn about implicit function declarations |
fef3106c NB |
272 | |
273 | Wimplicit-int | |
3734d960 | 274 | C ObjC Var(warn_implicit_int) Init(-1) Warning |
5a170a05 | 275 | Warn when a declaration does not specify a type |
fef3106c NB |
276 | |
277 | Wimport | |
c24d4112 | 278 | C ObjC C++ ObjC++ Undocumented |
fef3106c | 279 | |
53a2494e | 280 | Wint-to-pointer-cast |
dc8d2739 | 281 | C ObjC C++ ObjC++ Var(warn_int_to_pointer_cast) Init(1) Warning |
53a2494e JM |
282 | Warn when there is a cast to a pointer from an integer of a different size |
283 | ||
fef3106c | 284 | Winvalid-offsetof |
c662432e | 285 | C++ ObjC++ Var(warn_invalid_offsetof) Init(1) Warning |
bae92bf3 | 286 | Warn about invalid uses of the \"offsetof\" macro |
fef3106c NB |
287 | |
288 | Winvalid-pch | |
c662432e | 289 | C ObjC C++ ObjC++ Warning |
5a170a05 | 290 | Warn about PCH files that are found but not used |
fef3106c | 291 | |
e1b7793c | 292 | Wjump-misses-init |
da667743 | 293 | C ObjC Var(warn_jump_misses_init) Init(-1) Warning |
e1b7793c ILT |
294 | Warn when a jump misses a variable initialization |
295 | ||
ca409efd | 296 | Wlogical-op |
7bb27074 | 297 | C ObjC C++ ObjC++ Var(warn_logical_op) Init(0) Warning |
ca409efd MLI |
298 | Warn when a logical operator is suspiciously always evaluating to true or false |
299 | ||
fef3106c | 300 | Wlong-long |
9c650d90 | 301 | C ObjC C++ ObjC++ Var(warn_long_long) Init(-1) Warning |
5a170a05 | 302 | Do not warn about using \"long long\" when -pedantic |
fef3106c NB |
303 | |
304 | Wmain | |
4003301d | 305 | C ObjC C++ ObjC++ Var(warn_main) Init(-1) Warning |
5a170a05 | 306 | Warn about suspicious declarations of \"main\" |
fef3106c NB |
307 | |
308 | Wmissing-braces | |
c662432e | 309 | C ObjC C++ ObjC++ Var(warn_missing_braces) Warning |
5a170a05 | 310 | Warn about possibly missing braces around initializers |
fef3106c NB |
311 | |
312 | Wmissing-declarations | |
c662432e | 313 | C ObjC C++ ObjC++ Var(warn_missing_declarations) Warning |
5a170a05 | 314 | Warn about global functions without previous declarations |
fef3106c | 315 | |
eaac4679 | 316 | Wmissing-field-initializers |
c662432e | 317 | C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Init(-1) Warning |
eaac4679 RS |
318 | Warn about missing fields in struct initializers |
319 | ||
fef3106c | 320 | Wmissing-format-attribute |
c662432e | 321 | C ObjC C++ ObjC++ Var(warn_missing_format_attribute) Warning |
5a170a05 | 322 | Warn about functions which might be candidates for format attributes |
fef3106c | 323 | |
b02398bd | 324 | Wmissing-include-dirs |
c662432e | 325 | C ObjC C++ ObjC++ Warning |
b02398bd BE |
326 | Warn about user-specified include directories that do not exist |
327 | ||
cb4af25a | 328 | Wmissing-parameter-type |
c662432e | 329 | C ObjC Var(warn_missing_parameter_type) Init(-1) Warning |
cb4af25a MLI |
330 | Warn about function parameters declared without a type specifier in K&R-style functions |
331 | ||
fef3106c | 332 | Wmissing-prototypes |
c662432e | 333 | C ObjC Var(warn_missing_prototypes) Warning |
5a170a05 | 334 | Warn about global functions without prototypes |
fef3106c NB |
335 | |
336 | Wmultichar | |
c662432e | 337 | C ObjC C++ ObjC++ Warning |
5a170a05 | 338 | Warn about use of multi-character character constants |
fef3106c NB |
339 | |
340 | Wnested-externs | |
c662432e | 341 | C ObjC Var(warn_nested_externs) Warning |
5a170a05 | 342 | Warn about \"extern\" declarations not at file scope |
fef3106c | 343 | |
59f9c2ed JM |
344 | Wnoexcept |
345 | C++ ObjC++ Var(warn_noexcept) Warning | |
3c820dcd | 346 | Warn when a noexcept expression evaluates to false even though the expression can't actually throw |
59f9c2ed | 347 | |
fef3106c | 348 | Wnon-template-friend |
c662432e | 349 | C++ ObjC++ Var(warn_nontemplate_friend) Init(1) Warning |
bae92bf3 | 350 | Warn when non-templatized friend functions are declared within a template |
fef3106c NB |
351 | |
352 | Wnon-virtual-dtor | |
c662432e | 353 | C++ ObjC++ Var(warn_nonvdtor) Warning |
bae92bf3 | 354 | Warn about non-virtual destructors |
fef3106c NB |
355 | |
356 | Wnonnull | |
c662432e | 357 | C ObjC Var(warn_nonnull) Warning |
7619c085 | 358 | Warn about NULL being passed to argument slots marked as requiring non-NULL |
fef3106c | 359 | |
50668cf6 | 360 | Wnormalized= |
c662432e | 361 | C ObjC C++ ObjC++ Joined Warning |
50668cf6 GK |
362 | -Wnormalized=<id|nfc|nfkc> Warn about non-normalised Unicode strings |
363 | ||
fef3106c | 364 | Wold-style-cast |
c662432e | 365 | C++ ObjC++ Var(warn_old_style_cast) Warning |
bae92bf3 | 366 | Warn if a C-style cast is used in a program |
fef3106c | 367 | |
b1ed4cb4 | 368 | Wold-style-declaration |
c662432e | 369 | C ObjC Var(warn_old_style_declaration) Init(-1) Warning |
b1ed4cb4 MLI |
370 | Warn for obsolescent usage in a declaration |
371 | ||
c034f121 | 372 | Wold-style-definition |
c662432e | 373 | C ObjC Var(warn_old_style_definition) Warning |
c034f121 AJ |
374 | Warn if an old-style parameter definition is used |
375 | ||
89a42ac8 | 376 | Woverlength-strings |
c662432e | 377 | C ObjC C++ ObjC++ Var(warn_overlength_strings) Init(-1) Warning |
89a42ac8 ZW |
378 | Warn if a string is longer than the maximum portable length specified by the standard |
379 | ||
fef3106c | 380 | Woverloaded-virtual |
c662432e | 381 | C++ ObjC++ Var(warn_overloaded_virtual) Warning |
bae92bf3 | 382 | Warn about overloaded virtual function names |
fef3106c | 383 | |
7ed322d7 | 384 | Woverride-init |
c662432e | 385 | C ObjC Var(warn_override_init) Init(-1) Warning |
7ed322d7 JM |
386 | Warn about overriding initializers without side effects |
387 | ||
2cd36c22 | 388 | Wpacked-bitfield-compat |
bee6fa6d | 389 | C ObjC C++ ObjC++ Var(warn_packed_bitfield_compat) Init(-1) Warning |
2cd36c22 AN |
390 | Warn about packed bit-fields whose offset changed in GCC 4.4 |
391 | ||
fef3106c | 392 | Wparentheses |
c662432e | 393 | C ObjC C++ ObjC++ Var(warn_parentheses) Warning |
5a170a05 | 394 | Warn about possibly missing parentheses |
fef3106c NB |
395 | |
396 | Wpmf-conversions | |
c662432e | 397 | C++ ObjC++ Var(warn_pmf2ptr) Init(1) Warning |
bae92bf3 | 398 | Warn when converting the type of pointers to member functions |
fef3106c NB |
399 | |
400 | Wpointer-arith | |
c662432e | 401 | C ObjC C++ ObjC++ Var(warn_pointer_arith) Warning |
5a170a05 | 402 | Warn about function pointer arithmetic |
fef3106c | 403 | |
53a2494e | 404 | Wpointer-to-int-cast |
c662432e | 405 | C ObjC Var(warn_pointer_to_int_cast) Init(1) Warning |
53a2494e JM |
406 | Warn when a pointer is cast to an integer of a different size |
407 | ||
b9b8dde3 | 408 | Wpragmas |
c662432e | 409 | C ObjC C++ ObjC++ Var(warn_pragmas) Init(1) Warning |
b9b8dde3 DD |
410 | Warn about misuses of pragmas |
411 | ||
fef3106c | 412 | Wprotocol |
c662432e | 413 | ObjC ObjC++ Var(warn_protocol) Init(1) Warning |
f2ac9964 | 414 | Warn if inherited methods are unimplemented |
fef3106c NB |
415 | |
416 | Wredundant-decls | |
c662432e | 417 | C ObjC C++ ObjC++ Var(warn_redundant_decls) Warning |
5a170a05 | 418 | Warn about multiple declarations of the same object |
fef3106c NB |
419 | |
420 | Wreorder | |
c662432e | 421 | C++ ObjC++ Var(warn_reorder) Warning |
bae92bf3 | 422 | Warn when the compiler reorders code |
fef3106c NB |
423 | |
424 | Wreturn-type | |
c662432e | 425 | C ObjC C++ ObjC++ Var(warn_return_type) Warning |
bae92bf3 | 426 | Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++) |
fef3106c NB |
427 | |
428 | Wselector | |
c662432e | 429 | ObjC ObjC++ Var(warn_selector) Warning |
f2ac9964 | 430 | Warn if a selector has multiple methods |
fef3106c NB |
431 | |
432 | Wsequence-point | |
c662432e | 433 | C ObjC C++ ObjC++ Var(warn_sequence_point) Warning |
5a170a05 | 434 | Warn about possible violations of sequence point rules |
fef3106c NB |
435 | |
436 | Wsign-compare | |
c662432e | 437 | C ObjC C++ ObjC++ Var(warn_sign_compare) Init(-1) Warning |
5a170a05 | 438 | Warn about signed-unsigned comparisons |
fef3106c NB |
439 | |
440 | Wsign-promo | |
c662432e | 441 | C++ ObjC++ Var(warn_sign_promo) Warning |
bae92bf3 | 442 | Warn when overload promotes from unsigned to signed |
fef3106c | 443 | |
b2f97e4a | 444 | Wstrict-null-sentinel |
5498f011 | 445 | C++ ObjC++ Warning Var(warn_strict_null_sentinel) |
b2f97e4a MM |
446 | Warn about uncasted NULL used as sentinel |
447 | ||
fef3106c | 448 | Wstrict-prototypes |
c662432e | 449 | C ObjC Var(warn_strict_prototypes) Warning |
5a170a05 | 450 | Warn about unprototyped function declarations |
fef3106c | 451 | |
6e955430 | 452 | Wstrict-selector-match |
c662432e | 453 | ObjC ObjC++ Var(warn_strict_selector_match) Warning |
6e955430 ZL |
454 | Warn if type signatures of candidate methods do not match exactly |
455 | ||
23462d4d UB |
456 | Wsync-nand |
457 | C C++ Var(warn_sync_nand) Init(1) Warning | |
458 | Warn when __sync_fetch_and_nand and __sync_nand_and_fetch built-in functions are used | |
459 | ||
fef3106c | 460 | Wsynth |
c662432e | 461 | C++ ObjC++ Var(warn_synth) Warning |
802e3f8c | 462 | Deprecated. This switch has no effect |
fef3106c NB |
463 | |
464 | Wsystem-headers | |
c662432e | 465 | C ObjC C++ ObjC++ Warning |
9a0f3e86 | 466 | ; Documented in common.opt |
fef3106c NB |
467 | |
468 | Wtraditional | |
c662432e | 469 | C ObjC Var(warn_traditional) Warning |
72de27ea | 470 | Warn about features not present in traditional C |
fef3106c | 471 | |
05170031 | 472 | Wtraditional-conversion |
c662432e | 473 | C ObjC Var(warn_traditional_conversion) Warning |
05170031 MLI |
474 | Warn of prototypes causing type conversions different from what would happen in the absence of prototype |
475 | ||
fef3106c | 476 | Wtrigraphs |
c662432e | 477 | C ObjC C++ ObjC++ Warning |
72de27ea | 478 | Warn if trigraphs are encountered that might affect the meaning of the program |
fef3106c NB |
479 | |
480 | Wundeclared-selector | |
c662432e | 481 | ObjC ObjC++ Var(warn_undeclared_selector) Warning |
7619c085 | 482 | Warn about @selector()s without previously declared methods |
fef3106c NB |
483 | |
484 | Wundef | |
c662432e | 485 | C ObjC C++ ObjC++ Warning |
72de27ea | 486 | Warn if an undefined macro is used in an #if directive |
fef3106c NB |
487 | |
488 | Wunknown-pragmas | |
c662432e | 489 | C ObjC C++ ObjC++ Warning |
5a170a05 | 490 | Warn about unrecognized pragmas |
fef3106c | 491 | |
6ec637a4 JJ |
492 | Wunsuffixed-float-constants |
493 | C ObjC Var(warn_unsuffixed_float_constants) Warning | |
494 | Warn about unsuffixed float constants | |
495 | ||
fef3106c | 496 | Wunused-macros |
c662432e | 497 | C ObjC C++ ObjC++ Warning |
72de27ea | 498 | Warn about macros defined in the main file that are not used |
fef3106c | 499 | |
156f545a MLI |
500 | Wunused-result |
501 | C ObjC C++ ObjC++ Var(warn_unused_result) Init(1) Warning | |
502 | Warn if a caller of a function, marked with attribute warn_unused_result, does not use its return value | |
503 | ||
e5b79219 | 504 | Wvariadic-macros |
c662432e | 505 | C ObjC C++ ObjC++ Warning |
e5b79219 RH |
506 | Do not warn about using variadic macros when -pedantic |
507 | ||
50d50fc7 SP |
508 | Wvla |
509 | C ObjC C++ ObjC++ Var(warn_vla) Init(-1) Warning | |
510 | Warn if a variable length array is used | |
511 | ||
16302daf MLI |
512 | Wvolatile-register-var |
513 | C ObjC C++ ObjC++ Var(warn_volatile_register_var) Warning | |
514 | Warn when a register variable is declared volatile | |
515 | ||
fef3106c | 516 | Wwrite-strings |
c662432e | 517 | C ObjC C++ ObjC++ Var(warn_write_strings) Warning |
d539b114 | 518 | 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 | 519 | |
f2fd3821 | 520 | Wpointer-sign |
c662432e | 521 | C ObjC Var(warn_pointer_sign) Init(-1) Warning |
c85ce869 | 522 | Warn when a pointer differs in signedness in an assignment |
f2fd3821 | 523 | |
fef3106c NB |
524 | ansi |
525 | C ObjC C++ ObjC++ | |
c85ce869 | 526 | A synonym for -std=c89 (for C) or -std=c++98 (for C++) |
fef3106c NB |
527 | |
528 | d | |
529 | C ObjC C++ ObjC++ Joined | |
72de27ea | 530 | ; Documented in common.opt. FIXME - what about -dI, -dD, -dN and -dD? |
fef3106c | 531 | |
fef3106c | 532 | faccess-control |
5498f011 | 533 | C++ ObjC++ Var(flag_access_control) Init(1) |
bae92bf3 | 534 | Enforce class member access control semantics |
fef3106c NB |
535 | |
536 | fall-virtual | |
537 | C++ ObjC++ | |
538 | ||
539 | falt-external-templates | |
540 | C++ ObjC++ | |
bae92bf3 | 541 | Change when template instances are emitted |
fef3106c NB |
542 | |
543 | fasm | |
5498f011 | 544 | C ObjC C++ ObjC++ Var(flag_no_asm, 0) |
5a170a05 | 545 | Recognize the \"asm\" keyword |
fef3106c NB |
546 | |
547 | fbuiltin | |
5498f011 | 548 | C ObjC C++ ObjC++ Var(flag_no_builtin, 0) |
5a170a05 | 549 | Recognize built-in functions |
fef3106c NB |
550 | |
551 | fbuiltin- | |
552 | C ObjC C++ ObjC++ Joined | |
553 | ||
554 | fcheck-new | |
5498f011 | 555 | C++ ObjC++ Var(flag_check_new) |
bae92bf3 | 556 | Check the return value of new |
fef3106c NB |
557 | |
558 | fcond-mismatch | |
559 | C ObjC C++ ObjC++ | |
5a170a05 | 560 | Allow the arguments of the '?' operator to have different types |
fef3106c NB |
561 | |
562 | fconserve-space | |
5498f011 | 563 | C++ ObjC++ Var(flag_conserve_space) |
bae92bf3 | 564 | Reduce the size of object files |
fef3106c | 565 | |
fef3106c | 566 | fconstant-string-class= |
61ff2bdc | 567 | ObjC ObjC++ Joined MissingArgError(no class name specified with %qs) |
f2ac9964 | 568 | -fconst-string-class=<name> Use class <name> for constant strings |
fef3106c | 569 | |
5f5babf1 JM |
570 | fdeduce-init-list |
571 | C++ ObjC++ Var(flag_deduce_init_list) Init(1) | |
572 | -fno-deduce-init-list disable deduction of std::initializer_list for a template type parameter from a brace-enclosed initializer-list | |
573 | ||
fef3106c NB |
574 | fdefault-inline |
575 | C++ ObjC++ | |
5498f011 | 576 | Does nothing. Preserved for backward compatibility. |
fef3106c | 577 | |
ccfc4c91 OW |
578 | fdirectives-only |
579 | C ObjC C++ ObjC++ | |
580 | Preprocess directives only. | |
581 | ||
fef3106c NB |
582 | fdollars-in-identifiers |
583 | C ObjC C++ ObjC++ | |
72de27ea | 584 | Permit '$' as an identifier character |
fef3106c | 585 | |
fef3106c | 586 | felide-constructors |
5498f011 | 587 | C++ ObjC++ Var(flag_elide_constructors) Init(1) |
fef3106c NB |
588 | |
589 | fenforce-eh-specs | |
5498f011 | 590 | C++ ObjC++ Var(flag_enforce_eh_specs) Init(1) |
bae92bf3 | 591 | Generate code to check exception specifications |
fef3106c NB |
592 | |
593 | fenum-int-equiv | |
594 | C++ ObjC++ | |
595 | ||
e6cc3a24 ZW |
596 | fexec-charset= |
597 | C ObjC C++ ObjC++ Joined RejectNegative | |
72de27ea | 598 | -fexec-charset=<cset> Convert all strings and character constants to character set <cset> |
e6cc3a24 | 599 | |
af15a2fe JM |
600 | fextended-identifiers |
601 | C ObjC C++ ObjC++ | |
602 | Permit universal character names (\\u and \\U) in identifiers | |
603 | ||
16dd5cfe EC |
604 | finput-charset= |
605 | C ObjC C++ ObjC++ Joined RejectNegative | |
c85ce869 | 606 | -finput-charset=<cset> Specify the default character set for source files |
16dd5cfe EC |
607 | |
608 | ||
fef3106c NB |
609 | fexternal-templates |
610 | C++ ObjC++ | |
611 | ||
fef3106c | 612 | ffor-scope |
5498f011 | 613 | C++ ObjC++ Var(flag_new_for_scope) Init(1) |
bae92bf3 | 614 | Scope of for-init-statement variables is local to the loop |
fef3106c NB |
615 | |
616 | ffreestanding | |
820b51ae | 617 | C ObjC C++ ObjC++ |
5a170a05 | 618 | Do not assume that standard C libraries and \"main\" exist |
fef3106c NB |
619 | |
620 | fgnu-keywords | |
5498f011 | 621 | C++ ObjC++ Var(flag_no_gnu_keywords, 0) |
bae92bf3 | 622 | Recognize GNU-defined keywords |
fef3106c NB |
623 | |
624 | fgnu-runtime | |
625 | ObjC ObjC++ | |
f2ac9964 | 626 | Generate code for GNU runtime environment |
fef3106c | 627 | |
da1c7394 | 628 | fgnu89-inline |
2cbac420 | 629 | C ObjC Var(flag_gnu89_inline) Init(-1) |
da1c7394 ILT |
630 | Use traditional GNU semantics for inline functions |
631 | ||
fef3106c NB |
632 | fguiding-decls |
633 | C++ ObjC++ | |
634 | ||
635 | fhandle-exceptions | |
c662432e | 636 | C++ ObjC++ Optimization |
fef3106c NB |
637 | |
638 | fhonor-std | |
639 | C++ ObjC++ | |
640 | ||
641 | fhosted | |
642 | C ObjC | |
5a170a05 | 643 | Assume normal C execution environment |
fef3106c NB |
644 | |
645 | fhuge-objects | |
646 | C++ ObjC++ | |
bae92bf3 | 647 | Enable support for huge objects |
fef3106c NB |
648 | |
649 | fimplement-inlines | |
5498f011 | 650 | C++ ObjC++ Var(flag_implement_inlines) Init(1) |
bae92bf3 | 651 | Export functions even if they can be inlined |
fef3106c NB |
652 | |
653 | fimplicit-inline-templates | |
5498f011 | 654 | C++ ObjC++ Var(flag_implicit_inline_templates) Init(1) |
bae92bf3 | 655 | Emit implicit instantiations of inline templates |
fef3106c NB |
656 | |
657 | fimplicit-templates | |
5498f011 | 658 | C++ ObjC++ Var(flag_implicit_templates) Init(1) |
bae92bf3 | 659 | Emit implicit instantiations of templates |
fef3106c | 660 | |
d63d5d0c | 661 | ffriend-injection |
2cbac420 | 662 | C++ ObjC++ Var(flag_friend_injection) |
d63d5d0c ILT |
663 | Inject friend functions into enclosing namespace |
664 | ||
fef3106c NB |
665 | flabels-ok |
666 | C++ ObjC++ | |
667 | ||
00c8e9f6 | 668 | flax-vector-conversions |
5498f011 | 669 | C ObjC C++ ObjC++ Var(flag_lax_vector_conversions) |
00c8e9f6 MS |
670 | Allow implicit conversions between vectors with differing numbers of subparts and/or differing element types. |
671 | ||
fef3106c | 672 | fms-extensions |
5498f011 | 673 | C ObjC C++ ObjC++ Var(flag_ms_extensions) |
bae92bf3 | 674 | Don't warn about uses of Microsoft extensions |
fef3106c NB |
675 | |
676 | fname-mangling-version- | |
677 | C++ ObjC++ Joined | |
678 | ||
679 | fnew-abi | |
680 | C++ ObjC++ | |
681 | ||
682 | fnext-runtime | |
683 | ObjC ObjC++ | |
264fa2db ZL |
684 | Generate code for NeXT (Apple Mac OS X) runtime environment |
685 | ||
686 | fnil-receivers | |
5498f011 | 687 | ObjC ObjC++ Var(flag_nil_receivers) Init(1) |
264fa2db | 688 | Assume that receivers of Objective-C messages may be nil |
fef3106c NB |
689 | |
690 | fnonansi-builtins | |
5498f011 | 691 | C++ ObjC++ Var(flag_no_nonansi_builtin, 0) |
fef3106c NB |
692 | |
693 | fnonnull-objects | |
694 | C++ ObjC++ | |
695 | ||
9feb3d6a JM |
696 | fnothrow-opt |
697 | C++ ObjC++ Optimization Var(flag_nothrow_opt) | |
698 | Treat a throw() exception specification as noexcept to improve code size | |
699 | ||
6e955430 ZL |
700 | ; Generate special '- .cxx_construct' and '- .cxx_destruct' methods |
701 | ; to initialize any non-POD ivars in Objective-C++ classes. | |
702 | fobjc-call-cxx-cdtors | |
703 | ObjC++ Var(flag_objc_call_cxx_cdtors) | |
704 | Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed | |
705 | ||
706 | fobjc-direct-dispatch | |
707 | ObjC ObjC++ Var(flag_objc_direct_dispatch) | |
708 | Allow fast jumps to the message dispatcher | |
709 | ||
710 | ; Nonzero means that we will allow new ObjC exception syntax (@throw, | |
711 | ; @try, etc.) in source code. | |
264fa2db | 712 | fobjc-exceptions |
6e955430 | 713 | ObjC ObjC++ Var(flag_objc_exceptions) |
264fa2db ZL |
714 | Enable Objective-C exception and synchronization syntax |
715 | ||
6e955430 ZL |
716 | fobjc-gc |
717 | ObjC ObjC++ Var(flag_objc_gc) | |
718 | Enable garbage collection (GC) in Objective-C/Objective-C++ programs | |
719 | ||
720 | ; Nonzero means that we generate NeXT setjmp based exceptions. | |
093c7153 | 721 | fobjc-sjlj-exceptions |
6e955430 | 722 | ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1) |
093c7153 RH |
723 | Enable Objective-C setjmp exception handling runtime |
724 | ||
953ff289 DN |
725 | fopenmp |
726 | C ObjC C++ ObjC++ Var(flag_openmp) | |
9a0f3e86 | 727 | Enable OpenMP (implies -frecursive in Fortran) |
953ff289 | 728 | |
fef3106c NB |
729 | foperator-names |
730 | C++ ObjC++ | |
1cbc62c0 | 731 | Recognize C++ keywords like \"compl\" and \"xor\" |
fef3106c NB |
732 | |
733 | foptional-diags | |
734 | C++ ObjC++ | |
5498f011 | 735 | Does nothing. Preserved for backward compatibility. |
fef3106c NB |
736 | |
737 | fpch-deps | |
738 | C ObjC C++ ObjC++ | |
739 | ||
c0d578e6 GK |
740 | fpch-preprocess |
741 | C ObjC C++ ObjC++ | |
742 | Look for and use PCH files even when preprocessing | |
743 | ||
fef3106c NB |
744 | fpermissive |
745 | C++ ObjC++ | |
bae92bf3 | 746 | Downgrade conformance errors to warnings |
fef3106c NB |
747 | |
748 | fpreprocessed | |
749 | C ObjC C++ ObjC++ | |
72de27ea | 750 | Treat the input file as already preprocessed |
fef3106c | 751 | |
6ea2bd47 | 752 | fpretty-templates |
5498f011 | 753 | C++ ObjC++ Var(flag_pretty_templates) Init(1) |
6ea2bd47 JM |
754 | -fno-pretty-templates Do not pretty-print template specializations as the template signature followed by the arguments |
755 | ||
264fa2db | 756 | freplace-objc-classes |
5498f011 | 757 | ObjC ObjC++ Var(flag_replace_objc_classes) |
264fa2db ZL |
758 | Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime |
759 | ||
fef3106c NB |
760 | frepo |
761 | C++ ObjC++ | |
bae92bf3 | 762 | Enable automatic template instantiation |
fef3106c NB |
763 | |
764 | frtti | |
5498f011 | 765 | C++ ObjC++ Optimization Var(flag_rtti) Init(1) |
bae92bf3 | 766 | Generate run time type descriptor information |
fef3106c NB |
767 | |
768 | fshort-double | |
5498f011 | 769 | C ObjC C++ ObjC++ Optimization Var(flag_short_double) |
5a170a05 | 770 | Use the same size for double as for float |
fef3106c NB |
771 | |
772 | fshort-enums | |
5498f011 | 773 | C ObjC C++ ObjC++ Optimization Var(flag_short_enums) |
5a170a05 | 774 | Use the narrowest integer type possible for enumeration types |
fef3106c NB |
775 | |
776 | fshort-wchar | |
5498f011 | 777 | C ObjC C++ ObjC++ Optimization Var(flag_short_wchar) |
5a170a05 | 778 | Force the underlying type for \"wchar_t\" to be \"unsigned short\" |
fef3106c | 779 | |
fef3106c | 780 | fsigned-bitfields |
5498f011 | 781 | C ObjC C++ ObjC++ Var(flag_signed_bitfields) Init(1) |
5a170a05 | 782 | When \"signed\" or \"unsigned\" is not given make the bitfield signed |
fef3106c NB |
783 | |
784 | fsigned-char | |
5498f011 | 785 | C ObjC C++ ObjC++ LTO Var(flag_signed_char) |
5a170a05 | 786 | Make \"char\" signed by default |
fef3106c NB |
787 | |
788 | fsquangle | |
789 | C++ ObjC++ | |
790 | ||
791 | fstats | |
5498f011 | 792 | C++ ObjC++ Var(flag_detailed_statistics) |
bae92bf3 | 793 | Display statistics accumulated during compilation |
fef3106c | 794 | |
cbb4feb3 JM |
795 | fstrict-enums |
796 | C++ ObjC++ Optimization Var(flag_strict_enums) | |
797 | Assume that values of enumeration type are always within the minimum range of that type | |
798 | ||
fef3106c NB |
799 | fstrict-prototype |
800 | C++ ObjC++ | |
801 | ||
802 | ftabstop= | |
7b086b11 | 803 | C ObjC C++ ObjC++ Joined RejectNegative UInteger |
72de27ea | 804 | -ftabstop=<number> Distance between tab stops for column reporting |
fef3106c NB |
805 | |
806 | ftemplate-depth- | |
124e0d27 MLI |
807 | C++ ObjC++ Joined RejectNegative UInteger Undocumented |
808 | ||
809 | ftemplate-depth= | |
c22cacf3 | 810 | C++ ObjC++ Joined RejectNegative UInteger |
124e0d27 | 811 | -ftemplate-depth=<number> Specify maximum template instantiation depth |
fef3106c NB |
812 | |
813 | fthis-is-variable | |
814 | C++ ObjC++ | |
815 | ||
40aac948 | 816 | fthreadsafe-statics |
5498f011 | 817 | C++ ObjC++ Optimization Var(flag_threadsafe_statics) Init(1) |
c85ce869 | 818 | -fno-threadsafe-statics Do not generate thread-safe code for initializing local statics |
40aac948 | 819 | |
fef3106c | 820 | funsigned-bitfields |
5498f011 | 821 | C ObjC C++ ObjC++ Var(flag_signed_bitfields, 0) VarExists |
5a170a05 | 822 | When \"signed\" or \"unsigned\" is not given make the bitfield unsigned |
fef3106c NB |
823 | |
824 | funsigned-char | |
5498f011 | 825 | C ObjC C++ ObjC++ LTO Var(flag_signed_char, 0) VarExists |
5a170a05 | 826 | Make \"char\" unsigned by default |
fef3106c NB |
827 | |
828 | fuse-cxa-atexit | |
5498f011 | 829 | C++ ObjC++ Var(flag_use_cxa_atexit) Init(DEFAULT_USE_CXA_ATEXIT) |
bae92bf3 | 830 | Use __cxa_atexit to register destructors |
fef3106c | 831 | |
c7b5e395 | 832 | fuse-cxa-get-exception-ptr |
5498f011 | 833 | C++ ObjC++ Var(flag_use_cxa_get_exception_ptr) Init(2) |
c7b5e395 GK |
834 | Use __cxa_get_exception_ptr in exception handling |
835 | ||
d7afec4b | 836 | fvisibility-inlines-hidden |
d0b07283 | 837 | C++ ObjC++ |
d7afec4b ND |
838 | Marks all inlined methods as having hidden visibility |
839 | ||
ddbfd28d GK |
840 | fvisibility-ms-compat |
841 | C++ ObjC++ Var(flag_visibility_ms_compat) | |
842 | Changes visibility to match Microsoft Visual Studio by default | |
843 | ||
fef3106c NB |
844 | fvtable-gc |
845 | C++ ObjC++ | |
bae92bf3 | 846 | Discard unused virtual functions |
fef3106c NB |
847 | |
848 | fvtable-thunks | |
849 | C++ ObjC++ | |
bae92bf3 | 850 | Implement vtables using thunks |
fef3106c NB |
851 | |
852 | fweak | |
5498f011 | 853 | C++ ObjC++ Var(flag_weak) Init(1) |
bae92bf3 | 854 | Emit common-like symbols as weak symbols |
fef3106c | 855 | |
e6cc3a24 ZW |
856 | fwide-exec-charset= |
857 | C ObjC C++ ObjC++ Joined RejectNegative | |
72de27ea | 858 | -fwide-exec-charset=<cset> Convert all wide strings and character constants to character set <cset> |
e6cc3a24 | 859 | |
b20d9f0c | 860 | fworking-directory |
5498f011 | 861 | C ObjC C++ ObjC++ Var(flag_working_directory) Init(-1) |
b20d9f0c AO |
862 | Generate a #line directive pointing at the current working directory |
863 | ||
fef3106c NB |
864 | fxref |
865 | C++ ObjC++ | |
bae92bf3 | 866 | Emit cross referencing information |
fef3106c | 867 | |
264fa2db | 868 | fzero-link |
5498f011 | 869 | ObjC ObjC++ Var(flag_zero_link) |
264fa2db ZL |
870 | Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode |
871 | ||
fef3106c | 872 | gen-decls |
5498f011 | 873 | ObjC ObjC++ Var(flag_gen_declaration) |
f2ac9964 | 874 | Dump declarations to a .decl file |
fef3106c | 875 | |
39ef6592 LC |
876 | femit-struct-debug-baseonly |
877 | C ObjC C++ ObjC++ | |
878 | -femit-struct-debug-baseonly Aggressive reduced debug info for structs | |
879 | ||
880 | femit-struct-debug-reduced | |
881 | C ObjC C++ ObjC++ | |
882 | -femit-struct-debug-reduced Conservative reduced debug info for structs | |
883 | ||
884 | femit-struct-debug-detailed= | |
885 | C ObjC C++ ObjC++ Joined | |
886 | -femit-struct-debug-detailed=<spec-list> Detailed reduced debug info for structs | |
887 | ||
fef3106c | 888 | idirafter |
61ff2bdc | 889 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs) |
72de27ea | 890 | -idirafter <dir> Add <dir> to the end of the system include path |
fef3106c NB |
891 | |
892 | imacros | |
61ff2bdc | 893 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs) |
72de27ea | 894 | -imacros <file> Accept definition of macros in <file> |
fef3106c | 895 | |
2b6dd222 JM |
896 | imultilib |
897 | C ObjC C++ ObjC++ Joined Separate | |
f94e1d66 | 898 | -imultilib <dir> Set <dir> to be the multilib include subdirectory |
2b6dd222 | 899 | |
fef3106c | 900 | include |
61ff2bdc | 901 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing filename after %qs) |
72de27ea | 902 | -include <file> Include the contents of <file> before other files |
fef3106c NB |
903 | |
904 | iprefix | |
905 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 906 | -iprefix <path> Specify <path> as a prefix for next two options |
fef3106c NB |
907 | |
908 | isysroot | |
61ff2bdc | 909 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs) |
72de27ea | 910 | -isysroot <dir> Set <dir> to be the system root directory |
fef3106c NB |
911 | |
912 | isystem | |
61ff2bdc | 913 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs) |
72de27ea | 914 | -isystem <dir> Add <dir> to the start of the system include path |
fef3106c | 915 | |
4bed3787 | 916 | iquote |
61ff2bdc | 917 | C ObjC C++ ObjC++ Joined Separate MissingArgError(missing path after %qs) |
4bed3787 MS |
918 | -iquote <dir> Add <dir> to the end of the quote include path |
919 | ||
fef3106c NB |
920 | iwithprefix |
921 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 922 | -iwithprefix <dir> Add <dir> to the end of the system include path |
fef3106c NB |
923 | |
924 | iwithprefixbefore | |
925 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 926 | -iwithprefixbefore <dir> Add <dir> to the end of the main include path |
fef3106c NB |
927 | |
928 | lang-asm | |
603349bf | 929 | C Undocumented RejectDriver |
fef3106c | 930 | |
fef3106c NB |
931 | nostdinc |
932 | C ObjC C++ ObjC++ | |
72de27ea | 933 | Do not search standard system include directories (those specified with -isystem will still be used) |
fef3106c NB |
934 | |
935 | nostdinc++ | |
72de27ea NB |
936 | C++ ObjC++ |
937 | Do not search standard system include directories for C++ | |
fef3106c NB |
938 | |
939 | o | |
940 | C ObjC C++ ObjC++ Joined Separate | |
72de27ea | 941 | ; Documented in common.opt |
fef3106c NB |
942 | |
943 | pedantic | |
944 | C ObjC C++ ObjC++ | |
72de27ea | 945 | ; Documented in common.opt |
fef3106c NB |
946 | |
947 | pedantic-errors | |
948 | C ObjC C++ ObjC++ | |
72de27ea | 949 | ; Documented in common.opt |
fef3106c NB |
950 | |
951 | print-objc-runtime-info | |
952 | ObjC ObjC++ | |
f2ac9964 | 953 | Generate C header of platform-specific features |
fef3106c NB |
954 | |
955 | remap | |
956 | C ObjC C++ ObjC++ | |
72de27ea | 957 | Remap file names when including files |
fef3106c NB |
958 | |
959 | std=c++98 | |
960 | C++ ObjC++ | |
72de27ea | 961 | Conform to the ISO 1998 C++ standard |
fef3106c | 962 | |
966541e3 DG |
963 | std=c++0x |
964 | C++ ObjC++ | |
965 | Conform to the ISO 1998 C++ standard, with extensions that are likely to | |
966 | become a part of the upcoming ISO C++ standard, dubbed C++0x. Note that the | |
967 | extensions enabled by this mode are experimental and may be removed in | |
968 | future releases of GCC. | |
969 | ||
2778d766 JM |
970 | std=c1x |
971 | C ObjC | |
972 | Conform to the ISO 201X C standard draft (experimental and incomplete support) | |
973 | ||
fef3106c NB |
974 | std=c89 |
975 | C ObjC | |
72de27ea | 976 | Conform to the ISO 1990 C standard |
fef3106c | 977 | |
7e1542b9 MLI |
978 | std=c90 |
979 | C ObjC | |
980 | Conform to the ISO 1990 C standard | |
981 | ||
fef3106c NB |
982 | std=c99 |
983 | C ObjC | |
72de27ea | 984 | Conform to the ISO 1999 C standard |
fef3106c NB |
985 | |
986 | std=c9x | |
987 | C ObjC | |
72de27ea | 988 | Deprecated in favor of -std=c99 |
fef3106c NB |
989 | |
990 | std=gnu++98 | |
991 | C++ ObjC++ | |
72de27ea | 992 | Conform to the ISO 1998 C++ standard with GNU extensions |
fef3106c | 993 | |
966541e3 DG |
994 | std=gnu++0x |
995 | C++ ObjC++ | |
996 | Conform to the ISO 1998 C++ standard, with GNU extensions and | |
997 | extensions that are likely to become a part of the upcoming ISO C++ | |
998 | standard, dubbed C++0x. Note that the extensions enabled by this mode | |
999 | are experimental and may be removed in future releases of GCC. | |
1000 | ||
2778d766 JM |
1001 | std=gnu1x |
1002 | C ObjC | |
1003 | Conform to the ISO 201X C standard draft with GNU extensions (experimental and incomplete support) | |
1004 | ||
fef3106c NB |
1005 | std=gnu89 |
1006 | C ObjC | |
72de27ea | 1007 | Conform to the ISO 1990 C standard with GNU extensions |
fef3106c | 1008 | |
7e1542b9 MLI |
1009 | std=gnu90 |
1010 | C ObjC | |
1011 | Conform to the ISO 1990 C standard with GNU extensions | |
1012 | ||
fef3106c NB |
1013 | std=gnu99 |
1014 | C ObjC | |
72de27ea | 1015 | Conform to the ISO 1999 C standard with GNU extensions |
fef3106c NB |
1016 | |
1017 | std=gnu9x | |
1018 | C ObjC | |
72de27ea | 1019 | Deprecated in favor of -std=gnu99 |
fef3106c NB |
1020 | |
1021 | std=iso9899:1990 | |
1022 | C ObjC | |
3a1e400e | 1023 | Conform to the ISO 1990 C standard |
fef3106c NB |
1024 | |
1025 | std=iso9899:199409 | |
1026 | C ObjC | |
72de27ea | 1027 | Conform to the ISO 1990 C standard as amended in 1994 |
fef3106c NB |
1028 | |
1029 | std=iso9899:1999 | |
1030 | C ObjC | |
3a1e400e | 1031 | Conform to the ISO 1999 C standard |
fef3106c NB |
1032 | |
1033 | std=iso9899:199x | |
1034 | C ObjC | |
3a1e400e | 1035 | Deprecated in favor of -std=iso9899:1999 |
fef3106c NB |
1036 | |
1037 | traditional-cpp | |
1038 | C ObjC C++ ObjC++ | |
72de27ea | 1039 | Enable traditional preprocessing |
fef3106c NB |
1040 | |
1041 | trigraphs | |
1042 | C ObjC C++ ObjC++ | |
72de27ea | 1043 | -trigraphs Support ISO C trigraphs |
fef3106c NB |
1044 | |
1045 | undef | |
5498f011 | 1046 | C ObjC C++ ObjC++ Var(flag_undef) |
72de27ea | 1047 | Do not predefine system-specific and GCC-specific macros |
fef3106c NB |
1048 | |
1049 | v | |
b3eaaf1a | 1050 | Common C ObjC C++ ObjC++ |
72de27ea | 1051 | Enable verbose output |
fef3106c NB |
1052 | |
1053 | w | |
1054 | C ObjC C++ ObjC++ | |
72de27ea | 1055 | ; Documented in common.opt |
e11a4ae5 NB |
1056 | |
1057 | ; This comment is to ensure we retain the blank line above. |