1 /* Definitions for switches for C++.
2 Copyright (C) 1995, 96-97, 1998 Free Software Foundation, Inc.
4 This file is part of GNU CC.
6 GNU CC is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GNU CC is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GNU CC; see the file COPYING. If not, write to
18 the Free Software Foundation, 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
21 DEFINE_LANG_NAME ("C++")
23 /* This is the contribution to the `lang_options' array in gcc.c for
26 { "-faccess-control", "" },
27 { "-fno-access-control", "Do not obey access control semantics" },
28 { "-fall-virtual", "Make all member functions virtual" },
29 { "-fno-all-virtual", "" },
30 { "-falt-external-templates", "Change when template instances are emitted" },
31 { "-fno-alt-external-templates", "" },
32 { "-fansi-overloading", "" },
33 { "-fno-ansi-overloading", "" },
34 { "-fcheck-new", "Check the return value of new" },
35 { "-fno-check-new", "" },
36 { "-fconserve-space", "Reduce size of object files" },
37 { "-fno-conserve-space", "" },
38 { "-fconst-strings", "" },
39 { "-fno-const-strings", "Make string literals `char[]' instead of `const char[]'" },
40 { "-fdefault-inline", "" },
41 { "-fdump-translation-unit-", "Dump the entire translation unit to a file"},
42 { "-fno-default-inline", "Do not inline member functions by default"},
44 { "-fno-rtti", "Do not generate run time type descriptor information" },
45 { "-felide-constructors", "" },
46 { "-fno-elide-constructors", "" },
47 { "-fenum-int-equiv", "" },
48 { "-fno-enum-int-equiv", "" },
49 { "-fexternal-templates", "" },
50 { "-fno-external-templates", "" },
51 { "-ffor-scope", "" },
52 { "-fno-for-scope", "Scope of for-init-statement vars extends outside" },
53 { "-fguiding-decls", "Implement guiding declarations" },
54 { "-fno-guiding-decls", "" },
55 { "-fgnu-keywords", "" },
56 { "-fno-gnu-keywords", "Do not recognise GNU defined keywords" },
57 { "-fhandle-exceptions", "" },
58 { "-fno-handle-exceptions", "" },
59 { "-fhonor-std", "Treat the namespace `std' as a normal namespace" },
60 { "-fno-honor-std", "" },
61 { "-fhuge-objects", "Enable support for huge objects" },
62 { "-fno-huge-objects", "" },
63 { "-fimplement-inlines", "" },
64 { "-fno-implement-inlines", "Export functions even if they can be inlined" },
65 { "-fimplicit-templates", "" },
66 { "-fno-implicit-templates", "Only emit explicit template instatiations" },
67 { "-fimplicit-inline-templates", "" },
68 { "-fno-implicit-inline-templates", "Only emit explicit instatiations of inline templates" },
69 { "-finit-priority", "Handle the init_priority attribute" },
70 { "-fno-init-priority", "" },
71 { "-flabels-ok", "Labels can be used as first class objects" },
72 { "-fno-labels-ok", "" },
73 { "-fmemoize-lookups", "" },
74 { "-fno-memoize-lookups", "" },
75 { "-fms-extensions", "Don't pedwarn about uses of Microsoft extensions" },
76 { "-fno-ms-extensions", "" },
77 { "-fname-mangling-version-", "" },
78 { "-fnew-abi", "Enable experimental ABI changes" },
79 { "-fno-new-abi", "" },
80 { "-fnonnull-objects", "" },
81 { "-fno-nonnull-objects", "Do not assume that a reference is always valid" },
82 { "-foperator-names", "Recognise and/bitand/bitor/compl/not/or/xor" },
83 { "-fno-operator-names", "" },
84 { "-foptional-diags", "" },
85 { "-fno-optional-diags", "Disable optional diagnostics" },
86 { "-fpermissive", "Downgrade conformance errors to warnings" },
87 { "-fno-permissive", "" },
88 { "-frepo", "Enable automatic template instantiation" },
90 { "-fsave-memoized", "" },
91 { "-fno-save-memoized", "" },
92 { "-fsquangle", "Enable squashed name mangling" },
93 { "-fno-squangle", "" },
94 { "-fstats", "Display statistics accumulated during compilation" },
96 { "-fstrict-prototype", "" },
97 { "-fno-strict-prototype", "Do not assume that empty prototype means no args" },
98 { "-ftemplate-depth-", "Specify maximum template instantiation depth"},
99 { "-fthis-is-variable", "Make 'this' not be type '* const'" },
100 { "-fno-this-is-variable", "" },
101 { "-fvtable-gc", "Discard unused virtual functions" },
102 { "-fno-vtable-gc", "" },
103 { "-fvtable-thunks", "Implement vtables using thunks" },
104 { "-fno-vtable-thunks", "" },
105 { "-fweak", "Emit common-like symbols as weak symbols" },
107 { "-fxref", "Emit cross referencing information" },
110 { "-Wreturn-type", "Warn about inconsistent return types" },
111 { "-Wno-return-type", "" },
112 { "-Woverloaded-virtual", "Warn about overloaded virtual function names" },
113 { "-Wno-overloaded-virtual", "" },
114 { "-Wctor-dtor-privacy", "" },
115 { "-Wno-ctor-dtor-privacy", "Don't warn when all ctors/dtors are private" },
116 { "-Wnon-virtual-dtor", "Warn about non virtual destructors" },
117 { "-Wno-non-virtual-dtor", "" },
118 { "-Wextern-inline", "Warn when a function is declared extern, then inline" },
119 { "-Wno-extern-inline", "" },
120 { "-Wreorder", "Warn when the compiler reorders code" },
121 { "-Wno-reorder", "" },
122 { "-Wsynth", "Warn when synthesis behaviour differs from Cfront" },
123 { "-Wno-synth", "" },
124 { "-Wpmf-conversions", "" },
125 { "-Wno-pmf-conversions", "Don't warn when type converting pointers to member functions" },
126 { "-Weffc++", "Warn about violations of Effective C++ style rules" },
127 { "-Wno-effc++", "" },
128 { "-Wsign-promo", "Warn when overload promotes from unsigned to signed" },
129 { "-Wno-sign-promo", "" },
130 { "-Wold-style-cast", "Warn if a C style cast is used in a program" },
131 { "-Wno-old-style-cast", "" },
132 { "-Wnon-template-friend", "" },
133 { "-Wno-non-template-friend", "Don't warn when non-templatized friend functions are declared within a template" },
134 { "-Wdeprecated", "" },
135 { "-Wno-deprecated", "Don't announce deprecation of compiler features" },