diff options
Diffstat (limited to 'gcc/c.opt')
-rw-r--r-- | gcc/c.opt | 99 |
1 files changed, 98 insertions, 1 deletions
diff --git a/gcc/c.opt b/gcc/c.opt index 4855ee2b03e..2b86c8643a5 100644 --- a/gcc/c.opt +++ b/gcc/c.opt @@ -103,7 +103,7 @@ Print the name of header files as they are used I C ObjC C++ ObjC++ Joined Separate --I <dir> Add <dir> to the end of the main include path. -I- gives more include path control; see info documentation +-I <dir> Add <dir> to the end of the main include path M C ObjC C++ ObjC++ @@ -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 @@ -415,6 +450,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 +470,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 +503,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 @@ -465,6 +528,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 +609,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 +656,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 +681,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 +727,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 +779,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 +796,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 @@ -716,6 +809,10 @@ isystem C ObjC C++ ObjC++ Joined Separate -isystem <dir> Add <dir> to the start of the system include path +iquote +C ObjC C++ ObjC++ Joined Separate +-iquote <dir> Add <dir> to the end of the quote include path + iwithprefix C ObjC C++ ObjC++ Joined Separate -iwithprefix <dir> Add <dir> to the end of the system include path |