diff options
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/gcc/c.opt b/gcc/c.opt index 4855ee2b03e..e69a0795986 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -149,6 +149,11 @@ U C ObjC C++ ObjC++ Joined Separate -U<macro> Undefine <macro> +; APPLE LOCAL -Wno-#warnings +W#warnings +C ObjC C++ ObjC++ +Enable #warning + Wabi C++ ObjC++ @@ -212,6 +217,11 @@ Werror-implicit-function-declaration C ObjC RejectNegative Make implicit function declarations an error +; APPLE LOCAL -Wextra-tokens +Wextra-tokens +C Objc C++ ObjC++ +Warn about extra tokens at the end of prepreprocessor directives + Wfloat-equal C ObjC C++ ObjC++ Warn if testing floating point numbers for equality @@ -242,6 +252,11 @@ C ObjC Wformat= C ObjC C++ ObjC++ Joined +; APPLE LOCAL -Wfour-char-constants +Wfour-char-constants +C ObjC C++ ObjC++ +Warn about multicharacter constants containing exactly four characters + Winit-self C ObjC C++ ObjC++ Warn about variables which are initialized to themselves. @@ -269,6 +284,16 @@ Winvalid-pch C ObjC C++ ObjC++ Warn about PCH files that are found but not used +; APPLE LOCAL Symbol Separation +Winvalid-sr +C ObjC C++ ObjC++ +Warn about symbol files that are found but not used + +; APPLE LOCAL -Wlong-double +Wlong-double +C ObjC C++ ObjC++ +Warn about \"long double\" + Wlong-long C ObjC C++ ObjC++ Do not warn about using \"long long\" when -pedantic @@ -293,6 +318,11 @@ Wmissing-prototypes C ObjC Warn about global functions without prototypes +; APPLE LOCAL -Wmost +Wmost +C ObjC C++ ObjC++ +Like -Wall but without -Wparentheses + Wmultichar C ObjC C++ ObjC++ Warn about use of multi-character character constants @@ -301,6 +331,11 @@ Wnested-externs C ObjC Warn about \"extern\" declarations not at file scope +; APPLE LOCAL -Wnewline-eof +Wnewline-eof +C ObjC C++ ObjC++ +Warn about files missing a newline at the end of the file + Wnon-template-friend C++ ObjC++ Warn when non-templatized friend functions are declared within a template @@ -312,6 +347,11 @@ Warn about non-virtual destructors Wnonnull C ObjC +; APPLE LOCAL constant cfstrings +Wnonportable-cfstrings +ObjC ObjC++ +Warn about non-ASCII characters or NULs in CFString literals + Wold-style-cast C++ ObjC++ Warn if a C-style cast is used in a program @@ -415,6 +455,11 @@ ansi C ObjC C++ ObjC++ A synonym for -std=c89. In a future version of GCC it will become synonymous with -std=c99 instead +; APPLE LOCAL fat builds +arch +C ObjC C++ ObjC++ Separate +The architecture to build for. + d C ObjC C++ ObjC++ Joined ; Documented in common.opt. FIXME - what about -dI, -dD, -dN and -dD? @@ -430,10 +475,28 @@ falt-external-templates C++ ObjC++ Change when template instances are emitted +; APPLE LOCAL -fapple-kext +fapple-kext +C++ +Used for building Darwin kernel extensions + fasm C ObjC C++ ObjC++ Recognize the \"asm\" keyword +; APPLE LOCAL fast, fastf, fastcp +fast +C +Used for c optimization + +fastcp +C++ +Used when C++ specific optimization is needed + +fastf +C +Used when c is generated from NAG fortran + fbuiltin C ObjC C++ ObjC++ Recognize built-in functions @@ -445,6 +508,11 @@ fcheck-new C++ ObjC++ Check the return value of new +; APPLE LOCAL structor decloning +fclone-structors +C++ ObjC++ +Factor out certain duplicate code in constructors and destructors + fcond-mismatch C ObjC C++ ObjC++ Allow the arguments of the '?' operator to have different types @@ -457,6 +525,11 @@ fconst-strings C++ ObjC++ Make string literals \"const char[]\" not \"char[]\" +; APPLE LOCAL constant cfstrings +fconstant-cfstrings +C ObjC C++ ObjC++ +Enable __builtin__CFStringMakeConstantString + fconstant-string-class= ObjC ObjC++ Joined -fconst-string-class=<name> Use class <name> for constant strings @@ -465,6 +538,10 @@ fdefault-inline C++ ObjC++ Inline member functions by default +fdisable-typechecking-for-spec +C C++ +Make crossfile type mismatches warnings not errors (for SPEC) + fdollars-in-identifiers C ObjC C++ ObjC++ Permit '$' as an identifier character @@ -542,6 +619,11 @@ fimplicit-templates C++ ObjC++ Emit implicit instantiations of templates +; APPLE LOCAL -findirect-virtual-calls +findirect-virtual-calls +C++ ObjC++ +Always use the vtable to make direct calls to virtual functions + flabels-ok C++ ObjC++ @@ -584,6 +666,11 @@ Enable optional diagnostics fpch-deps C ObjC C++ ObjC++ +; APPLE LOCAL pch distcc mrs +fpch-preprocess +C ObjC C++ ObjC++ +Enable PCH processing even when -E or -save-temps is used + fpermissive C++ ObjC++ Downgrade conformance errors to warnings @@ -604,6 +691,11 @@ frtti C++ ObjC++ Generate run time type descriptor information +; APPLE LOCAL Symbol Separation +fsave-repository= +C ObjC C++ ObjC++ Joined Separate +Creates separate symbol repository + fshort-double C ObjC C++ ObjC++ Use the same size for double as for float @@ -645,6 +737,11 @@ ftemplate-depth- C++ ObjC++ Joined RejectNegative UInteger -ftemplate-depth-<number> Specify maximum template instantiation depth +; APPLE LOCAL -fterminated-vtables +fterminated-vtables +C++ ObjC++ +Put zero word at the end of every vtable + fthis-is-variable C++ ObjC++ @@ -692,6 +789,11 @@ gen-decls ObjC ObjC++ Dump declarations to a .decl file +; APPLE LOCAL -header-mapfile +header-mapfile +C ObjC C++ ObjC++ Separate + + idirafter C ObjC C++ ObjC++ Joined Separate -idirafter <dir> Add <dir> to the end of the system include path @@ -704,6 +806,7 @@ include C ObjC C++ ObjC++ Joined Separate -include <file> Include the contents of <file> before other files + iprefix C ObjC C++ ObjC++ Joined Separate -iprefix <path> Specify <path> as a prefix for next two options |