OSDN Git Service

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