* doc/gcc.texi, doc/install.texi, doc/invoke.texi: Remove trailing
[official-gcc.git] / gcc / cp / lang-options.h
blob172461a95065e5480752019028b7f24044ea049f
1 /* Definitions for switches for C++.
2 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000
3 Free Software Foundation, Inc.
5 This file is part of GNU CC.
7 GNU CC is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2, or (at your option)
10 any later version.
12 GNU CC is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GNU CC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
22 DEFINE_LANG_NAME ("C++")
24 /* This is the contribution to the `documented_lang_options' array in
25 toplev.c for g++. */
27 { "-faccess-control", "" },
28 { "-fno-access-control",
29 N_("Do not obey access control semantics") },
30 { "-falt-external-templates",
31 N_("Change when template instances are emitted") },
32 { "-fno-alt-external-templates", "" },
33 { "-fansi-overloading", "" },
34 { "-fno-ansi-overloading", "" },
35 { "-fcheck-new",
36 N_("Check the return value of new") },
37 { "-fno-check-new", "" },
38 { "-fconserve-space",
39 N_("Reduce size of object files") },
40 { "-fno-conserve-space", "" },
41 { "-fconst-strings", "" },
42 { "-fno-const-strings",
43 N_("Make string literals `char[]' instead of `const char[]'") },
44 { "-fdefault-inline", "" },
45 { "-fdump-translation-unit-",
46 N_("Dump the entire translation unit to a file") },
47 { "-fno-default-inline",
48 N_("Do not inline member functions by default") },
49 { "-frtti", "" },
50 { "-fno-rtti",
51 N_("Do not generate run time type descriptor information") },
52 { "-felide-constructors", "" },
53 { "-fno-elide-constructors", "" },
54 { "-fenforce-eh-specs", "" },
55 { "-fno-enforce-eh-specs",
56 N_("Do not generate code to check exception specifications") },
57 { "-fexternal-templates", "" },
58 { "-fno-external-templates", "" },
59 { "-ffor-scope", "" },
60 { "-fno-for-scope",
61 N_("Scope of for-init-statement vars extends outside") },
62 { "-fgnu-keywords", "" },
63 { "-fno-gnu-keywords",
64 N_("Do not recognise GNU defined keywords") },
65 { "-fhandle-exceptions", "" },
66 { "-fno-handle-exceptions", "" },
67 { "-fhonor-std", "" },
68 { "-fno-honor-std",
69 N_("Do not treat the namespace `std' as a normal namespace") },
70 { "-fhuge-objects",
71 N_("Enable support for huge objects") },
72 { "-fno-huge-objects", "" },
73 { "-fimplement-inlines", "" },
74 { "-fno-implement-inlines",
75 N_("Export functions even if they can be inlined") },
76 { "-fimplicit-templates", "" },
77 { "-fno-implicit-templates",
78 N_("Only emit explicit template instatiations") },
79 { "-fimplicit-inline-templates", "" },
80 { "-fno-implicit-inline-templates",
81 N_("Only emit explicit instatiations of inline templates") },
82 { "-finit-priority", "" },
83 { "-fno-init-priority", "" },
84 { "-fmemoize-lookups", "" },
85 { "-fno-memoize-lookups", "" },
86 { "-fms-extensions",
87 N_("Don't pedwarn about uses of Microsoft extensions") },
88 { "-fno-ms-extensions", "" },
89 { "-foperator-names",
90 N_("Recognise and/bitand/bitor/compl/not/or/xor") },
91 { "-fno-operator-names", "" },
92 { "-foptional-diags", "" },
93 { "-fno-optional-diags",
94 N_("Disable optional diagnostics") },
95 { "-fpermissive",
96 N_("Downgrade conformance errors to warnings") },
97 { "-fno-permissive", "" },
98 { "-frepo",
99 N_("Enable automatic template instantiation") },
100 { "-fno-repo", "" },
101 { "-fsave-memoized", "" },
102 { "-fno-save-memoized", "" },
103 { "-fstats",
104 N_("Display statistics accumulated during compilation") },
105 { "-fno-stats", "" },
106 { "-ftemplate-depth-",
107 N_("Specify maximum template instantiation depth") },
108 { "-fuse-cxa-atexit",
109 N_("Use __cxa_atexit to register destructors.") },
110 { "-fno-use-cxa-atexit", "" },
111 { "-fvtable-gc",
112 N_("Discard unused virtual functions") },
113 { "-fno-vtable-gc", "" },
114 { "-fvtable-thunks",
115 N_("Implement vtables using thunks") },
116 { "-fno-vtable-thunks", "" },
117 { "-fweak",
118 N_("Emit common-like symbols as weak symbols") },
119 { "-fno-weak", "" },
120 { "-fxref",
121 N_("Emit cross referencing information") },
122 { "-fno-xref", "" },
124 { "-Wreturn-type",
125 N_("Warn about inconsistent return types") },
126 { "-Wno-return-type", "" },
127 { "-Woverloaded-virtual",
128 N_("Warn about overloaded virtual function names") },
129 { "-Wno-overloaded-virtual", "" },
130 { "-Wctor-dtor-privacy", "" },
131 { "-Wno-ctor-dtor-privacy",
132 N_("Don't warn when all ctors/dtors are private") },
133 { "-Wnon-virtual-dtor",
134 N_("Warn about non virtual destructors") },
135 { "-Wno-non-virtual-dtor", "" },
136 { "-Wextern-inline",
137 N_("Warn when a function is declared extern, then inline") },
138 { "-Wno-extern-inline", "" },
139 { "-Wreorder",
140 N_("Warn when the compiler reorders code") },
141 { "-Wno-reorder", "" },
142 { "-Wsynth",
143 N_("Warn when synthesis behaviour differs from Cfront") },
144 { "-Wno-synth", "" },
145 { "-Wpmf-conversions", "" },
146 { "-Wno-pmf-conversions",
147 N_("Don't warn when type converting pointers to member functions") },
148 { "-Weffc++",
149 N_("Warn about violations of Effective C++ style rules") },
150 { "-Wno-effc++", "" },
151 { "-Wsign-promo",
152 N_("Warn when overload promotes from unsigned to signed") },
153 { "-Wno-sign-promo", "" },
154 { "-Wold-style-cast",
155 N_("Warn if a C style cast is used in a program") },
156 { "-Wno-old-style-cast", "" },
157 { "-Wnon-template-friend", "" },
158 { "-Wno-non-template-friend",
159 N_("Don't warn when non-templatized friend functions are declared within a template") },
160 { "-Wdeprecated", "" },
161 { "-Wno-deprecated",
162 N_("Don't announce deprecation of compiler features") },