1; Options for the C, ObjC, C++ and ObjC++ front ends.
2; Copyright (C) 2003, 2004, 2005, 2006 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, 51 Franklin Street, Fifth Floor, Boston, MA
19; 02110-1301, USA.
20
21; See the GCC internals manual for a description of this file's format.
22
23; $FreeBSD: stable/10/contrib/gcc/c.opt 259890 2013-12-25 21:59:56Z pfg $
24; Please try to keep this file in ASCII collating order.
25
26Language
27C
28
29Language
30ObjC
31
32Language
33C++
34
35Language
36ObjC++
37
38-output-pch=
39C ObjC C++ ObjC++ Joined Separate
40
41A
42C ObjC C++ ObjC++ Joined Separate
43-A<question>=<answer> Assert the <answer> to <question>. Putting '-' before <question> disables the <answer> to <question>
44
45C
46C ObjC C++ ObjC++
47Do not discard comments
48
49CC
50C ObjC C++ ObjC++
51Do not discard comments in macro expansions
52
53D
54C ObjC C++ ObjC++ Joined Separate
55-D<macro>[=<val>] Define a <macro> with <val> as its value. If just <macro> is given, <val> is taken to be 1
56
57E
58C ObjC C++ ObjC++ Undocumented
59
60F
61C ObjC C++ ObjC++ Joined Separate
62-F <dir> Add <dir> to the end of the main framework include path
63
64H
65C ObjC C++ ObjC++
66Print the name of header files as they are used
67
68I
69C ObjC C++ ObjC++ Joined Separate
70-I <dir> Add <dir> to the end of the main include path
71
72M
73C ObjC C++ ObjC++
74Generate make dependencies
75
76MD
77C ObjC C++ ObjC++ Separate
78Generate make dependencies and compile
79
80MF
81C ObjC C++ ObjC++ Joined Separate
82-MF <file> Write dependency output to the given file
83
84MG
85C ObjC C++ ObjC++
86Treat missing header files as generated files
87
88MM
89C ObjC C++ ObjC++
90Like -M but ignore system header files
91
92MMD
93C ObjC C++ ObjC++ Separate
94Like -MD but ignore system header files
95
96MP
97C ObjC C++ ObjC++
98Generate phony targets for all headers
99
100MQ
101C ObjC C++ ObjC++ Joined Separate
102-MQ <target> Add a MAKE-quoted target
103
104MT
105C ObjC C++ ObjC++ Joined Separate
106-MT <target> Add an unquoted target
107
108P
109C ObjC C++ ObjC++
110Do not generate #line directives
111
112U
113C ObjC C++ ObjC++ Joined Separate
114-U<macro> Undefine <macro>
115
116Wabi
117C++ ObjC++ Var(warn_abi)
118Warn about things that will change when compiling with an ABI-compliant compiler
119
120Waddress
121C ObjC C++ ObjC++ Var(warn_address)
122Warn about suspicious uses of memory addresses
123
124Wall
125C ObjC C++ ObjC++
126Enable most warning messages
127
128Wassign-intercept
129ObjC ObjC++ Var(warn_assign_intercept)
130Warn whenever an Objective-C assignment is being intercepted by the garbage collector
131
132Wbad-function-cast
133C ObjC Var(warn_bad_function_cast)
134Warn about casting functions to incompatible types
135
136Wc++-compat
137C ObjC Var(warn_cxx_compat)
138Warn about C constructs that are not in the common subset of C and C++
139
140
141Wcast-qual
142C ObjC C++ ObjC++ Var(warn_cast_qual)
143Warn about casts which discard qualifiers
144
145Wchar-subscripts
146C ObjC C++ ObjC++ Var(warn_char_subscripts)
147Warn about subscripts whose type is \"char\"
148
149Wcomment
150C ObjC C++ ObjC++
151Warn about possibly nested block comments, and C++ comments spanning more than one physical line
152
153Wcomments
154C ObjC C++ ObjC++
155Synonym for -Wcomment
156
157Wconversion
158C ObjC C++ ObjC++ Var(warn_conversion)
159Warn about possibly confusing type conversions
160
161Wctor-dtor-privacy
162C++ ObjC++ Var(warn_ctor_dtor_privacy)
163Warn when all constructors and destructors are private
164
165Wdeclaration-after-statement
166C ObjC Var(warn_declaration_after_statement)
167Warn when a declaration is found after a statement
168
169Wdeprecated
170C++ ObjC++ Var(warn_deprecated) Init(1)
171Warn about deprecated compiler features
172
173Wdiv-by-zero
174C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1)
175Warn about compile-time integer division by zero
176
177Weffc++
178C++ ObjC++ Var(warn_ecpp)
179Warn about violations of Effective C++ style rules
180
181Wendif-labels
182C ObjC C++ ObjC++
183Warn about stray tokens after #elif and #endif
184
185Werror
186C ObjC C++ ObjC++
187; Documented in common.opt
188
189Werror-implicit-function-declaration
190C ObjC RejectNegative
191Make implicit function declarations an error
192
193Wfloat-equal
194C ObjC C++ ObjC++ Var(warn_float_equal)
195Warn if testing floating point numbers for equality
196
197Wformat
198C ObjC C++ ObjC++
199Warn about printf/scanf/strftime/strfmon format string anomalies
200
201Wformat-extra-args
202C ObjC C++ ObjC++ Var(warn_format_extra_args)
203Warn if passing too many arguments to a function for its format string
204
205Wformat-nonliteral
206C ObjC C++ ObjC++ Var(warn_format_nonliteral)
207Warn about format strings that are not literals
208
209Wformat-security
210C ObjC C++ ObjC++ Var(warn_format_security)
211Warn about possible security problems with format functions
212
213Wformat-y2k
214C ObjC C++ ObjC++ Var(warn_format_y2k)
215Warn about strftime formats yielding 2-digit years
216
217Wformat-zero-length
218C ObjC Var(warn_format_zero_length)
219Warn about zero-length formats
220
221Wformat=
222C ObjC C++ ObjC++ Joined
223
224Winit-self
225C ObjC C++ ObjC++ Var(warn_init_self)
226Warn about variables which are initialized to themselves
227
228Wimplicit
229C ObjC C++ ObjC++
230
231Wimplicit-function-declaration
232C ObjC Var(mesg_implicit_function_declaration) Init(-1)
233Warn about implicit function declarations
234
235Wimplicit-int
236C ObjC Var(warn_implicit_int)
237Warn when a declaration does not specify a type
238
239Wimport
240C ObjC C++ ObjC++
241Deprecated. This switch has no effect
242
243Wint-to-pointer-cast
244C ObjC Var(warn_int_to_pointer_cast) Init(1)
245Warn when there is a cast to a pointer from an integer of a different size
246
247Winvalid-offsetof
248C++ ObjC++ Var(warn_invalid_offsetof) Init(1)
249Warn about invalid uses of the \"offsetof\" macro
250
251Winvalid-pch
252C ObjC C++ ObjC++
253Warn about PCH files that are found but not used
254
255Wlong-long
256C ObjC C++ ObjC++ Var(warn_long_long) Init(1)
257Do not warn about using \"long long\" when -pedantic
258
259Wmain
260C ObjC
261Warn about suspicious declarations of \"main\"
262
263Wmissing-braces
264C ObjC C++ ObjC++ Var(warn_missing_braces)
265Warn about possibly missing braces around initializers
266
267Wmissing-declarations
268C ObjC Var(warn_missing_declarations)
269Warn about global functions without previous declarations
270
271Wmissing-field-initializers
272C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Init(-1)
273Warn about missing fields in struct initializers
274
275Wmissing-format-attribute
276C ObjC C++ ObjC++ Var(warn_missing_format_attribute)
277Warn about functions which might be candidates for format attributes
278
279Wmissing-include-dirs
280C ObjC C++ ObjC++
281Warn about user-specified include directories that do not exist
282
283Wmissing-prototypes
284C ObjC Var(warn_missing_prototypes)
285Warn about global functions without prototypes
286
287Wmultichar
288C ObjC C++ ObjC++
289Warn about use of multi-character character constants
290
291Wnested-externs
292C ObjC Var(warn_nested_externs)
293Warn about \"extern\" declarations not at file scope
294
295; APPLE LOCAL begin -Wnewline-eof
296Wnewline-eof
297C ObjC C++ ObjC++
298Warn about files missing a newline at the end of the file
299; APPLE LOCAL end -Wnewline-eof
300
301Wnon-template-friend
302C++ ObjC++ Var(warn_nontemplate_friend) Init(1)
303Warn when non-templatized friend functions are declared within a template
304
305Wnon-virtual-dtor
306C++ ObjC++ Var(warn_nonvdtor)
307Warn about non-virtual destructors
308
309Wnonnull
310C ObjC Var(warn_nonnull)
311Warn about NULL being passed to argument slots marked as requiring non-NULL
312
313Wnormalized=
314C ObjC C++ ObjC++ Joined
315-Wnormalized=<id|nfc|nfkc> Warn about non-normalised Unicode strings
316
317Wold-style-cast
318C++ ObjC++ Var(warn_old_style_cast)
319Warn if a C-style cast is used in a program
320
321Wold-style-definition
322C ObjC Var(warn_old_style_definition)
323Warn if an old-style parameter definition is used
324
325Woverlength-strings
326C ObjC C++ ObjC++ Var(warn_overlength_strings) Init(-1)
327Warn if a string is longer than the maximum portable length specified by the standard
328
329Woverloaded-virtual
330C++ ObjC++ Var(warn_overloaded_virtual)
331Warn about overloaded virtual function names
332
333Woverride-init
334C ObjC Var(warn_override_init) Init(-1)
335Warn about overriding initializers without side effects
336
337Wparentheses
338C ObjC C++ ObjC++ Var(warn_parentheses)
339Warn about possibly missing parentheses
340
341Wpmf-conversions
342C++ ObjC++ Var(warn_pmf2ptr) Init(1)
343Warn when converting the type of pointers to member functions
344
345Wpointer-arith
346C ObjC C++ ObjC++ Var(warn_pointer_arith)
347Warn about function pointer arithmetic
348
349Wpointer-to-int-cast
350C ObjC Var(warn_pointer_to_int_cast) Init(1)
351Warn when a pointer is cast to an integer of a different size
352
353Wpragmas
354C ObjC C++ ObjC++ Var(warn_pragmas) Init(1)
355Warn about misuses of pragmas
356
357Wprotocol
358ObjC ObjC++ Var(warn_protocol) Init(1)
359Warn if inherited methods are unimplemented
360
361Wredundant-decls
362C ObjC C++ ObjC++ Var(warn_redundant_decls)
363Warn about multiple declarations of the same object
364
365Wreorder
366C++ ObjC++ Var(warn_reorder)
367Warn when the compiler reorders code
368
369Wreturn-type
370C ObjC C++ ObjC++ Var(warn_return_type)
371Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++)
372
373Wselector
374ObjC ObjC++ Var(warn_selector)
375Warn if a selector has multiple methods
376
377Wsequence-point
378C ObjC C++ ObjC++ Var(warn_sequence_point)
379Warn about possible violations of sequence point rules
380
381Wsign-compare
382C ObjC C++ ObjC++ Var(warn_sign_compare) Init(-1)
383Warn about signed-unsigned comparisons
384
385Wsign-promo
386C++ ObjC++ Var(warn_sign_promo)
387Warn when overload promotes from unsigned to signed
388
389Wstrict-null-sentinel
390C++ ObjC++
391Warn about uncasted NULL used as sentinel
392
393Wstrict-prototypes
394C ObjC Var(warn_strict_prototypes)
395Warn about unprototyped function declarations
396
397Wstrict-selector-match
398ObjC ObjC++ Var(warn_strict_selector_match)
399Warn if type signatures of candidate methods do not match exactly
400
401Wsynth
402C++ ObjC++ Var(warn_synth)
403Warn when synthesis behavior differs from Cfront
404
405Wsystem-headers
406C ObjC C++ ObjC++
407Do not suppress warnings from system headers
408
409Wtraditional
410C ObjC Var(warn_traditional)
411Warn about features not present in traditional C
412
413Wtrampolines
414Common Var(warn_trampolines)
415Warn when trampolines are emitted
416
417Wtrigraphs
418C ObjC C++ ObjC++
419Warn if trigraphs are encountered that might affect the meaning of the program
420
421Wundeclared-selector
422ObjC ObjC++ Var(warn_undeclared_selector)
423Warn about @selector()s without previously declared methods
424
425Wundef
426C ObjC C++ ObjC++
427Warn if an undefined macro is used in an #if directive
428
429Wunknown-pragmas
430C ObjC C++ ObjC++
431Warn about unrecognized pragmas
432
433Wunused-macros
434C ObjC C++ ObjC++
435Warn about macros defined in the main file that are not used
436
437Wvariadic-macros
438C ObjC C++ ObjC++
439Do not warn about using variadic macros when -pedantic
440
441Wvla
442C ObjC C++ ObjC++ Var(warn_vla) Init(-1) Warning
443Warn if a variable length array is used
444
445Wwrite-strings
446C ObjC C++ ObjC++ Var(warn_write_strings)
447In 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.
448
449Wpointer-sign
450C ObjC Var(warn_pointer_sign) Init(-1)
451Warn when a pointer differs in signedness in an assignment
452
453ansi
454C ObjC C++ ObjC++
455A synonym for -std=c89 (for C) or -std=c++98 (for C++)
456
457d
458C ObjC C++ ObjC++ Joined
459; Documented in common.opt. FIXME - what about -dI, -dD, -dN and -dD?
460
461faccess-control
462C++ ObjC++
463Enforce class member access control semantics
464
465fall-virtual
466C++ ObjC++
467
468falt-external-templates
469C++ ObjC++
470Change when template instances are emitted
471
472fasm
473C ObjC C++ ObjC++
474Recognize the \"asm\" keyword
475
476fbuiltin
477C ObjC C++ ObjC++
478Recognize built-in functions
479
480fbuiltin-
481C ObjC C++ ObjC++ Joined
482
483fcheck-new
484C++ ObjC++
485Check the return value of new
486
487fcond-mismatch
488C ObjC C++ ObjC++
489Allow the arguments of the '?' operator to have different types
490
491fconserve-space
492C++ ObjC++
493Reduce the size of object files
494
495fconstant-string-class=
496ObjC ObjC++ Joined
497-fconst-string-class=<name> Use class <name> for constant strings
498
499fdefault-inline
500C++ ObjC++
501Inline member functions by default
502
503fdirectives-only
504C ObjC C++ ObjC++
505Preprocess directives only.
506
507fdollars-in-identifiers
508C ObjC C++ ObjC++
509Permit '$' as an identifier character
510
511felide-constructors
512C++ ObjC++
513
514fenforce-eh-specs
515C++ ObjC++
516Generate code to check exception specifications
517
518fenum-int-equiv
519C++ ObjC++
520
521fexec-charset=
522C ObjC C++ ObjC++ Joined RejectNegative
523-fexec-charset=<cset> Convert all strings and character constants to character set <cset>
524
525fextended-identifiers
526C ObjC C++ ObjC++
527Permit universal character names (\\u and \\U) in identifiers
528
529finput-charset=
530C ObjC C++ ObjC++ Joined RejectNegative
531-finput-charset=<cset> Specify the default character set for source files
532
533
534fexternal-templates
535C++ ObjC++
536
537ffor-scope
538C++ ObjC++
539Scope of for-init-statement variables is local to the loop
540
541ffreestanding
542C ObjC
543Do not assume that standard C libraries and \"main\" exist
544
545fgnu-keywords
546C++ ObjC++
547Recognize GNU-defined keywords
548
549fgnu-runtime
550ObjC ObjC++
551Generate code for GNU runtime environment
552
553fgnu89-inline
554C ObjC Var(flag_gnu89_inline) Init(-1)
555Use traditional GNU semantics for inline functions
556
557fguiding-decls
558C++ ObjC++
559
560fhandle-exceptions
561C++ ObjC++
562
563fhonor-std
564C++ ObjC++
565
566fhosted
567C ObjC
568Assume normal C execution environment
569
570fhuge-objects
571C++ ObjC++
572Enable support for huge objects
573
574fimplement-inlines
575C++ ObjC++
576Export functions even if they can be inlined
577
578fimplicit-inline-templates
579C++ ObjC++
580Emit implicit instantiations of inline templates
581
582fimplicit-templates
583C++ ObjC++
584Emit implicit instantiations of templates
585
586ffriend-injection
587C++ ObjC++ Var(flag_friend_injection)
588Inject friend functions into enclosing namespace
589
590flabels-ok
591C++ ObjC++
592
593fms-extensions
594C ObjC C++ ObjC++
595Don't warn about uses of Microsoft extensions
596
597fname-mangling-version-
598C++ ObjC++ Joined
599
600fnew-abi
601C++ ObjC++
602
603fnext-runtime
604ObjC ObjC++
605Generate code for NeXT (Apple Mac OS X) runtime environment
606
607fnil-receivers
608ObjC ObjC++
609Assume that receivers of Objective-C messages may be nil
610
611fnonansi-builtins
612C++ ObjC++
613
614fnonnull-objects
615C++ ObjC++
616
617; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
618; to initialize any non-POD ivars in Objective-C++ classes.
619fobjc-call-cxx-cdtors
620ObjC++ Var(flag_objc_call_cxx_cdtors)
621Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed
622
623fobjc-direct-dispatch
624ObjC ObjC++ Var(flag_objc_direct_dispatch)
625Allow fast jumps to the message dispatcher
626
627; Nonzero means that we will allow new ObjC exception syntax (@throw,
628; @try, etc.) in source code.
629fobjc-exceptions
630ObjC ObjC++ Var(flag_objc_exceptions)
631Enable Objective-C exception and synchronization syntax
632
633fobjc-gc
634ObjC ObjC++ Var(flag_objc_gc)
635Enable garbage collection (GC) in Objective-C/Objective-C++ programs
636
637; Nonzero means that we generate NeXT setjmp based exceptions.
638fobjc-sjlj-exceptions
639ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1)
640Enable Objective-C setjmp exception handling runtime
641
642fopenmp
643C ObjC C++ ObjC++ Var(flag_openmp)
644Enable OpenMP
645
646foperator-names
647C++ ObjC++
648Recognize C++ kewords like \"compl\" and \"xor\"
649
650foptional-diags
651C++ ObjC++
652Enable optional diagnostics
653
654fpch-deps
655C ObjC C++ ObjC++
656
657fpch-preprocess
658C ObjC C++ ObjC++
659Look for and use PCH files even when preprocessing
660
661fpermissive
662C++ ObjC++
663Downgrade conformance errors to warnings
664
665fpreprocessed
666C ObjC C++ ObjC++
667Treat the input file as already preprocessed
668
669freplace-objc-classes
670ObjC ObjC++
671Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime
672
673frepo
674C++ ObjC++
675Enable automatic template instantiation
676
677frtti
678C++ ObjC++
679Generate run time type descriptor information
680
681fshort-double
682C ObjC C++ ObjC++
683Use the same size for double as for float
684
685fshort-enums
686C ObjC C++ ObjC++
687Use the narrowest integer type possible for enumeration types
688
689fshort-wchar
690C ObjC C++ ObjC++
691Force the underlying type for \"wchar_t\" to be \"unsigned short\"
692
693fsigned-bitfields
694C ObjC C++ ObjC++
695When \"signed\" or \"unsigned\" is not given make the bitfield signed
696
697fsigned-char
698C ObjC C++ ObjC++
699Make \"char\" signed by default
700
701fsquangle
702C++ ObjC++
703
704fstats
705C++ ObjC++
706Display statistics accumulated during compilation
707
708fstrict-prototype
709C++ ObjC++
710
711ftabstop=
712C ObjC C++ ObjC++ Joined RejectNegative UInteger
713-ftabstop=<number> Distance between tab stops for column reporting
714
715ftemplate-depth-
716C++ ObjC++ Joined RejectNegative UInteger
717-ftemplate-depth-<number> Specify maximum template instantiation depth
718
719fthis-is-variable
720C++ ObjC++
721
722fthreadsafe-statics
723C++ ObjC++
724-fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
725
726funsigned-bitfields
727C ObjC C++ ObjC++
728When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
729
730funsigned-char
731C ObjC C++ ObjC++
732Make \"char\" unsigned by default
733
734fuse-cxa-atexit
735C++ ObjC++
736Use __cxa_atexit to register destructors
737
738fuse-cxa-get-exception-ptr
739C++ ObjC++
740Use __cxa_get_exception_ptr in exception handling
741
742fvisibility-inlines-hidden
743C++ ObjC++
744Marks all inlined methods as having hidden visibility
745
746fvtable-gc
747C++ ObjC++
748Discard unused virtual functions
749
750fvtable-thunks
751C++ ObjC++
752Implement vtables using thunks
753
754fweak
755C++ ObjC++
756Emit common-like symbols as weak symbols
757
758fwide-exec-charset=
759C ObjC C++ ObjC++ Joined RejectNegative
760-fwide-exec-charset=<cset> Convert all wide strings and character constants to character set <cset>
761
762fworking-directory
763C ObjC C++ ObjC++
764Generate a #line directive pointing at the current working directory
765
766fxref
767C++ ObjC++
768Emit cross referencing information
769
770fzero-link
771ObjC ObjC++
772Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode
773
774gen-decls
775ObjC ObjC++
776Dump declarations to a .decl file
777
778femit-struct-debug-baseonly
779C ObjC C++ ObjC++
780-femit-struct-debug-baseonly Aggressive reduced debug info for structs
781
782femit-struct-debug-reduced
783C ObjC C++ ObjC++
784-femit-struct-debug-reduced Conservative reduced debug info for structs
785
786femit-struct-debug-detailed=
787C ObjC C++ ObjC++ Joined
788-femit-struct-debug-detailed=<spec-list> Detailed reduced debug info for structs
789
790idirafter
791C ObjC C++ ObjC++ Joined Separate
792-idirafter <dir> Add <dir> to the end of the system include path
793
794imacros
795C ObjC C++ ObjC++ Joined Separate
796-imacros <file> Accept definition of macros in <file>
797
798imultilib
799C ObjC C++ ObjC++ Joined Separate
800-imultilib <dir> Set <dir> to be the multilib include subdirectory
801
802include
803C ObjC C++ ObjC++ Joined Separate
804-include <file> Include the contents of <file> before other files
805
806iprefix
807C ObjC C++ ObjC++ Joined Separate
808-iprefix <path> Specify <path> as a prefix for next two options
809
810isysroot
811C ObjC C++ ObjC++ Joined Separate
812-isysroot <dir> Set <dir> to be the system root directory
813
814isystem
815C ObjC C++ ObjC++ Joined Separate
816-isystem <dir> Add <dir> to the start of the system include path
817
818iquote
819C ObjC C++ ObjC++ Joined Separate
820-iquote <dir> Add <dir> to the end of the quote include path
821
822iwithprefix
823C ObjC C++ ObjC++ Joined Separate
824-iwithprefix <dir> Add <dir> to the end of the system include path
825
826iwithprefixbefore
827C ObjC C++ ObjC++ Joined Separate
828-iwithprefixbefore <dir> Add <dir> to the end of the main include path
829
830lang-asm
831C Undocumented
832
833lang-fortran
834C Undocumented
835
836lang-objc
837C ObjC C++ ObjC++ Undocumented
838
839nostdinc
840C ObjC C++ ObjC++
841Do not search standard system include directories (those specified with -isystem will still be used)
842
843nostdinc++
844C++ ObjC++
845Do not search standard system include directories for C++
846
847o
848C ObjC C++ ObjC++ Joined Separate
849; Documented in common.opt
850
851pedantic
852C ObjC C++ ObjC++
853; Documented in common.opt
854
855pedantic-errors
856C ObjC C++ ObjC++
857; Documented in common.opt
858
859print-objc-runtime-info
860ObjC ObjC++
861Generate C header of platform-specific features
862
863print-pch-checksum
864C ObjC C++ ObjC++
865Print a checksum of the executable for PCH validity checking, and stop
866
867remap
868C ObjC C++ ObjC++
869Remap file names when including files
870
871std=c++98
872C++ ObjC++
873Conform to the ISO 1998 C++ standard
874
875std=c89
876C ObjC
877Conform to the ISO 1990 C standard
878
879std=c99
880C ObjC
881Conform to the ISO 1999 C standard
882
883std=c9x
884C ObjC
885Deprecated in favor of -std=c99
886
887std=gnu++98
888C++ ObjC++
889Conform to the ISO 1998 C++ standard with GNU extensions
890
891std=gnu89
892C ObjC
893Conform to the ISO 1990 C standard with GNU extensions
894
895std=gnu99
896C ObjC
897Conform to the ISO 1999 C standard with GNU extensions
898
899std=gnu9x
900C ObjC
901Deprecated in favor of -std=gnu99
902
903std=iso9899:1990
904C ObjC
905Conform to the ISO 1990 C standard
906
907std=iso9899:199409
908C ObjC
909Conform to the ISO 1990 C standard as amended in 1994
910
911std=iso9899:1999
912C ObjC
913Conform to the ISO 1999 C standard
914
915std=iso9899:199x
916C ObjC
917Deprecated in favor of -std=iso9899:1999
918
919traditional-cpp
920C ObjC C++ ObjC++
921Enable traditional preprocessing
922
923trigraphs
924C ObjC C++ ObjC++
925-trigraphs Support ISO C trigraphs
926
927undef
928C ObjC C++ ObjC++
929Do not predefine system-specific and GCC-specific macros
930
931v
932C ObjC C++ ObjC++
933Enable verbose output
934
935w
936C ObjC C++ ObjC++
937; Documented in common.opt
938
939; This comment is to ensure we retain the blank line above.
2; Copyright (C) 2003, 2004, 2005, 2006 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, 51 Franklin Street, Fifth Floor, Boston, MA
19; 02110-1301, USA.
20
21; See the GCC internals manual for a description of this file's format.
22
23; $FreeBSD: stable/10/contrib/gcc/c.opt 259890 2013-12-25 21:59:56Z pfg $
24; Please try to keep this file in ASCII collating order.
25
26Language
27C
28
29Language
30ObjC
31
32Language
33C++
34
35Language
36ObjC++
37
38-output-pch=
39C ObjC C++ ObjC++ Joined Separate
40
41A
42C ObjC C++ ObjC++ Joined Separate
43-A<question>=<answer> Assert the <answer> to <question>. Putting '-' before <question> disables the <answer> to <question>
44
45C
46C ObjC C++ ObjC++
47Do not discard comments
48
49CC
50C ObjC C++ ObjC++
51Do not discard comments in macro expansions
52
53D
54C ObjC C++ ObjC++ Joined Separate
55-D<macro>[=<val>] Define a <macro> with <val> as its value. If just <macro> is given, <val> is taken to be 1
56
57E
58C ObjC C++ ObjC++ Undocumented
59
60F
61C ObjC C++ ObjC++ Joined Separate
62-F <dir> Add <dir> to the end of the main framework include path
63
64H
65C ObjC C++ ObjC++
66Print the name of header files as they are used
67
68I
69C ObjC C++ ObjC++ Joined Separate
70-I <dir> Add <dir> to the end of the main include path
71
72M
73C ObjC C++ ObjC++
74Generate make dependencies
75
76MD
77C ObjC C++ ObjC++ Separate
78Generate make dependencies and compile
79
80MF
81C ObjC C++ ObjC++ Joined Separate
82-MF <file> Write dependency output to the given file
83
84MG
85C ObjC C++ ObjC++
86Treat missing header files as generated files
87
88MM
89C ObjC C++ ObjC++
90Like -M but ignore system header files
91
92MMD
93C ObjC C++ ObjC++ Separate
94Like -MD but ignore system header files
95
96MP
97C ObjC C++ ObjC++
98Generate phony targets for all headers
99
100MQ
101C ObjC C++ ObjC++ Joined Separate
102-MQ <target> Add a MAKE-quoted target
103
104MT
105C ObjC C++ ObjC++ Joined Separate
106-MT <target> Add an unquoted target
107
108P
109C ObjC C++ ObjC++
110Do not generate #line directives
111
112U
113C ObjC C++ ObjC++ Joined Separate
114-U<macro> Undefine <macro>
115
116Wabi
117C++ ObjC++ Var(warn_abi)
118Warn about things that will change when compiling with an ABI-compliant compiler
119
120Waddress
121C ObjC C++ ObjC++ Var(warn_address)
122Warn about suspicious uses of memory addresses
123
124Wall
125C ObjC C++ ObjC++
126Enable most warning messages
127
128Wassign-intercept
129ObjC ObjC++ Var(warn_assign_intercept)
130Warn whenever an Objective-C assignment is being intercepted by the garbage collector
131
132Wbad-function-cast
133C ObjC Var(warn_bad_function_cast)
134Warn about casting functions to incompatible types
135
136Wc++-compat
137C ObjC Var(warn_cxx_compat)
138Warn about C constructs that are not in the common subset of C and C++
139
140
141Wcast-qual
142C ObjC C++ ObjC++ Var(warn_cast_qual)
143Warn about casts which discard qualifiers
144
145Wchar-subscripts
146C ObjC C++ ObjC++ Var(warn_char_subscripts)
147Warn about subscripts whose type is \"char\"
148
149Wcomment
150C ObjC C++ ObjC++
151Warn about possibly nested block comments, and C++ comments spanning more than one physical line
152
153Wcomments
154C ObjC C++ ObjC++
155Synonym for -Wcomment
156
157Wconversion
158C ObjC C++ ObjC++ Var(warn_conversion)
159Warn about possibly confusing type conversions
160
161Wctor-dtor-privacy
162C++ ObjC++ Var(warn_ctor_dtor_privacy)
163Warn when all constructors and destructors are private
164
165Wdeclaration-after-statement
166C ObjC Var(warn_declaration_after_statement)
167Warn when a declaration is found after a statement
168
169Wdeprecated
170C++ ObjC++ Var(warn_deprecated) Init(1)
171Warn about deprecated compiler features
172
173Wdiv-by-zero
174C ObjC C++ ObjC++ Var(warn_div_by_zero) Init(1)
175Warn about compile-time integer division by zero
176
177Weffc++
178C++ ObjC++ Var(warn_ecpp)
179Warn about violations of Effective C++ style rules
180
181Wendif-labels
182C ObjC C++ ObjC++
183Warn about stray tokens after #elif and #endif
184
185Werror
186C ObjC C++ ObjC++
187; Documented in common.opt
188
189Werror-implicit-function-declaration
190C ObjC RejectNegative
191Make implicit function declarations an error
192
193Wfloat-equal
194C ObjC C++ ObjC++ Var(warn_float_equal)
195Warn if testing floating point numbers for equality
196
197Wformat
198C ObjC C++ ObjC++
199Warn about printf/scanf/strftime/strfmon format string anomalies
200
201Wformat-extra-args
202C ObjC C++ ObjC++ Var(warn_format_extra_args)
203Warn if passing too many arguments to a function for its format string
204
205Wformat-nonliteral
206C ObjC C++ ObjC++ Var(warn_format_nonliteral)
207Warn about format strings that are not literals
208
209Wformat-security
210C ObjC C++ ObjC++ Var(warn_format_security)
211Warn about possible security problems with format functions
212
213Wformat-y2k
214C ObjC C++ ObjC++ Var(warn_format_y2k)
215Warn about strftime formats yielding 2-digit years
216
217Wformat-zero-length
218C ObjC Var(warn_format_zero_length)
219Warn about zero-length formats
220
221Wformat=
222C ObjC C++ ObjC++ Joined
223
224Winit-self
225C ObjC C++ ObjC++ Var(warn_init_self)
226Warn about variables which are initialized to themselves
227
228Wimplicit
229C ObjC C++ ObjC++
230
231Wimplicit-function-declaration
232C ObjC Var(mesg_implicit_function_declaration) Init(-1)
233Warn about implicit function declarations
234
235Wimplicit-int
236C ObjC Var(warn_implicit_int)
237Warn when a declaration does not specify a type
238
239Wimport
240C ObjC C++ ObjC++
241Deprecated. This switch has no effect
242
243Wint-to-pointer-cast
244C ObjC Var(warn_int_to_pointer_cast) Init(1)
245Warn when there is a cast to a pointer from an integer of a different size
246
247Winvalid-offsetof
248C++ ObjC++ Var(warn_invalid_offsetof) Init(1)
249Warn about invalid uses of the \"offsetof\" macro
250
251Winvalid-pch
252C ObjC C++ ObjC++
253Warn about PCH files that are found but not used
254
255Wlong-long
256C ObjC C++ ObjC++ Var(warn_long_long) Init(1)
257Do not warn about using \"long long\" when -pedantic
258
259Wmain
260C ObjC
261Warn about suspicious declarations of \"main\"
262
263Wmissing-braces
264C ObjC C++ ObjC++ Var(warn_missing_braces)
265Warn about possibly missing braces around initializers
266
267Wmissing-declarations
268C ObjC Var(warn_missing_declarations)
269Warn about global functions without previous declarations
270
271Wmissing-field-initializers
272C ObjC C++ ObjC++ Var(warn_missing_field_initializers) Init(-1)
273Warn about missing fields in struct initializers
274
275Wmissing-format-attribute
276C ObjC C++ ObjC++ Var(warn_missing_format_attribute)
277Warn about functions which might be candidates for format attributes
278
279Wmissing-include-dirs
280C ObjC C++ ObjC++
281Warn about user-specified include directories that do not exist
282
283Wmissing-prototypes
284C ObjC Var(warn_missing_prototypes)
285Warn about global functions without prototypes
286
287Wmultichar
288C ObjC C++ ObjC++
289Warn about use of multi-character character constants
290
291Wnested-externs
292C ObjC Var(warn_nested_externs)
293Warn about \"extern\" declarations not at file scope
294
295; APPLE LOCAL begin -Wnewline-eof
296Wnewline-eof
297C ObjC C++ ObjC++
298Warn about files missing a newline at the end of the file
299; APPLE LOCAL end -Wnewline-eof
300
301Wnon-template-friend
302C++ ObjC++ Var(warn_nontemplate_friend) Init(1)
303Warn when non-templatized friend functions are declared within a template
304
305Wnon-virtual-dtor
306C++ ObjC++ Var(warn_nonvdtor)
307Warn about non-virtual destructors
308
309Wnonnull
310C ObjC Var(warn_nonnull)
311Warn about NULL being passed to argument slots marked as requiring non-NULL
312
313Wnormalized=
314C ObjC C++ ObjC++ Joined
315-Wnormalized=<id|nfc|nfkc> Warn about non-normalised Unicode strings
316
317Wold-style-cast
318C++ ObjC++ Var(warn_old_style_cast)
319Warn if a C-style cast is used in a program
320
321Wold-style-definition
322C ObjC Var(warn_old_style_definition)
323Warn if an old-style parameter definition is used
324
325Woverlength-strings
326C ObjC C++ ObjC++ Var(warn_overlength_strings) Init(-1)
327Warn if a string is longer than the maximum portable length specified by the standard
328
329Woverloaded-virtual
330C++ ObjC++ Var(warn_overloaded_virtual)
331Warn about overloaded virtual function names
332
333Woverride-init
334C ObjC Var(warn_override_init) Init(-1)
335Warn about overriding initializers without side effects
336
337Wparentheses
338C ObjC C++ ObjC++ Var(warn_parentheses)
339Warn about possibly missing parentheses
340
341Wpmf-conversions
342C++ ObjC++ Var(warn_pmf2ptr) Init(1)
343Warn when converting the type of pointers to member functions
344
345Wpointer-arith
346C ObjC C++ ObjC++ Var(warn_pointer_arith)
347Warn about function pointer arithmetic
348
349Wpointer-to-int-cast
350C ObjC Var(warn_pointer_to_int_cast) Init(1)
351Warn when a pointer is cast to an integer of a different size
352
353Wpragmas
354C ObjC C++ ObjC++ Var(warn_pragmas) Init(1)
355Warn about misuses of pragmas
356
357Wprotocol
358ObjC ObjC++ Var(warn_protocol) Init(1)
359Warn if inherited methods are unimplemented
360
361Wredundant-decls
362C ObjC C++ ObjC++ Var(warn_redundant_decls)
363Warn about multiple declarations of the same object
364
365Wreorder
366C++ ObjC++ Var(warn_reorder)
367Warn when the compiler reorders code
368
369Wreturn-type
370C ObjC C++ ObjC++ Var(warn_return_type)
371Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++)
372
373Wselector
374ObjC ObjC++ Var(warn_selector)
375Warn if a selector has multiple methods
376
377Wsequence-point
378C ObjC C++ ObjC++ Var(warn_sequence_point)
379Warn about possible violations of sequence point rules
380
381Wsign-compare
382C ObjC C++ ObjC++ Var(warn_sign_compare) Init(-1)
383Warn about signed-unsigned comparisons
384
385Wsign-promo
386C++ ObjC++ Var(warn_sign_promo)
387Warn when overload promotes from unsigned to signed
388
389Wstrict-null-sentinel
390C++ ObjC++
391Warn about uncasted NULL used as sentinel
392
393Wstrict-prototypes
394C ObjC Var(warn_strict_prototypes)
395Warn about unprototyped function declarations
396
397Wstrict-selector-match
398ObjC ObjC++ Var(warn_strict_selector_match)
399Warn if type signatures of candidate methods do not match exactly
400
401Wsynth
402C++ ObjC++ Var(warn_synth)
403Warn when synthesis behavior differs from Cfront
404
405Wsystem-headers
406C ObjC C++ ObjC++
407Do not suppress warnings from system headers
408
409Wtraditional
410C ObjC Var(warn_traditional)
411Warn about features not present in traditional C
412
413Wtrampolines
414Common Var(warn_trampolines)
415Warn when trampolines are emitted
416
417Wtrigraphs
418C ObjC C++ ObjC++
419Warn if trigraphs are encountered that might affect the meaning of the program
420
421Wundeclared-selector
422ObjC ObjC++ Var(warn_undeclared_selector)
423Warn about @selector()s without previously declared methods
424
425Wundef
426C ObjC C++ ObjC++
427Warn if an undefined macro is used in an #if directive
428
429Wunknown-pragmas
430C ObjC C++ ObjC++
431Warn about unrecognized pragmas
432
433Wunused-macros
434C ObjC C++ ObjC++
435Warn about macros defined in the main file that are not used
436
437Wvariadic-macros
438C ObjC C++ ObjC++
439Do not warn about using variadic macros when -pedantic
440
441Wvla
442C ObjC C++ ObjC++ Var(warn_vla) Init(-1) Warning
443Warn if a variable length array is used
444
445Wwrite-strings
446C ObjC C++ ObjC++ Var(warn_write_strings)
447In 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.
448
449Wpointer-sign
450C ObjC Var(warn_pointer_sign) Init(-1)
451Warn when a pointer differs in signedness in an assignment
452
453ansi
454C ObjC C++ ObjC++
455A synonym for -std=c89 (for C) or -std=c++98 (for C++)
456
457d
458C ObjC C++ ObjC++ Joined
459; Documented in common.opt. FIXME - what about -dI, -dD, -dN and -dD?
460
461faccess-control
462C++ ObjC++
463Enforce class member access control semantics
464
465fall-virtual
466C++ ObjC++
467
468falt-external-templates
469C++ ObjC++
470Change when template instances are emitted
471
472fasm
473C ObjC C++ ObjC++
474Recognize the \"asm\" keyword
475
476fbuiltin
477C ObjC C++ ObjC++
478Recognize built-in functions
479
480fbuiltin-
481C ObjC C++ ObjC++ Joined
482
483fcheck-new
484C++ ObjC++
485Check the return value of new
486
487fcond-mismatch
488C ObjC C++ ObjC++
489Allow the arguments of the '?' operator to have different types
490
491fconserve-space
492C++ ObjC++
493Reduce the size of object files
494
495fconstant-string-class=
496ObjC ObjC++ Joined
497-fconst-string-class=<name> Use class <name> for constant strings
498
499fdefault-inline
500C++ ObjC++
501Inline member functions by default
502
503fdirectives-only
504C ObjC C++ ObjC++
505Preprocess directives only.
506
507fdollars-in-identifiers
508C ObjC C++ ObjC++
509Permit '$' as an identifier character
510
511felide-constructors
512C++ ObjC++
513
514fenforce-eh-specs
515C++ ObjC++
516Generate code to check exception specifications
517
518fenum-int-equiv
519C++ ObjC++
520
521fexec-charset=
522C ObjC C++ ObjC++ Joined RejectNegative
523-fexec-charset=<cset> Convert all strings and character constants to character set <cset>
524
525fextended-identifiers
526C ObjC C++ ObjC++
527Permit universal character names (\\u and \\U) in identifiers
528
529finput-charset=
530C ObjC C++ ObjC++ Joined RejectNegative
531-finput-charset=<cset> Specify the default character set for source files
532
533
534fexternal-templates
535C++ ObjC++
536
537ffor-scope
538C++ ObjC++
539Scope of for-init-statement variables is local to the loop
540
541ffreestanding
542C ObjC
543Do not assume that standard C libraries and \"main\" exist
544
545fgnu-keywords
546C++ ObjC++
547Recognize GNU-defined keywords
548
549fgnu-runtime
550ObjC ObjC++
551Generate code for GNU runtime environment
552
553fgnu89-inline
554C ObjC Var(flag_gnu89_inline) Init(-1)
555Use traditional GNU semantics for inline functions
556
557fguiding-decls
558C++ ObjC++
559
560fhandle-exceptions
561C++ ObjC++
562
563fhonor-std
564C++ ObjC++
565
566fhosted
567C ObjC
568Assume normal C execution environment
569
570fhuge-objects
571C++ ObjC++
572Enable support for huge objects
573
574fimplement-inlines
575C++ ObjC++
576Export functions even if they can be inlined
577
578fimplicit-inline-templates
579C++ ObjC++
580Emit implicit instantiations of inline templates
581
582fimplicit-templates
583C++ ObjC++
584Emit implicit instantiations of templates
585
586ffriend-injection
587C++ ObjC++ Var(flag_friend_injection)
588Inject friend functions into enclosing namespace
589
590flabels-ok
591C++ ObjC++
592
593fms-extensions
594C ObjC C++ ObjC++
595Don't warn about uses of Microsoft extensions
596
597fname-mangling-version-
598C++ ObjC++ Joined
599
600fnew-abi
601C++ ObjC++
602
603fnext-runtime
604ObjC ObjC++
605Generate code for NeXT (Apple Mac OS X) runtime environment
606
607fnil-receivers
608ObjC ObjC++
609Assume that receivers of Objective-C messages may be nil
610
611fnonansi-builtins
612C++ ObjC++
613
614fnonnull-objects
615C++ ObjC++
616
617; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
618; to initialize any non-POD ivars in Objective-C++ classes.
619fobjc-call-cxx-cdtors
620ObjC++ Var(flag_objc_call_cxx_cdtors)
621Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed
622
623fobjc-direct-dispatch
624ObjC ObjC++ Var(flag_objc_direct_dispatch)
625Allow fast jumps to the message dispatcher
626
627; Nonzero means that we will allow new ObjC exception syntax (@throw,
628; @try, etc.) in source code.
629fobjc-exceptions
630ObjC ObjC++ Var(flag_objc_exceptions)
631Enable Objective-C exception and synchronization syntax
632
633fobjc-gc
634ObjC ObjC++ Var(flag_objc_gc)
635Enable garbage collection (GC) in Objective-C/Objective-C++ programs
636
637; Nonzero means that we generate NeXT setjmp based exceptions.
638fobjc-sjlj-exceptions
639ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1)
640Enable Objective-C setjmp exception handling runtime
641
642fopenmp
643C ObjC C++ ObjC++ Var(flag_openmp)
644Enable OpenMP
645
646foperator-names
647C++ ObjC++
648Recognize C++ kewords like \"compl\" and \"xor\"
649
650foptional-diags
651C++ ObjC++
652Enable optional diagnostics
653
654fpch-deps
655C ObjC C++ ObjC++
656
657fpch-preprocess
658C ObjC C++ ObjC++
659Look for and use PCH files even when preprocessing
660
661fpermissive
662C++ ObjC++
663Downgrade conformance errors to warnings
664
665fpreprocessed
666C ObjC C++ ObjC++
667Treat the input file as already preprocessed
668
669freplace-objc-classes
670ObjC ObjC++
671Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime
672
673frepo
674C++ ObjC++
675Enable automatic template instantiation
676
677frtti
678C++ ObjC++
679Generate run time type descriptor information
680
681fshort-double
682C ObjC C++ ObjC++
683Use the same size for double as for float
684
685fshort-enums
686C ObjC C++ ObjC++
687Use the narrowest integer type possible for enumeration types
688
689fshort-wchar
690C ObjC C++ ObjC++
691Force the underlying type for \"wchar_t\" to be \"unsigned short\"
692
693fsigned-bitfields
694C ObjC C++ ObjC++
695When \"signed\" or \"unsigned\" is not given make the bitfield signed
696
697fsigned-char
698C ObjC C++ ObjC++
699Make \"char\" signed by default
700
701fsquangle
702C++ ObjC++
703
704fstats
705C++ ObjC++
706Display statistics accumulated during compilation
707
708fstrict-prototype
709C++ ObjC++
710
711ftabstop=
712C ObjC C++ ObjC++ Joined RejectNegative UInteger
713-ftabstop=<number> Distance between tab stops for column reporting
714
715ftemplate-depth-
716C++ ObjC++ Joined RejectNegative UInteger
717-ftemplate-depth-<number> Specify maximum template instantiation depth
718
719fthis-is-variable
720C++ ObjC++
721
722fthreadsafe-statics
723C++ ObjC++
724-fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
725
726funsigned-bitfields
727C ObjC C++ ObjC++
728When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
729
730funsigned-char
731C ObjC C++ ObjC++
732Make \"char\" unsigned by default
733
734fuse-cxa-atexit
735C++ ObjC++
736Use __cxa_atexit to register destructors
737
738fuse-cxa-get-exception-ptr
739C++ ObjC++
740Use __cxa_get_exception_ptr in exception handling
741
742fvisibility-inlines-hidden
743C++ ObjC++
744Marks all inlined methods as having hidden visibility
745
746fvtable-gc
747C++ ObjC++
748Discard unused virtual functions
749
750fvtable-thunks
751C++ ObjC++
752Implement vtables using thunks
753
754fweak
755C++ ObjC++
756Emit common-like symbols as weak symbols
757
758fwide-exec-charset=
759C ObjC C++ ObjC++ Joined RejectNegative
760-fwide-exec-charset=<cset> Convert all wide strings and character constants to character set <cset>
761
762fworking-directory
763C ObjC C++ ObjC++
764Generate a #line directive pointing at the current working directory
765
766fxref
767C++ ObjC++
768Emit cross referencing information
769
770fzero-link
771ObjC ObjC++
772Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode
773
774gen-decls
775ObjC ObjC++
776Dump declarations to a .decl file
777
778femit-struct-debug-baseonly
779C ObjC C++ ObjC++
780-femit-struct-debug-baseonly Aggressive reduced debug info for structs
781
782femit-struct-debug-reduced
783C ObjC C++ ObjC++
784-femit-struct-debug-reduced Conservative reduced debug info for structs
785
786femit-struct-debug-detailed=
787C ObjC C++ ObjC++ Joined
788-femit-struct-debug-detailed=<spec-list> Detailed reduced debug info for structs
789
790idirafter
791C ObjC C++ ObjC++ Joined Separate
792-idirafter <dir> Add <dir> to the end of the system include path
793
794imacros
795C ObjC C++ ObjC++ Joined Separate
796-imacros <file> Accept definition of macros in <file>
797
798imultilib
799C ObjC C++ ObjC++ Joined Separate
800-imultilib <dir> Set <dir> to be the multilib include subdirectory
801
802include
803C ObjC C++ ObjC++ Joined Separate
804-include <file> Include the contents of <file> before other files
805
806iprefix
807C ObjC C++ ObjC++ Joined Separate
808-iprefix <path> Specify <path> as a prefix for next two options
809
810isysroot
811C ObjC C++ ObjC++ Joined Separate
812-isysroot <dir> Set <dir> to be the system root directory
813
814isystem
815C ObjC C++ ObjC++ Joined Separate
816-isystem <dir> Add <dir> to the start of the system include path
817
818iquote
819C ObjC C++ ObjC++ Joined Separate
820-iquote <dir> Add <dir> to the end of the quote include path
821
822iwithprefix
823C ObjC C++ ObjC++ Joined Separate
824-iwithprefix <dir> Add <dir> to the end of the system include path
825
826iwithprefixbefore
827C ObjC C++ ObjC++ Joined Separate
828-iwithprefixbefore <dir> Add <dir> to the end of the main include path
829
830lang-asm
831C Undocumented
832
833lang-fortran
834C Undocumented
835
836lang-objc
837C ObjC C++ ObjC++ Undocumented
838
839nostdinc
840C ObjC C++ ObjC++
841Do not search standard system include directories (those specified with -isystem will still be used)
842
843nostdinc++
844C++ ObjC++
845Do not search standard system include directories for C++
846
847o
848C ObjC C++ ObjC++ Joined Separate
849; Documented in common.opt
850
851pedantic
852C ObjC C++ ObjC++
853; Documented in common.opt
854
855pedantic-errors
856C ObjC C++ ObjC++
857; Documented in common.opt
858
859print-objc-runtime-info
860ObjC ObjC++
861Generate C header of platform-specific features
862
863print-pch-checksum
864C ObjC C++ ObjC++
865Print a checksum of the executable for PCH validity checking, and stop
866
867remap
868C ObjC C++ ObjC++
869Remap file names when including files
870
871std=c++98
872C++ ObjC++
873Conform to the ISO 1998 C++ standard
874
875std=c89
876C ObjC
877Conform to the ISO 1990 C standard
878
879std=c99
880C ObjC
881Conform to the ISO 1999 C standard
882
883std=c9x
884C ObjC
885Deprecated in favor of -std=c99
886
887std=gnu++98
888C++ ObjC++
889Conform to the ISO 1998 C++ standard with GNU extensions
890
891std=gnu89
892C ObjC
893Conform to the ISO 1990 C standard with GNU extensions
894
895std=gnu99
896C ObjC
897Conform to the ISO 1999 C standard with GNU extensions
898
899std=gnu9x
900C ObjC
901Deprecated in favor of -std=gnu99
902
903std=iso9899:1990
904C ObjC
905Conform to the ISO 1990 C standard
906
907std=iso9899:199409
908C ObjC
909Conform to the ISO 1990 C standard as amended in 1994
910
911std=iso9899:1999
912C ObjC
913Conform to the ISO 1999 C standard
914
915std=iso9899:199x
916C ObjC
917Deprecated in favor of -std=iso9899:1999
918
919traditional-cpp
920C ObjC C++ ObjC++
921Enable traditional preprocessing
922
923trigraphs
924C ObjC C++ ObjC++
925-trigraphs Support ISO C trigraphs
926
927undef
928C ObjC C++ ObjC++
929Do not predefine system-specific and GCC-specific macros
930
931v
932C ObjC C++ ObjC++
933Enable verbose output
934
935w
936C ObjC C++ ObjC++
937; Documented in common.opt
938
939; This comment is to ensure we retain the blank line above.