Commit bae92bf3 by Neil Booth Committed by Neil Booth

c.opt: Document more options.

	* c.opt: Document more options.
cp:
	* lang-options.h: Remove.

From-SVN: r69477
parent cc8c96fd
2003-07-16 Neil Booth <neil@daikokuya.co.uk>
* c.opt: Document more options.
2003-07-16 Roger Sayle <roger@eyesopen.com> 2003-07-16 Roger Sayle <roger@eyesopen.com>
* combine.c (subst): Also handle (subreg (const_double ...)) case * combine.c (subst): Also handle (subreg (const_double ...)) case
......
...@@ -174,9 +174,11 @@ Warn about possibly confusing type conversions ...@@ -174,9 +174,11 @@ Warn about possibly confusing type conversions
Wctor-dtor-privacy Wctor-dtor-privacy
C++ ObjC++ C++ ObjC++
Warn when all constructors and destructors are private
Wdeprecated Wdeprecated
C++ ObjC++ C++ ObjC++
Warn about deprecated compiler features
Wdiv-by-zero Wdiv-by-zero
C ObjC C ObjC
...@@ -184,6 +186,7 @@ Warn about compile-time integer division by zero ...@@ -184,6 +186,7 @@ Warn about compile-time integer division by zero
Weffc++ Weffc++
C++ ObjC++ C++ ObjC++
Warn about violations of Effective C++ style rules
Wendif-labels Wendif-labels
C ObjC C++ ObjC++ C ObjC C++ ObjC++
...@@ -244,6 +247,7 @@ Warn about uses of the \"#import\" directive ...@@ -244,6 +247,7 @@ Warn about uses of the \"#import\" directive
Winvalid-offsetof Winvalid-offsetof
C++ ObjC++ C++ ObjC++
Warn about invalid uses of the \"offsetof\" macro
Winvalid-pch Winvalid-pch
C ObjC C++ ObjC++ C ObjC C++ ObjC++
...@@ -283,18 +287,22 @@ Warn about \"extern\" declarations not at file scope ...@@ -283,18 +287,22 @@ Warn about \"extern\" declarations not at file scope
Wnon-template-friend Wnon-template-friend
C++ ObjC++ C++ ObjC++
Warn when non-templatized friend functions are declared within a template
Wnon-virtual-dtor Wnon-virtual-dtor
C++ ObjC++ C++ ObjC++
Warn about non-virtual destructors
Wnonnull Wnonnull
C ObjC C ObjC
Wold-style-cast Wold-style-cast
C++ ObjC++ C++ ObjC++
Warn if a C-style cast is used in a program
Woverloaded-virtual Woverloaded-virtual
C++ ObjC++ C++ ObjC++
Warn about overloaded virtual function names
Wparentheses Wparentheses
C ObjC C++ ObjC++ C ObjC C++ ObjC++
...@@ -302,6 +310,7 @@ Warn about possibly missing parentheses ...@@ -302,6 +310,7 @@ Warn about possibly missing parentheses
Wpmf-conversions Wpmf-conversions
C++ ObjC++ C++ ObjC++
Warn when converting the type of pointers to member functions
Wpointer-arith Wpointer-arith
C ObjC C++ ObjC++ C ObjC C++ ObjC++
...@@ -316,10 +325,11 @@ Warn about multiple declarations of the same object ...@@ -316,10 +325,11 @@ Warn about multiple declarations of the same object
Wreorder Wreorder
C++ ObjC++ C++ ObjC++
Warn when the compiler reorders code
Wreturn-type Wreturn-type
C ObjC C++ ObjC++ C ObjC C++ ObjC++
Warn whenever a function's return type defaults to \"int\" Warn whenever a function's return type defaults to \"int\" (C), or about inconsistent return types (C++)
Wselector Wselector
ObjC ObjC++ ObjC ObjC++
...@@ -334,6 +344,7 @@ Warn about signed-unsigned comparisons ...@@ -334,6 +344,7 @@ Warn about signed-unsigned comparisons
Wsign-promo Wsign-promo
C++ ObjC++ C++ ObjC++
Warn when overload promotes from unsigned to signed
Wstrict-prototypes Wstrict-prototypes
C ObjC C ObjC
...@@ -341,6 +352,7 @@ Warn about unprototyped function declarations ...@@ -341,6 +352,7 @@ Warn about unprototyped function declarations
Wsynth Wsynth
C++ ObjC++ C++ ObjC++
Warn when synthesis behavior differs from Cfront
Wsystem-headers Wsystem-headers
C ObjC C++ ObjC++ C ObjC C++ ObjC++
...@@ -386,12 +398,14 @@ C++ ObjC++ Joined UInteger ...@@ -386,12 +398,14 @@ C++ ObjC++ Joined UInteger
faccess-control faccess-control
C++ ObjC++ C++ ObjC++
Enforce class member access control semantics
fall-virtual fall-virtual
C++ ObjC++ C++ ObjC++
falt-external-templates falt-external-templates
C++ ObjC++ C++ ObjC++
Change when template instances are emitted
fasm fasm
C ObjC C++ ObjC++ C ObjC C++ ObjC++
...@@ -406,6 +420,7 @@ C ObjC C++ ObjC++ Joined ...@@ -406,6 +420,7 @@ C ObjC C++ ObjC++ Joined
fcheck-new fcheck-new
C++ ObjC++ C++ ObjC++
Check the return value of new
fcond-mismatch fcond-mismatch
C ObjC C++ ObjC++ C ObjC C++ ObjC++
...@@ -413,15 +428,18 @@ Allow the arguments of the '?' operator to have different types ...@@ -413,15 +428,18 @@ Allow the arguments of the '?' operator to have different types
fconserve-space fconserve-space
C++ ObjC++ C++ ObjC++
Reduce the size of object files
fconst-strings fconst-strings
C++ ObjC++ C++ ObjC++
Make string literals \"const char[]\" not \"char[]\"
fconstant-string-class= fconstant-string-class=
ObjC ObjC++ Joined ObjC ObjC++ Joined
fdefault-inline fdefault-inline
C++ ObjC++ C++ ObjC++
Inline member functions by default
fdollars-in-identifiers fdollars-in-identifiers
C ObjC C++ ObjC++ C ObjC C++ ObjC++
...@@ -429,12 +447,14 @@ Permit '$' as an identifier character ...@@ -429,12 +447,14 @@ Permit '$' as an identifier character
fdump- fdump-
C ObjC C++ ObjC++ Joined RejectNegative C ObjC C++ ObjC++ Joined RejectNegative
-fdump-<type> Dump various compiler internals to a file
felide-constructors felide-constructors
C++ ObjC++ C++ ObjC++
fenforce-eh-specs fenforce-eh-specs
C++ ObjC++ C++ ObjC++
Generate code to check exception specifications
fenum-int-equiv fenum-int-equiv
C++ ObjC++ C++ ObjC++
...@@ -454,6 +474,7 @@ C ObjC Joined ...@@ -454,6 +474,7 @@ C ObjC Joined
ffor-scope ffor-scope
C++ ObjC++ C++ ObjC++
Scope of for-init-statement variables is local to the loop
ffreestanding ffreestanding
C ObjC C ObjC
...@@ -461,6 +482,7 @@ Do not assume that standard C libraries and \"main\" exist ...@@ -461,6 +482,7 @@ Do not assume that standard C libraries and \"main\" exist
fgnu-keywords fgnu-keywords
C++ ObjC++ C++ ObjC++
Recognize GNU-defined keywords
fgnu-runtime fgnu-runtime
ObjC ObjC++ ObjC ObjC++
...@@ -480,21 +502,26 @@ Assume normal C execution environment ...@@ -480,21 +502,26 @@ Assume normal C execution environment
fhuge-objects fhuge-objects
C++ ObjC++ C++ ObjC++
Enable support for huge objects
fimplement-inlines fimplement-inlines
C++ ObjC++ C++ ObjC++
Export functions even if they can be inlined
fimplicit-inline-templates fimplicit-inline-templates
C++ ObjC++ C++ ObjC++
Emit implicit instantiations of inline templates
fimplicit-templates fimplicit-templates
C++ ObjC++ C++ ObjC++
Emit implicit instantiations of templates
flabels-ok flabels-ok
C++ ObjC++ C++ ObjC++
fms-extensions fms-extensions
C ObjC C++ ObjC++ C ObjC C++ ObjC++
Don't warn about uses of Microsoft extensions
fname-mangling-version- fname-mangling-version-
C++ ObjC++ Joined C++ ObjC++ Joined
...@@ -513,15 +540,18 @@ C++ ObjC++ ...@@ -513,15 +540,18 @@ C++ ObjC++
foperator-names foperator-names
C++ ObjC++ C++ ObjC++
Recognize C++ kewords like \"compl\" and \"xor\"
foptional-diags foptional-diags
C++ ObjC++ C++ ObjC++
Enable optional diagnostics
fpch-deps fpch-deps
C ObjC C++ ObjC++ C ObjC C++ ObjC++
fpermissive fpermissive
C++ ObjC++ C++ ObjC++
Downgrade conformance errors to warnings
fpreprocessed fpreprocessed
C ObjC C++ ObjC++ C ObjC C++ ObjC++
...@@ -529,9 +559,11 @@ Treat the input file as already preprocessed ...@@ -529,9 +559,11 @@ Treat the input file as already preprocessed
frepo frepo
C++ ObjC++ C++ ObjC++
Enable automatic template instantiation
frtti frtti
C++ ObjC++ C++ ObjC++
Generate run time type descriptor information
fshort-double fshort-double
C ObjC C++ ObjC++ C ObjC C++ ObjC++
...@@ -561,6 +593,7 @@ C++ ObjC++ ...@@ -561,6 +593,7 @@ C++ ObjC++
fstats fstats
C++ ObjC++ C++ ObjC++
Display statistics accumulated during compilation
fstrict-prototype fstrict-prototype
C++ ObjC++ C++ ObjC++
...@@ -571,6 +604,7 @@ C ObjC C++ ObjC++ Joined RejectNegative UInteger ...@@ -571,6 +604,7 @@ C ObjC C++ ObjC++ Joined RejectNegative UInteger
ftemplate-depth- ftemplate-depth-
C++ ObjC++ Joined RejectNegative UInteger C++ ObjC++ Joined RejectNegative UInteger
-ftemplate-depth-<number> Specify maximum template instantiation depth
fthis-is-variable fthis-is-variable
C++ ObjC++ C++ ObjC++
...@@ -585,15 +619,19 @@ Make \"char\" unsigned by default ...@@ -585,15 +619,19 @@ Make \"char\" unsigned by default
fuse-cxa-atexit fuse-cxa-atexit
C++ ObjC++ C++ ObjC++
Use __cxa_atexit to register destructors
fvtable-gc fvtable-gc
C++ ObjC++ C++ ObjC++
Discard unused virtual functions
fvtable-thunks fvtable-thunks
C++ ObjC++ C++ ObjC++
Implement vtables using thunks
fweak fweak
C++ ObjC++ C++ ObjC++
Emit common-like symbols as weak symbols
fwide-exec-charset= fwide-exec-charset=
C ObjC C++ ObjC++ Joined RejectNegative C ObjC C++ ObjC++ Joined RejectNegative
...@@ -601,6 +639,7 @@ C ObjC C++ ObjC++ Joined RejectNegative ...@@ -601,6 +639,7 @@ C ObjC C++ ObjC++ Joined RejectNegative
fxref fxref
C++ ObjC++ C++ ObjC++
Emit cross referencing information
gen-decls gen-decls
ObjC ObjC++ ObjC ObjC++
......
2003-07-16 Neil Booth <neil@daikokuya.co.uk>
* lang-options.h: Remove.
2003-07-16 Andrew Pinski <pinskia@physics.uc.edu> 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
PR c/10962 PR c/10962
......
/* Definitions for switches for C++.
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2003 Free Software Foundation, Inc.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
DEFINE_LANG_NAME ("C++")
/* This is the contribution to the `documented_lang_options' array in
toplev.c for g++. */
{ "-faccess-control", "" },
{ "-fno-access-control",
N_("Do not obey access control semantics") },
{ "-falt-external-templates",
N_("Change when template instances are emitted") },
{ "-fno-alt-external-templates", "" },
{ "-fansi-overloading", "" },
{ "-fno-ansi-overloading", "" },
{ "-fcheck-new",
N_("Check the return value of new") },
{ "-fno-check-new", "" },
{ "-fconserve-space",
N_("Reduce size of object files") },
{ "-fno-conserve-space", "" },
{ "-fconst-strings", "" },
{ "-fno-const-strings",
N_("Make string literals `char[]' instead of `const char[]'") },
{ "-fdefault-inline", "" },
{ "-fdump-translation-unit-",
N_("Dump the entire translation unit to a file") },
{ "-fno-default-inline",
N_("Do not inline member functions by default") },
{ "-frtti", "" },
{ "-fno-rtti",
N_("Do not generate run time type descriptor information") },
{ "-felide-constructors", "" },
{ "-fno-elide-constructors", "" },
{ "-fenforce-eh-specs", "" },
{ "-fno-enforce-eh-specs",
N_("Do not generate code to check exception specifications") },
{ "-fexternal-templates", "" },
{ "-fno-external-templates", "" },
{ "-ffor-scope", "" },
{ "-fno-for-scope",
N_("Scope of for-init-statement vars extends outside") },
{ "-fgnu-keywords", "" },
{ "-fno-gnu-keywords",
N_("Do not recognize GNU defined keywords") },
{ "-fhandle-exceptions", "" },
{ "-fno-handle-exceptions", "" },
{ "-fhuge-objects",
N_("Enable support for huge objects") },
{ "-fno-huge-objects", "" },
{ "-fimplement-inlines", "" },
{ "-fno-implement-inlines",
N_("Export functions even if they can be inlined") },
{ "-fimplicit-templates", "" },
{ "-fno-implicit-templates",
N_("Only emit explicit template instantiations") },
{ "-fimplicit-inline-templates", "" },
{ "-fno-implicit-inline-templates",
N_("Only emit explicit instantiations of inline templates") },
{ "-finit-priority", "" },
{ "-fno-init-priority", "" },
{ "-fmemoize-lookups", "" },
{ "-fno-memoize-lookups", "" },
{ "-fms-extensions",
N_("Don't pedwarn about uses of Microsoft extensions") },
{ "-fno-ms-extensions", "" },
{ "-foperator-names",
N_("Recognize and/bitand/bitor/compl/not/or/xor") },
{ "-fno-operator-names", "" },
{ "-foptional-diags", "" },
{ "-fno-optional-diags",
N_("Disable optional diagnostics") },
{ "-fpermissive",
N_("Downgrade conformance errors to warnings") },
{ "-fno-permissive", "" },
{ "-frepo",
N_("Enable automatic template instantiation") },
{ "-fno-repo", "" },
{ "-fsave-memoized", "" },
{ "-fno-save-memoized", "" },
{ "-fstats",
N_("Display statistics accumulated during compilation") },
{ "-fno-stats", "" },
{ "-ftemplate-depth-",
N_("Specify maximum template instantiation depth") },
{ "-fuse-cxa-atexit",
N_("Use __cxa_atexit to register destructors") },
{ "-fno-use-cxa-atexit", "" },
{ "-fvtable-gc",
N_("Discard unused virtual functions") },
{ "-fno-vtable-gc", "" },
{ "-fvtable-thunks",
N_("Implement vtables using thunks") },
{ "-fno-vtable-thunks", "" },
{ "-fweak",
N_("Emit common-like symbols as weak symbols") },
{ "-fno-weak", "" },
{ "-fxref",
N_("Emit cross referencing information") },
{ "-fno-xref", "" },
{ "-Wreturn-type",
N_("Warn about inconsistent return types") },
{ "-Wno-return-type", "" },
{ "-Woverloaded-virtual",
N_("Warn about overloaded virtual function names") },
{ "-Wno-overloaded-virtual", "" },
{ "-Wctor-dtor-privacy", "" },
{ "-Wno-ctor-dtor-privacy",
N_("Don't warn when all ctors/dtors are private") },
{ "-Wnon-virtual-dtor",
N_("Warn about non virtual destructors") },
{ "-Wno-non-virtual-dtor", "" },
{ "-Wextern-inline",
N_("Warn when a function is declared extern, then inline") },
{ "-Wno-extern-inline", "" },
{ "-Wreorder",
N_("Warn when the compiler reorders code") },
{ "-Wno-reorder", "" },
{ "-Wsynth",
N_("Warn when synthesis behavior differs from Cfront") },
{ "-Wno-synth", "" },
{ "-Wpmf-conversions", "" },
{ "-Wno-pmf-conversions",
N_("Don't warn when type converting pointers to member functions") },
{ "-Weffc++",
N_("Warn about violations of Effective C++ style rules") },
{ "-Wno-effc++", "" },
{ "-Wsign-promo",
N_("Warn when overload promotes from unsigned to signed") },
{ "-Wno-sign-promo", "" },
{ "-Wold-style-cast",
N_("Warn if a C style cast is used in a program") },
{ "-Wno-old-style-cast", "" },
{ "-Wnon-template-friend", "" },
{ "-Wno-non-template-friend",
N_("Don't warn when non-templatized friend functions are declared within a template") },
{ "-Wdeprecated", "" },
{ "-Wno-deprecated",
N_("Don't announce deprecation of compiler features") },
{ "-Winvalid-offsetof", "" },
{ "-Wno-invalid-offsetof",
N_("Don't warn about invalid uses of the offsetof macro") },
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment