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 260074 2013-12-30 03:39:46Z 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
593flax-vector-conversions
594C ObjC C++ ObjC++
595Allow implicit conversions between vectors with differing numbers of subparts and/or differing element types.
596
597fms-extensions
598C ObjC C++ ObjC++
599Don't warn about uses of Microsoft extensions
600
601fname-mangling-version-
602C++ ObjC++ Joined
603
604fnew-abi
605C++ ObjC++
606
607fnext-runtime
608ObjC ObjC++
609Generate code for NeXT (Apple Mac OS X) runtime environment
610
611fnil-receivers
612ObjC ObjC++
613Assume that receivers of Objective-C messages may be nil
614
615fnonansi-builtins
616C++ ObjC++
617
618fnonnull-objects
619C++ ObjC++
620
621; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
622; to initialize any non-POD ivars in Objective-C++ classes.
623fobjc-call-cxx-cdtors
624ObjC++ Var(flag_objc_call_cxx_cdtors)
625Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed
626
627fobjc-direct-dispatch
628ObjC ObjC++ Var(flag_objc_direct_dispatch)
629Allow fast jumps to the message dispatcher
630
631; Nonzero means that we will allow new ObjC exception syntax (@throw,
632; @try, etc.) in source code.
633fobjc-exceptions
634ObjC ObjC++ Var(flag_objc_exceptions)
635Enable Objective-C exception and synchronization syntax
636
637fobjc-gc
638ObjC ObjC++ Var(flag_objc_gc)
639Enable garbage collection (GC) in Objective-C/Objective-C++ programs
640
641; Nonzero means that we generate NeXT setjmp based exceptions.
642fobjc-sjlj-exceptions
643ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1)
644Enable Objective-C setjmp exception handling runtime
645
646fopenmp
647C ObjC C++ ObjC++ Var(flag_openmp)
648Enable OpenMP
649
650foperator-names
651C++ ObjC++
652Recognize C++ kewords like \"compl\" and \"xor\"
653
654foptional-diags
655C++ ObjC++
656Enable optional diagnostics
657
658fpch-deps
659C ObjC C++ ObjC++
660
661fpch-preprocess
662C ObjC C++ ObjC++
663Look for and use PCH files even when preprocessing
664
665fpermissive
666C++ ObjC++
667Downgrade conformance errors to warnings
668
669fpreprocessed
670C ObjC C++ ObjC++
671Treat the input file as already preprocessed
672
673freplace-objc-classes
674ObjC ObjC++
675Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime
676
677frepo
678C++ ObjC++
679Enable automatic template instantiation
680
681frtti
682C++ ObjC++
683Generate run time type descriptor information
684
685fshort-double
686C ObjC C++ ObjC++
687Use the same size for double as for float
688
689fshort-enums
690C ObjC C++ ObjC++
691Use the narrowest integer type possible for enumeration types
692
693fshort-wchar
694C ObjC C++ ObjC++
695Force the underlying type for \"wchar_t\" to be \"unsigned short\"
696
697fsigned-bitfields
698C ObjC C++ ObjC++
699When \"signed\" or \"unsigned\" is not given make the bitfield signed
700
701fsigned-char
702C ObjC C++ ObjC++
703Make \"char\" signed by default
704
705fsquangle
706C++ ObjC++
707
708fstats
709C++ ObjC++
710Display statistics accumulated during compilation
711
712fstrict-prototype
713C++ ObjC++
714
715ftabstop=
716C ObjC C++ ObjC++ Joined RejectNegative UInteger
717-ftabstop=<number> Distance between tab stops for column reporting
718
719ftemplate-depth-
720C++ ObjC++ Joined RejectNegative UInteger
721-ftemplate-depth-<number> Specify maximum template instantiation depth
722
723fthis-is-variable
724C++ ObjC++
725
726fthreadsafe-statics
727C++ ObjC++
728-fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
729
730funsigned-bitfields
731C ObjC C++ ObjC++
732When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
733
734funsigned-char
735C ObjC C++ ObjC++
736Make \"char\" unsigned by default
737
738fuse-cxa-atexit
739C++ ObjC++
740Use __cxa_atexit to register destructors
741
742fuse-cxa-get-exception-ptr
743C++ ObjC++
744Use __cxa_get_exception_ptr in exception handling
745
746fvisibility-inlines-hidden
747C++ ObjC++
748Marks all inlined methods as having hidden visibility
749
750fvisibility-ms-compat
751C++ ObjC++ Var(flag_visibility_ms_compat)
752Changes visibility to match Microsoft Visual Studio by default
753
754fvtable-gc
755C++ ObjC++
756Discard unused virtual functions
757
758fvtable-thunks
759C++ ObjC++
760Implement vtables using thunks
761
762fweak
763C++ ObjC++
764Emit common-like symbols as weak symbols
765
766fwide-exec-charset=
767C ObjC C++ ObjC++ Joined RejectNegative
768-fwide-exec-charset=<cset> Convert all wide strings and character constants to character set <cset>
769
770fworking-directory
771C ObjC C++ ObjC++
772Generate a #line directive pointing at the current working directory
773
774fxref
775C++ ObjC++
776Emit cross referencing information
777
778fzero-link
779ObjC ObjC++
780Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode
781
782gen-decls
783ObjC ObjC++
784Dump declarations to a .decl file
785
786femit-struct-debug-baseonly
787C ObjC C++ ObjC++
788-femit-struct-debug-baseonly Aggressive reduced debug info for structs
789
790femit-struct-debug-reduced
791C ObjC C++ ObjC++
792-femit-struct-debug-reduced Conservative reduced debug info for structs
793
794femit-struct-debug-detailed=
795C ObjC C++ ObjC++ Joined
796-femit-struct-debug-detailed=<spec-list> Detailed reduced debug info for structs
797
798idirafter
799C ObjC C++ ObjC++ Joined Separate
800-idirafter <dir> Add <dir> to the end of the system include path
801
802imacros
803C ObjC C++ ObjC++ Joined Separate
804-imacros <file> Accept definition of macros in <file>
805
806imultilib
807C ObjC C++ ObjC++ Joined Separate
808-imultilib <dir> Set <dir> to be the multilib include subdirectory
809
810include
811C ObjC C++ ObjC++ Joined Separate
812-include <file> Include the contents of <file> before other files
813
814iprefix
815C ObjC C++ ObjC++ Joined Separate
816-iprefix <path> Specify <path> as a prefix for next two options
817
818isysroot
819C ObjC C++ ObjC++ Joined Separate
820-isysroot <dir> Set <dir> to be the system root directory
821
822isystem
823C ObjC C++ ObjC++ Joined Separate
824-isystem <dir> Add <dir> to the start of the system include path
825
826iquote
827C ObjC C++ ObjC++ Joined Separate
828-iquote <dir> Add <dir> to the end of the quote include path
829
830iwithprefix
831C ObjC C++ ObjC++ Joined Separate
832-iwithprefix <dir> Add <dir> to the end of the system include path
833
834iwithprefixbefore
835C ObjC C++ ObjC++ Joined Separate
836-iwithprefixbefore <dir> Add <dir> to the end of the main include path
837
838lang-asm
839C Undocumented
840
841lang-fortran
842C Undocumented
843
844lang-objc
845C ObjC C++ ObjC++ Undocumented
846
847nostdinc
848C ObjC C++ ObjC++
849Do not search standard system include directories (those specified with -isystem will still be used)
850
851nostdinc++
852C++ ObjC++
853Do not search standard system include directories for C++
854
855o
856C ObjC C++ ObjC++ Joined Separate
857; Documented in common.opt
858
859pedantic
860C ObjC C++ ObjC++
861; Documented in common.opt
862
863pedantic-errors
864C ObjC C++ ObjC++
865; Documented in common.opt
866
867print-objc-runtime-info
868ObjC ObjC++
869Generate C header of platform-specific features
870
871print-pch-checksum
872C ObjC C++ ObjC++
873Print a checksum of the executable for PCH validity checking, and stop
874
875remap
876C ObjC C++ ObjC++
877Remap file names when including files
878
879std=c++98
880C++ ObjC++
881Conform to the ISO 1998 C++ standard
882
883std=c89
884C ObjC
885Conform to the ISO 1990 C standard
886
887std=c99
888C ObjC
889Conform to the ISO 1999 C standard
890
891std=c9x
892C ObjC
893Deprecated in favor of -std=c99
894
895std=gnu++98
896C++ ObjC++
897Conform to the ISO 1998 C++ standard with GNU extensions
898
899std=gnu89
900C ObjC
901Conform to the ISO 1990 C standard with GNU extensions
902
903std=gnu99
904C ObjC
905Conform to the ISO 1999 C standard with GNU extensions
906
907std=gnu9x
908C ObjC
909Deprecated in favor of -std=gnu99
910
911std=iso9899:1990
912C ObjC
913Conform to the ISO 1990 C standard
914
915std=iso9899:199409
916C ObjC
917Conform to the ISO 1990 C standard as amended in 1994
918
919std=iso9899:1999
920C ObjC
921Conform to the ISO 1999 C standard
922
923std=iso9899:199x
924C ObjC
925Deprecated in favor of -std=iso9899:1999
926
927traditional-cpp
928C ObjC C++ ObjC++
929Enable traditional preprocessing
930
931trigraphs
932C ObjC C++ ObjC++
933-trigraphs Support ISO C trigraphs
934
935undef
936C ObjC C++ ObjC++
937Do not predefine system-specific and GCC-specific macros
938
939v
940C ObjC C++ ObjC++
941Enable verbose output
942
943w
944C ObjC C++ ObjC++
945; Documented in common.opt
946
947; 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 260074 2013-12-30 03:39:46Z 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
593flax-vector-conversions
594C ObjC C++ ObjC++
595Allow implicit conversions between vectors with differing numbers of subparts and/or differing element types.
596
597fms-extensions
598C ObjC C++ ObjC++
599Don't warn about uses of Microsoft extensions
600
601fname-mangling-version-
602C++ ObjC++ Joined
603
604fnew-abi
605C++ ObjC++
606
607fnext-runtime
608ObjC ObjC++
609Generate code for NeXT (Apple Mac OS X) runtime environment
610
611fnil-receivers
612ObjC ObjC++
613Assume that receivers of Objective-C messages may be nil
614
615fnonansi-builtins
616C++ ObjC++
617
618fnonnull-objects
619C++ ObjC++
620
621; Generate special '- .cxx_construct' and '- .cxx_destruct' methods
622; to initialize any non-POD ivars in Objective-C++ classes.
623fobjc-call-cxx-cdtors
624ObjC++ Var(flag_objc_call_cxx_cdtors)
625Generate special Objective-C methods to initialize/destroy non-POD C++ ivars, if needed
626
627fobjc-direct-dispatch
628ObjC ObjC++ Var(flag_objc_direct_dispatch)
629Allow fast jumps to the message dispatcher
630
631; Nonzero means that we will allow new ObjC exception syntax (@throw,
632; @try, etc.) in source code.
633fobjc-exceptions
634ObjC ObjC++ Var(flag_objc_exceptions)
635Enable Objective-C exception and synchronization syntax
636
637fobjc-gc
638ObjC ObjC++ Var(flag_objc_gc)
639Enable garbage collection (GC) in Objective-C/Objective-C++ programs
640
641; Nonzero means that we generate NeXT setjmp based exceptions.
642fobjc-sjlj-exceptions
643ObjC ObjC++ Var(flag_objc_sjlj_exceptions) Init(-1)
644Enable Objective-C setjmp exception handling runtime
645
646fopenmp
647C ObjC C++ ObjC++ Var(flag_openmp)
648Enable OpenMP
649
650foperator-names
651C++ ObjC++
652Recognize C++ kewords like \"compl\" and \"xor\"
653
654foptional-diags
655C++ ObjC++
656Enable optional diagnostics
657
658fpch-deps
659C ObjC C++ ObjC++
660
661fpch-preprocess
662C ObjC C++ ObjC++
663Look for and use PCH files even when preprocessing
664
665fpermissive
666C++ ObjC++
667Downgrade conformance errors to warnings
668
669fpreprocessed
670C ObjC C++ ObjC++
671Treat the input file as already preprocessed
672
673freplace-objc-classes
674ObjC ObjC++
675Used in Fix-and-Continue mode to indicate that object files may be swapped in at runtime
676
677frepo
678C++ ObjC++
679Enable automatic template instantiation
680
681frtti
682C++ ObjC++
683Generate run time type descriptor information
684
685fshort-double
686C ObjC C++ ObjC++
687Use the same size for double as for float
688
689fshort-enums
690C ObjC C++ ObjC++
691Use the narrowest integer type possible for enumeration types
692
693fshort-wchar
694C ObjC C++ ObjC++
695Force the underlying type for \"wchar_t\" to be \"unsigned short\"
696
697fsigned-bitfields
698C ObjC C++ ObjC++
699When \"signed\" or \"unsigned\" is not given make the bitfield signed
700
701fsigned-char
702C ObjC C++ ObjC++
703Make \"char\" signed by default
704
705fsquangle
706C++ ObjC++
707
708fstats
709C++ ObjC++
710Display statistics accumulated during compilation
711
712fstrict-prototype
713C++ ObjC++
714
715ftabstop=
716C ObjC C++ ObjC++ Joined RejectNegative UInteger
717-ftabstop=<number> Distance between tab stops for column reporting
718
719ftemplate-depth-
720C++ ObjC++ Joined RejectNegative UInteger
721-ftemplate-depth-<number> Specify maximum template instantiation depth
722
723fthis-is-variable
724C++ ObjC++
725
726fthreadsafe-statics
727C++ ObjC++
728-fno-threadsafe-statics Do not generate thread-safe code for initializing local statics
729
730funsigned-bitfields
731C ObjC C++ ObjC++
732When \"signed\" or \"unsigned\" is not given make the bitfield unsigned
733
734funsigned-char
735C ObjC C++ ObjC++
736Make \"char\" unsigned by default
737
738fuse-cxa-atexit
739C++ ObjC++
740Use __cxa_atexit to register destructors
741
742fuse-cxa-get-exception-ptr
743C++ ObjC++
744Use __cxa_get_exception_ptr in exception handling
745
746fvisibility-inlines-hidden
747C++ ObjC++
748Marks all inlined methods as having hidden visibility
749
750fvisibility-ms-compat
751C++ ObjC++ Var(flag_visibility_ms_compat)
752Changes visibility to match Microsoft Visual Studio by default
753
754fvtable-gc
755C++ ObjC++
756Discard unused virtual functions
757
758fvtable-thunks
759C++ ObjC++
760Implement vtables using thunks
761
762fweak
763C++ ObjC++
764Emit common-like symbols as weak symbols
765
766fwide-exec-charset=
767C ObjC C++ ObjC++ Joined RejectNegative
768-fwide-exec-charset=<cset> Convert all wide strings and character constants to character set <cset>
769
770fworking-directory
771C ObjC C++ ObjC++
772Generate a #line directive pointing at the current working directory
773
774fxref
775C++ ObjC++
776Emit cross referencing information
777
778fzero-link
779ObjC ObjC++
780Generate lazy class lookup (via objc_getClass()) for use in Zero-Link mode
781
782gen-decls
783ObjC ObjC++
784Dump declarations to a .decl file
785
786femit-struct-debug-baseonly
787C ObjC C++ ObjC++
788-femit-struct-debug-baseonly Aggressive reduced debug info for structs
789
790femit-struct-debug-reduced
791C ObjC C++ ObjC++
792-femit-struct-debug-reduced Conservative reduced debug info for structs
793
794femit-struct-debug-detailed=
795C ObjC C++ ObjC++ Joined
796-femit-struct-debug-detailed=<spec-list> Detailed reduced debug info for structs
797
798idirafter
799C ObjC C++ ObjC++ Joined Separate
800-idirafter <dir> Add <dir> to the end of the system include path
801
802imacros
803C ObjC C++ ObjC++ Joined Separate
804-imacros <file> Accept definition of macros in <file>
805
806imultilib
807C ObjC C++ ObjC++ Joined Separate
808-imultilib <dir> Set <dir> to be the multilib include subdirectory
809
810include
811C ObjC C++ ObjC++ Joined Separate
812-include <file> Include the contents of <file> before other files
813
814iprefix
815C ObjC C++ ObjC++ Joined Separate
816-iprefix <path> Specify <path> as a prefix for next two options
817
818isysroot
819C ObjC C++ ObjC++ Joined Separate
820-isysroot <dir> Set <dir> to be the system root directory
821
822isystem
823C ObjC C++ ObjC++ Joined Separate
824-isystem <dir> Add <dir> to the start of the system include path
825
826iquote
827C ObjC C++ ObjC++ Joined Separate
828-iquote <dir> Add <dir> to the end of the quote include path
829
830iwithprefix
831C ObjC C++ ObjC++ Joined Separate
832-iwithprefix <dir> Add <dir> to the end of the system include path
833
834iwithprefixbefore
835C ObjC C++ ObjC++ Joined Separate
836-iwithprefixbefore <dir> Add <dir> to the end of the main include path
837
838lang-asm
839C Undocumented
840
841lang-fortran
842C Undocumented
843
844lang-objc
845C ObjC C++ ObjC++ Undocumented
846
847nostdinc
848C ObjC C++ ObjC++
849Do not search standard system include directories (those specified with -isystem will still be used)
850
851nostdinc++
852C++ ObjC++
853Do not search standard system include directories for C++
854
855o
856C ObjC C++ ObjC++ Joined Separate
857; Documented in common.opt
858
859pedantic
860C ObjC C++ ObjC++
861; Documented in common.opt
862
863pedantic-errors
864C ObjC C++ ObjC++
865; Documented in common.opt
866
867print-objc-runtime-info
868ObjC ObjC++
869Generate C header of platform-specific features
870
871print-pch-checksum
872C ObjC C++ ObjC++
873Print a checksum of the executable for PCH validity checking, and stop
874
875remap
876C ObjC C++ ObjC++
877Remap file names when including files
878
879std=c++98
880C++ ObjC++
881Conform to the ISO 1998 C++ standard
882
883std=c89
884C ObjC
885Conform to the ISO 1990 C standard
886
887std=c99
888C ObjC
889Conform to the ISO 1999 C standard
890
891std=c9x
892C ObjC
893Deprecated in favor of -std=c99
894
895std=gnu++98
896C++ ObjC++
897Conform to the ISO 1998 C++ standard with GNU extensions
898
899std=gnu89
900C ObjC
901Conform to the ISO 1990 C standard with GNU extensions
902
903std=gnu99
904C ObjC
905Conform to the ISO 1999 C standard with GNU extensions
906
907std=gnu9x
908C ObjC
909Deprecated in favor of -std=gnu99
910
911std=iso9899:1990
912C ObjC
913Conform to the ISO 1990 C standard
914
915std=iso9899:199409
916C ObjC
917Conform to the ISO 1990 C standard as amended in 1994
918
919std=iso9899:1999
920C ObjC
921Conform to the ISO 1999 C standard
922
923std=iso9899:199x
924C ObjC
925Deprecated in favor of -std=iso9899:1999
926
927traditional-cpp
928C ObjC C++ ObjC++
929Enable traditional preprocessing
930
931trigraphs
932C ObjC C++ ObjC++
933-trigraphs Support ISO C trigraphs
934
935undef
936C ObjC C++ ObjC++
937Do not predefine system-specific and GCC-specific macros
938
939v
940C ObjC C++ ObjC++
941Enable verbose output
942
943w
944C ObjC C++ ObjC++
945; Documented in common.opt
946
947; This comment is to ensure we retain the blank line above.