* config/alpha/x-vms (USE_COLLECT2): Set to empty.
[official-gcc.git] / gcc / cp / lang-options.h
blob10daa409755518d202c2f4e43abf6dce23588c03
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 recognize GNU defined keywords") },
65 { "-fhandle-exceptions", "" },
66 { "-fno-handle-exceptions", "" },
67 { "-fhuge-objects",
68 N_("Enable support for huge objects") },
69 { "-fno-huge-objects", "" },
70 { "-fimplement-inlines", "" },
71 { "-fno-implement-inlines",
72 N_("Export functions even if they can be inlined") },
73 { "-fimplicit-templates", "" },
74 { "-fno-implicit-templates",
75 N_("Only emit explicit template instatiations") },
76 { "-fimplicit-inline-templates", "" },
77 { "-fno-implicit-inline-templates",
78 N_("Only emit explicit instatiations of inline templates") },
79 { "-finit-priority", "" },
80 { "-fno-init-priority", "" },
81 { "-fmemoize-lookups", "" },
82 { "-fno-memoize-lookups", "" },
83 { "-fms-extensions",
84 N_("Don't pedwarn about uses of Microsoft extensions") },
85 { "-fno-ms-extensions", "" },
86 { "-foperator-names",
87 N_("Recognize and/bitand/bitor/compl/not/or/xor") },
88 { "-fno-operator-names", "" },
89 { "-foptional-diags", "" },
90 { "-fno-optional-diags",
91 N_("Disable optional diagnostics") },
92 { "-fpermissive",
93 N_("Downgrade conformance errors to warnings") },
94 { "-fno-permissive", "" },
95 { "-frepo",
96 N_("Enable automatic template instantiation") },
97 { "-fno-repo", "" },
98 { "-fsave-memoized", "" },
99 { "-fno-save-memoized", "" },
100 { "-fstats",
101 N_("Display statistics accumulated during compilation") },
102 { "-fno-stats", "" },
103 { "-ftemplate-depth-",
104 N_("Specify maximum template instantiation depth") },
105 { "-fuse-cxa-atexit",
106 N_("Use __cxa_atexit to register destructors") },
107 { "-fno-use-cxa-atexit", "" },
108 { "-fvtable-gc",
109 N_("Discard unused virtual functions") },
110 { "-fno-vtable-gc", "" },
111 { "-fvtable-thunks",
112 N_("Implement vtables using thunks") },
113 { "-fno-vtable-thunks", "" },
114 { "-fweak",
115 N_("Emit common-like symbols as weak symbols") },
116 { "-fno-weak", "" },
117 { "-fxref",
118 N_("Emit cross referencing information") },
119 { "-fno-xref", "" },
121 { "-Wreturn-type",
122 N_("Warn about inconsistent return types") },
123 { "-Wno-return-type", "" },
124 { "-Woverloaded-virtual",
125 N_("Warn about overloaded virtual function names") },
126 { "-Wno-overloaded-virtual", "" },
127 { "-Wctor-dtor-privacy", "" },
128 { "-Wno-ctor-dtor-privacy",
129 N_("Don't warn when all ctors/dtors are private") },
130 { "-Wnon-virtual-dtor",
131 N_("Warn about non virtual destructors") },
132 { "-Wno-non-virtual-dtor", "" },
133 { "-Wextern-inline",
134 N_("Warn when a function is declared extern, then inline") },
135 { "-Wno-extern-inline", "" },
136 { "-Wreorder",
137 N_("Warn when the compiler reorders code") },
138 { "-Wno-reorder", "" },
139 { "-Wsynth",
140 N_("Warn when synthesis behavior differs from Cfront") },
141 { "-Wno-synth", "" },
142 { "-Wpmf-conversions", "" },
143 { "-Wno-pmf-conversions",
144 N_("Don't warn when type converting pointers to member functions") },
145 { "-Weffc++",
146 N_("Warn about violations of Effective C++ style rules") },
147 { "-Wno-effc++", "" },
148 { "-Wsign-promo",
149 N_("Warn when overload promotes from unsigned to signed") },
150 { "-Wno-sign-promo", "" },
151 { "-Wold-style-cast",
152 N_("Warn if a C style cast is used in a program") },
153 { "-Wno-old-style-cast", "" },
154 { "-Wnon-template-friend", "" },
155 { "-Wno-non-template-friend",
156 N_("Don't warn when non-templatized friend functions are declared within a template") },
157 { "-Wdeprecated", "" },
158 { "-Wno-deprecated",
159 N_("Don't announce deprecation of compiler features") },