OSDN Git Service

* search.c (get_dynamic_cast_base_type): When building a new
[pf3gnuchains/gcc-fork.git] / gcc / cp / lang-options.h
1 /* Definitions for switches for C++.
2    Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000
3    Free Software Foundation, Inc.
4
5 This file is part of GNU CC.
6
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.
11
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.
16
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.  */
21
22 DEFINE_LANG_NAME ("C++")
23      
24 /* This is the contribution to the `documented_lang_options' array in
25    toplev.c for g++.  */
26
27   { "-faccess-control", "" },
28   { "-fno-access-control", "Do not obey access control semantics" },
29   { "-fall-virtual", "" },
30   { "-fno-all-virtual", "" },
31   { "-falt-external-templates", "Change when template instances are emitted" },
32   { "-fno-alt-external-templates", "" },
33   { "-fansi-overloading", "" },
34   { "-fno-ansi-overloading", "" },
35   { "-fcheck-new", "Check the return value of new" },
36   { "-fno-check-new", "" },
37   { "-fconserve-space", "Reduce size of object files" },
38   { "-fno-conserve-space", "" },
39   { "-fconst-strings", "" },
40   { "-fno-const-strings", "Make string literals `char[]' instead of `const char[]'" },
41   { "-fdefault-inline", "" },
42   { "-fdump-translation-unit-", "Dump the entire translation unit to a file"},
43   { "-fno-default-inline", "Do not inline member functions by default"},
44   { "-frtti", "" },
45   { "-fno-rtti", "Do not generate run time type descriptor information" },
46   { "-felide-constructors", "" },
47   { "-fno-elide-constructors", "" },
48   { "-fenforce-eh-specs", "" },
49   { "-fno-enforce-eh-specs", "Do not generate code to check exception specifications" },
50   { "-fenum-int-equiv", "" },
51   { "-fno-enum-int-equiv", "" },
52   { "-fexternal-templates", "" },
53   { "-fno-external-templates", "" },
54   { "-ffor-scope", "" },
55   { "-fno-for-scope", "Scope of for-init-statement vars extends outside" },
56   { "-fguiding-decls", "Implement guiding declarations" },
57   { "-fno-guiding-decls", "" },
58   { "-fgnu-keywords", "" },
59   { "-fno-gnu-keywords", "Do not recognise GNU defined keywords" },
60   { "-fhandle-exceptions", "" },
61   { "-fno-handle-exceptions", "" },
62   { "-fhonor-std", "Treat the namespace `std' as a normal namespace" },
63   { "-fno-honor-std", "" },
64   { "-fhuge-objects", "Enable support for huge objects" },
65   { "-fno-huge-objects", "" },
66   { "-fimplement-inlines", "" },
67   { "-fno-implement-inlines", "Export functions even if they can be inlined" },
68   { "-fimplicit-templates", "" },
69   { "-fno-implicit-templates", "Only emit explicit template instatiations" },
70   { "-fimplicit-inline-templates", "" },
71   { "-fno-implicit-inline-templates", "Only emit explicit instatiations of inline templates" },
72   { "-finit-priority", "" },
73   { "-fno-init-priority", "" },
74   { "-flabels-ok", "Labels can be used as first class objects" },
75   { "-fno-labels-ok", "" },
76   { "-fmemoize-lookups", "" },
77   { "-fno-memoize-lookups", "" },
78   { "-fms-extensions", "Don't pedwarn about uses of Microsoft extensions" },
79   { "-fno-ms-extensions", "" },
80   { "-fname-mangling-version-", "" },
81   { "-fnew-abi", "Enable experimental ABI changes" },
82   { "-fno-new-abi", "" },
83   { "-fnonnull-objects", "" },
84   { "-fno-nonnull-objects", "" },
85   { "-foperator-names", "Recognise and/bitand/bitor/compl/not/or/xor" },
86   { "-fno-operator-names", "" },
87   { "-foptional-diags", "" },
88   { "-fno-optional-diags", "Disable optional diagnostics" },
89   { "-fpermissive", "Downgrade conformance errors to warnings" },
90   { "-fno-permissive", "" },
91   { "-frepo", "Enable automatic template instantiation" },
92   { "-fno-repo", "" },
93   { "-fsave-memoized", "" },
94   { "-fno-save-memoized", "" },
95   { "-fsquangle", "Enable squashed name mangling" },
96   { "-fno-squangle", "" },
97   { "-fstats", "Display statistics accumulated during compilation" },
98   { "-fno-stats", "" },
99   { "-fstrict-prototype", "" },
100   { "-fno-strict-prototype", "Do not assume that empty prototype means no args" },
101   { "-ftemplate-depth-", "Specify maximum template instantiation depth"},
102   { "-fthis-is-variable", ""  },
103   { "-fno-this-is-variable", "" },
104   { "-fuse-cxa-atexit", "Use __cxa_atexit to register destructors." },
105   { "-fno-use-cxa-atexit", "" },
106   { "-fvtable-gc", "Discard unused virtual functions" },
107   { "-fno-vtable-gc", "" },
108   { "-fvtable-thunks", "Implement vtables using thunks" },
109   { "-fno-vtable-thunks", "" },
110   { "-fweak", "Emit common-like symbols as weak symbols" },
111   { "-fno-weak", "" },
112   { "-fxref", "Emit cross referencing information" },
113   { "-fno-xref", "" },
114
115   { "-Wreturn-type", "Warn about inconsistent return types" },
116   { "-Wno-return-type", "" },
117   { "-Woverloaded-virtual", "Warn about overloaded virtual function names" },
118   { "-Wno-overloaded-virtual", "" },
119   { "-Wctor-dtor-privacy", "" },
120   { "-Wno-ctor-dtor-privacy", "Don't warn when all ctors/dtors are private" },
121   { "-Wnon-virtual-dtor", "Warn about non virtual destructors" },
122   { "-Wno-non-virtual-dtor", "" },
123   { "-Wextern-inline", "Warn when a function is declared extern, then inline" },
124   { "-Wno-extern-inline", "" },
125   { "-Wreorder", "Warn when the compiler reorders code" },
126   { "-Wno-reorder", "" },
127   { "-Wsynth", "Warn when synthesis behaviour differs from Cfront" },
128   { "-Wno-synth", "" },
129   { "-Wpmf-conversions", "" },
130   { "-Wno-pmf-conversions", "Don't warn when type converting pointers to member functions" },
131   { "-Weffc++", "Warn about violations of Effective C++ style rules" },
132   { "-Wno-effc++", "" },
133   { "-Wsign-promo", "Warn when overload promotes from unsigned to signed" },
134   { "-Wno-sign-promo", "" },
135   { "-Wold-style-cast", "Warn if a C style cast is used in a program" },
136   { "-Wno-old-style-cast", "" },
137   { "-Wnon-template-friend", "" }, 
138   { "-Wno-non-template-friend", "Don't warn when non-templatized friend functions are declared within a template" },
139   { "-Wdeprecated", "" },
140   { "-Wno-deprecated", "Don't announce deprecation of compiler features" },