]>
Commit | Line | Data |
---|---|---|
fef3106c NB |
1 | ; Options for the C, ObjC, C++ and ObjC++ front ends. |
2 | ; Copyright (C) 2003 Free Software Foundation, Inc. | |
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 | |
47 | ; what type of argument a switch takes, for example. | |
48 | ||
fef3106c NB |
49 | ; Comments can appear on their own line anwhere in the file, preceded |
50 | ; by a semicolon. Whitespace is permitted before the semicolon. | |
51 | ||
52 | ; For each switch XXX below, an enumeration constant is created by the | |
53 | ; script opts.sh spelt OPT_XXX, but with all non-alphanumeric | |
54 | ; characters replaced with an underscore. | |
55 | ||
56 | ; Please try to keep this file in ASCII collating order. | |
57 | ||
be43ab4e NB |
58 | Language |
59 | C | |
60 | ||
61 | Language | |
62 | ObjC | |
63 | ||
64 | Language | |
65 | C++ | |
66 | ||
67 | Language | |
68 | ObjC++ | |
69 | ||
fef3106c NB |
70 | -help |
71 | C ObjC C++ ObjC++ | |
72 | ||
73 | -output-pch= | |
74 | C ObjC C++ ObjC++ Joined Separate | |
75 | ||
76 | A | |
77 | C ObjC C++ ObjC++ Joined Separate | |
78 | ||
79 | C | |
80 | C ObjC C++ ObjC++ | |
81 | ||
82 | CC | |
83 | C ObjC C++ ObjC++ | |
84 | ||
85 | D | |
86 | C ObjC C++ ObjC++ Joined Separate | |
87 | ||
88 | E | |
89 | C ObjC C++ ObjC++ | |
90 | ||
91 | H | |
92 | C ObjC C++ ObjC++ | |
93 | ||
94 | I | |
95 | C ObjC C++ ObjC++ Joined Separate | |
96 | ||
97 | M | |
98 | C ObjC C++ ObjC++ | |
99 | ||
100 | MD | |
101 | C ObjC C++ ObjC++ Separate | |
102 | ||
103 | MF | |
104 | C ObjC C++ ObjC++ Joined Separate | |
105 | ||
106 | MG | |
107 | C ObjC C++ ObjC++ | |
108 | ||
109 | MM | |
110 | C ObjC C++ ObjC++ | |
111 | ||
112 | MMD | |
113 | C ObjC C++ ObjC++ Separate | |
114 | ||
115 | MP | |
116 | C ObjC C++ ObjC++ | |
117 | ||
118 | MQ | |
119 | C ObjC C++ ObjC++ Joined Separate | |
120 | ||
121 | MT | |
122 | C ObjC C++ ObjC++ Joined Separate | |
123 | ||
124 | P | |
125 | C ObjC C++ ObjC++ | |
126 | ||
127 | U | |
128 | C ObjC C++ ObjC++ Joined Separate | |
129 | ||
130 | Wabi | |
131 | C++ ObjC++ | |
132 | ||
133 | Wall | |
134 | C ObjC C++ ObjC++ | |
135 | ||
136 | Wbad-function-cast | |
137 | C ObjC | |
138 | ||
139 | Wcast-qual | |
140 | C ObjC C++ ObjC++ | |
141 | ||
142 | Wchar-subscripts | |
143 | C ObjC C++ ObjC++ | |
144 | ||
145 | Wcomment | |
146 | C ObjC C++ ObjC++ | |
147 | ||
148 | Wcomments | |
149 | C ObjC C++ ObjC++ | |
150 | ||
151 | Wconversion | |
152 | C ObjC C++ ObjC++ | |
153 | ||
154 | Wctor-dtor-privacy | |
155 | C++ ObjC++ | |
156 | ||
157 | Wdeprecated | |
158 | C++ ObjC++ | |
159 | ||
160 | Wdiv-by-zero | |
161 | C ObjC | |
162 | ||
163 | Weffc++ | |
164 | C++ ObjC++ | |
165 | ||
166 | Wendif-labels | |
167 | C ObjC C++ ObjC++ | |
168 | ||
169 | Werror | |
170 | C ObjC C++ ObjC++ | |
171 | ||
172 | Werror-implicit-function-declaration | |
c83857ff | 173 | C ObjC RejectNegative |
fef3106c NB |
174 | |
175 | Wfloat-equal | |
176 | C ObjC C++ ObjC++ | |
177 | ||
178 | Wformat | |
179 | C ObjC C++ ObjC++ | |
180 | ||
181 | Wformat-extra-args | |
182 | C ObjC C++ ObjC++ | |
183 | ||
184 | Wformat-nonliteral | |
185 | C ObjC C++ ObjC++ | |
186 | ||
187 | Wformat-security | |
188 | C ObjC C++ ObjC++ | |
189 | ||
190 | Wformat-y2k | |
191 | C ObjC C++ ObjC++ | |
192 | ||
193 | Wformat-zero-length | |
194 | C ObjC | |
195 | ||
196 | Wformat= | |
197 | C ObjC C++ ObjC++ Joined | |
198 | ||
199 | Wimplicit | |
200 | C ObjC C++ ObjC++ | |
201 | ||
202 | Wimplicit-function-declaration | |
203 | C ObjC | |
204 | ||
205 | Wimplicit-int | |
206 | C ObjC | |
207 | ||
208 | Wimport | |
209 | C ObjC C++ ObjC++ | |
210 | ||
211 | Winvalid-offsetof | |
212 | C++ ObjC++ | |
213 | ||
214 | Winvalid-pch | |
215 | C ObjC C++ ObjC++ | |
216 | ||
217 | Wlong-long | |
218 | C ObjC C++ ObjC++ | |
219 | ||
220 | Wmain | |
221 | C ObjC | |
222 | ||
223 | Wmissing-braces | |
224 | C ObjC C++ ObjC++ | |
225 | ||
226 | Wmissing-declarations | |
227 | C ObjC | |
228 | ||
229 | Wmissing-format-attribute | |
230 | C ObjC C++ ObjC++ | |
231 | ||
232 | Wmissing-prototypes | |
233 | C ObjC | |
234 | ||
235 | Wmultichar | |
236 | C ObjC C++ ObjC++ | |
237 | ||
238 | Wnested-externs | |
239 | C ObjC | |
240 | ||
241 | Wnon-template-friend | |
242 | C++ ObjC++ | |
243 | ||
244 | Wnon-virtual-dtor | |
245 | C++ ObjC++ | |
246 | ||
247 | Wnonnull | |
248 | C ObjC | |
249 | ||
250 | Wold-style-cast | |
251 | C++ ObjC++ | |
252 | ||
253 | Woverloaded-virtual | |
254 | C++ ObjC++ | |
255 | ||
256 | Wparentheses | |
257 | C ObjC C++ ObjC++ | |
258 | ||
259 | Wpmf-conversions | |
260 | C++ ObjC++ | |
261 | ||
262 | Wpointer-arith | |
263 | C ObjC C++ ObjC++ | |
264 | ||
265 | Wprotocol | |
266 | ObjC ObjC++ | |
267 | ||
268 | Wredundant-decls | |
269 | C ObjC C++ ObjC++ | |
270 | ||
271 | Wreorder | |
272 | C++ ObjC++ | |
273 | ||
274 | Wreturn-type | |
275 | C ObjC C++ ObjC++ | |
276 | ||
277 | Wselector | |
278 | ObjC ObjC++ | |
279 | ||
280 | Wsequence-point | |
281 | C ObjC | |
282 | ||
283 | Wsign-compare | |
284 | C ObjC C++ ObjC++ | |
285 | ||
286 | Wsign-promo | |
287 | C++ ObjC++ | |
288 | ||
289 | Wstrict-prototypes | |
290 | C ObjC | |
291 | ||
292 | Wsynth | |
293 | C++ ObjC++ | |
294 | ||
295 | Wsystem-headers | |
296 | C ObjC C++ ObjC++ | |
297 | ||
298 | Wtraditional | |
299 | C ObjC | |
300 | ||
301 | Wtrigraphs | |
302 | C ObjC C++ ObjC++ | |
303 | ||
304 | Wundeclared-selector | |
305 | ObjC ObjC++ | |
306 | ||
307 | Wundef | |
308 | C ObjC C++ ObjC++ | |
309 | ||
310 | Wunknown-pragmas | |
311 | C ObjC C++ ObjC++ | |
312 | ||
313 | Wunused-macros | |
314 | C ObjC C++ ObjC++ | |
315 | ||
316 | Wwrite-strings | |
317 | C ObjC C++ ObjC++ | |
318 | ||
319 | ansi | |
320 | C ObjC C++ ObjC++ | |
321 | ||
322 | d | |
323 | C ObjC C++ ObjC++ Joined | |
324 | ||
325 | fabi-version= | |
7b086b11 | 326 | C++ ObjC++ Joined UInteger |
fef3106c NB |
327 | |
328 | faccess-control | |
329 | C++ ObjC++ | |
330 | ||
331 | fall-virtual | |
332 | C++ ObjC++ | |
333 | ||
334 | falt-external-templates | |
335 | C++ ObjC++ | |
336 | ||
337 | fasm | |
338 | C ObjC C++ ObjC++ | |
339 | ||
340 | fbuiltin | |
341 | C ObjC C++ ObjC++ | |
342 | ||
343 | fbuiltin- | |
344 | C ObjC C++ ObjC++ Joined | |
345 | ||
346 | fcheck-new | |
347 | C++ ObjC++ | |
348 | ||
349 | fcond-mismatch | |
350 | C ObjC C++ ObjC++ | |
351 | ||
352 | fconserve-space | |
353 | C++ ObjC++ | |
354 | ||
355 | fconst-strings | |
356 | C++ ObjC++ | |
357 | ||
358 | fconstant-string-class= | |
359 | ObjC ObjC++ Joined | |
360 | ||
361 | fdefault-inline | |
362 | C++ ObjC++ | |
363 | ||
364 | fdollars-in-identifiers | |
365 | C ObjC C++ ObjC++ | |
366 | ||
367 | fdump- | |
c83857ff | 368 | C ObjC C++ ObjC++ Joined RejectNegative |
fef3106c NB |
369 | |
370 | felide-constructors | |
371 | C++ ObjC++ | |
372 | ||
373 | fenforce-eh-specs | |
374 | C++ ObjC++ | |
375 | ||
376 | fenum-int-equiv | |
377 | C++ ObjC++ | |
378 | ||
e6cc3a24 ZW |
379 | fexec-charset= |
380 | C ObjC C++ ObjC++ Joined RejectNegative | |
381 | ||
fef3106c NB |
382 | fexternal-templates |
383 | C++ ObjC++ | |
384 | ||
385 | ffixed-form | |
386 | C ObjC | |
387 | ||
388 | ffixed-line-length- | |
389 | C ObjC Joined | |
390 | ||
391 | ffor-scope | |
392 | C++ ObjC++ | |
393 | ||
394 | ffreestanding | |
395 | C ObjC | |
396 | ||
397 | fgnu-keywords | |
398 | C++ ObjC++ | |
399 | ||
400 | fgnu-runtime | |
401 | ObjC ObjC++ | |
402 | ||
403 | fguiding-decls | |
404 | C++ ObjC++ | |
405 | ||
406 | fhandle-exceptions | |
407 | C++ ObjC++ | |
408 | ||
409 | fhonor-std | |
410 | C++ ObjC++ | |
411 | ||
412 | fhosted | |
413 | C ObjC | |
414 | ||
415 | fhuge-objects | |
416 | C++ ObjC++ | |
417 | ||
418 | fimplement-inlines | |
419 | C++ ObjC++ | |
420 | ||
421 | fimplicit-inline-templates | |
422 | C++ ObjC++ | |
423 | ||
424 | fimplicit-templates | |
425 | C++ ObjC++ | |
426 | ||
427 | flabels-ok | |
428 | C++ ObjC++ | |
429 | ||
430 | fms-extensions | |
431 | C ObjC C++ ObjC++ | |
432 | ||
433 | fname-mangling-version- | |
434 | C++ ObjC++ Joined | |
435 | ||
436 | fnew-abi | |
437 | C++ ObjC++ | |
438 | ||
439 | fnext-runtime | |
440 | ObjC ObjC++ | |
441 | ||
442 | fnonansi-builtins | |
443 | C++ ObjC++ | |
444 | ||
445 | fnonnull-objects | |
446 | C++ ObjC++ | |
447 | ||
448 | foperator-names | |
449 | C++ ObjC++ | |
450 | ||
451 | foptional-diags | |
452 | C++ ObjC++ | |
453 | ||
454 | fpch-deps | |
455 | C ObjC C++ ObjC++ | |
456 | ||
457 | fpermissive | |
458 | C++ ObjC++ | |
459 | ||
460 | fpreprocessed | |
461 | C ObjC C++ ObjC++ | |
462 | ||
463 | frepo | |
464 | C++ ObjC++ | |
465 | ||
466 | frtti | |
467 | C++ ObjC++ | |
468 | ||
469 | fshort-double | |
470 | C ObjC C++ ObjC++ | |
471 | ||
472 | fshort-enums | |
473 | C ObjC C++ ObjC++ | |
474 | ||
475 | fshort-wchar | |
476 | C ObjC C++ ObjC++ | |
477 | ||
478 | fshow-column | |
479 | C ObjC C++ ObjC++ | |
480 | ||
481 | fsigned-bitfields | |
482 | C ObjC C++ ObjC++ | |
483 | ||
484 | fsigned-char | |
485 | C ObjC C++ ObjC++ | |
486 | ||
487 | fsquangle | |
488 | C++ ObjC++ | |
489 | ||
490 | fstats | |
491 | C++ ObjC++ | |
492 | ||
493 | fstrict-prototype | |
494 | C++ ObjC++ | |
495 | ||
496 | ftabstop= | |
7b086b11 | 497 | C ObjC C++ ObjC++ Joined RejectNegative UInteger |
fef3106c NB |
498 | |
499 | ftemplate-depth- | |
7b086b11 | 500 | C++ ObjC++ Joined RejectNegative UInteger |
fef3106c NB |
501 | |
502 | fthis-is-variable | |
503 | C++ ObjC++ | |
504 | ||
505 | funsigned-bitfields | |
506 | C ObjC C++ ObjC++ | |
507 | ||
508 | funsigned-char | |
509 | C ObjC C++ ObjC++ | |
510 | ||
511 | fuse-cxa-atexit | |
512 | C++ ObjC++ | |
513 | ||
514 | fvtable-gc | |
515 | C++ ObjC++ | |
516 | ||
517 | fvtable-thunks | |
518 | C++ ObjC++ | |
519 | ||
520 | fweak | |
521 | C++ ObjC++ | |
522 | ||
e6cc3a24 ZW |
523 | fwide-exec-charset= |
524 | C ObjC C++ ObjC++ Joined RejectNegative | |
525 | ||
fef3106c NB |
526 | fxref |
527 | C++ ObjC++ | |
528 | ||
529 | gen-decls | |
530 | ObjC ObjC++ | |
531 | ||
532 | idirafter | |
533 | C ObjC C++ ObjC++ Joined Separate | |
534 | ||
535 | imacros | |
536 | C ObjC C++ ObjC++ Joined Separate | |
537 | ||
538 | include | |
539 | C ObjC C++ ObjC++ Joined Separate | |
540 | ||
541 | iprefix | |
542 | C ObjC C++ ObjC++ Joined Separate | |
543 | ||
544 | isysroot | |
545 | C ObjC C++ ObjC++ Joined Separate | |
546 | ||
547 | isystem | |
548 | C ObjC C++ ObjC++ Joined Separate | |
549 | ||
550 | iwithprefix | |
551 | C ObjC C++ ObjC++ Joined Separate | |
552 | ||
553 | iwithprefixbefore | |
554 | C ObjC C++ ObjC++ Joined Separate | |
555 | ||
556 | lang-asm | |
557 | C | |
558 | ||
559 | lang-objc | |
560 | C ObjC C++ ObjC++ | |
561 | ||
562 | nostdinc | |
563 | C ObjC C++ ObjC++ | |
564 | ||
565 | nostdinc++ | |
566 | C ObjC C++ ObjC++ | |
567 | ||
568 | o | |
569 | C ObjC C++ ObjC++ Joined Separate | |
570 | ||
571 | pedantic | |
572 | C ObjC C++ ObjC++ | |
573 | ||
574 | pedantic-errors | |
575 | C ObjC C++ ObjC++ | |
576 | ||
577 | print-objc-runtime-info | |
578 | ObjC ObjC++ | |
579 | ||
580 | remap | |
581 | C ObjC C++ ObjC++ | |
582 | ||
583 | std=c++98 | |
584 | C++ ObjC++ | |
585 | ||
586 | std=c89 | |
587 | C ObjC | |
588 | ||
589 | std=c99 | |
590 | C ObjC | |
591 | ||
592 | std=c9x | |
593 | C ObjC | |
594 | ||
595 | std=gnu++98 | |
596 | C++ ObjC++ | |
597 | ||
598 | std=gnu89 | |
599 | C ObjC | |
600 | ||
601 | std=gnu99 | |
602 | C ObjC | |
603 | ||
604 | std=gnu9x | |
605 | C ObjC | |
606 | ||
607 | std=iso9899:1990 | |
608 | C ObjC | |
609 | ||
610 | std=iso9899:199409 | |
611 | C ObjC | |
612 | ||
613 | std=iso9899:1999 | |
614 | C ObjC | |
615 | ||
616 | std=iso9899:199x | |
617 | C ObjC | |
618 | ||
619 | traditional-cpp | |
620 | C ObjC C++ ObjC++ | |
621 | ||
622 | trigraphs | |
623 | C ObjC C++ ObjC++ | |
624 | ||
625 | undef | |
626 | C ObjC C++ ObjC++ | |
627 | ||
628 | v | |
629 | C ObjC C++ ObjC++ | |
630 | ||
631 | w | |
632 | C ObjC C++ ObjC++ | |
e11a4ae5 NB |
633 | |
634 | ; This comment is to ensure we retain the blank line above. |