1996-09-18 05:35:50 +00:00
|
|
|
/* Definitions for switches for C++.
|
2002-02-01 18:16:02 +00:00
|
|
|
Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000
|
|
|
|
Free Software Foundation, Inc.
|
1996-09-18 05:35:50 +00:00
|
|
|
|
|
|
|
This file is part of GNU CC.
|
|
|
|
|
|
|
|
GNU CC 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.
|
|
|
|
|
|
|
|
GNU CC 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 GNU CC; see the file COPYING. If not, write to
|
|
|
|
the Free Software Foundation, 59 Temple Place - Suite 330,
|
|
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
|
1999-08-26 09:30:50 +00:00
|
|
|
DEFINE_LANG_NAME ("C++")
|
|
|
|
|
2002-02-01 18:16:02 +00:00
|
|
|
/* This is the contribution to the `documented_lang_options' array in
|
|
|
|
toplev.c for g++. */
|
1996-09-18 05:35:50 +00:00
|
|
|
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-faccess-control", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fno-access-control",
|
|
|
|
N_("Do not obey access control semantics") },
|
|
|
|
{ "-falt-external-templates",
|
|
|
|
N_("Change when template instances are emitted") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-alt-external-templates", "" },
|
|
|
|
{ "-fansi-overloading", "" },
|
|
|
|
{ "-fno-ansi-overloading", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fcheck-new",
|
|
|
|
N_("Check the return value of new") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-check-new", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fconserve-space",
|
|
|
|
N_("Reduce size of object files") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-conserve-space", "" },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-fconst-strings", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fno-const-strings",
|
|
|
|
N_("Make string literals `char[]' instead of `const char[]'") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fdefault-inline", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fdump-translation-unit-",
|
|
|
|
N_("Dump the entire translation unit to a file") },
|
|
|
|
{ "-fno-default-inline",
|
|
|
|
N_("Do not inline member functions by default") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-frtti", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fno-rtti",
|
|
|
|
N_("Do not generate run time type descriptor information") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-felide-constructors", "" },
|
|
|
|
{ "-fno-elide-constructors", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fenforce-eh-specs", "" },
|
|
|
|
{ "-fno-enforce-eh-specs",
|
|
|
|
N_("Do not generate code to check exception specifications") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fexternal-templates", "" },
|
|
|
|
{ "-fno-external-templates", "" },
|
|
|
|
{ "-ffor-scope", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fno-for-scope",
|
|
|
|
N_("Scope of for-init-statement vars extends outside") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fgnu-keywords", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fno-gnu-keywords",
|
|
|
|
N_("Do not recognize GNU defined keywords") },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-fhandle-exceptions", "" },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-handle-exceptions", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fhuge-objects",
|
|
|
|
N_("Enable support for huge objects") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-huge-objects", "" },
|
|
|
|
{ "-fimplement-inlines", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fno-implement-inlines",
|
|
|
|
N_("Export functions even if they can be inlined") },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-fimplicit-templates", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fno-implicit-templates",
|
2003-07-11 03:40:53 +00:00
|
|
|
N_("Only emit explicit template instantiations") },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-fimplicit-inline-templates", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fno-implicit-inline-templates",
|
2003-07-11 03:40:53 +00:00
|
|
|
N_("Only emit explicit instantiations of inline templates") },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-finit-priority", "" },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-fno-init-priority", "" },
|
|
|
|
{ "-fmemoize-lookups", "" },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-memoize-lookups", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-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") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-operator-names", "" },
|
|
|
|
{ "-foptional-diags", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fno-optional-diags",
|
|
|
|
N_("Disable optional diagnostics") },
|
|
|
|
{ "-fpermissive",
|
|
|
|
N_("Downgrade conformance errors to warnings") },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-fno-permissive", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-frepo",
|
|
|
|
N_("Enable automatic template instantiation") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-repo", "" },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-fsave-memoized", "" },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-save-memoized", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fstats",
|
|
|
|
N_("Display statistics accumulated during compilation") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-stats", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-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") },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-fno-vtable-gc", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fvtable-thunks",
|
|
|
|
N_("Implement vtables using thunks") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-vtable-thunks", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fweak",
|
|
|
|
N_("Emit common-like symbols as weak symbols") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-weak", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-fxref",
|
|
|
|
N_("Emit cross referencing information") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-fno-xref", "" },
|
1996-09-18 05:35:50 +00:00
|
|
|
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Wreturn-type",
|
|
|
|
N_("Warn about inconsistent return types") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-Wno-return-type", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Woverloaded-virtual",
|
|
|
|
N_("Warn about overloaded virtual function names") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-Wno-overloaded-virtual", "" },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-Wctor-dtor-privacy", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Wno-ctor-dtor-privacy",
|
|
|
|
N_("Don't warn when all ctors/dtors are private") },
|
|
|
|
{ "-Wnon-virtual-dtor",
|
|
|
|
N_("Warn about non virtual destructors") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-Wno-non-virtual-dtor", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Wextern-inline",
|
|
|
|
N_("Warn when a function is declared extern, then inline") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-Wno-extern-inline", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Wreorder",
|
|
|
|
N_("Warn when the compiler reorders code") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-Wno-reorder", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Wsynth",
|
|
|
|
N_("Warn when synthesis behavior differs from Cfront") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-Wno-synth", "" },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-Wpmf-conversions", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Wno-pmf-conversions",
|
|
|
|
N_("Don't warn when type converting pointers to member functions") },
|
|
|
|
{ "-Weffc++",
|
|
|
|
N_("Warn about violations of Effective C++ style rules") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-Wno-effc++", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Wsign-promo",
|
|
|
|
N_("Warn when overload promotes from unsigned to signed") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-Wno-sign-promo", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Wold-style-cast",
|
|
|
|
N_("Warn if a C style cast is used in a program") },
|
1999-08-26 09:30:50 +00:00
|
|
|
{ "-Wno-old-style-cast", "" },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-Wnon-template-friend", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Wno-non-template-friend",
|
|
|
|
N_("Don't warn when non-templatized friend functions are declared within a template") },
|
1999-10-16 06:09:09 +00:00
|
|
|
{ "-Wdeprecated", "" },
|
2002-02-01 18:16:02 +00:00
|
|
|
{ "-Wno-deprecated",
|
|
|
|
N_("Don't announce deprecation of compiler features") },
|