diff options
author | loewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-10 07:48:15 +0000 |
---|---|---|
committer | loewis <loewis@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-10 07:48:15 +0000 |
commit | 7b8a297dba0c6203c019a0df317040e9e558f650 (patch) | |
tree | f573924d989d6fd402fbc9289692dffbbe58a1c9 /gcc/invoke.texi | |
parent | 488cf4959395ed92b7bdbed8dc7c5d44f3f8a4f3 (diff) | |
download | gcc-7b8a297dba0c6203c019a0df317040e9e558f650.tar.gz |
* invoke.texi (-ansi): Remove -foperator-names from list of
implied options. Do not call it ANSI C++.
(-foperator-names): Document as -fno-operator-names.
* cp/decl2.c (flag_operator_names): Default to 1.
(lang_decode_option): Do not set it for -ansi.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33051 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/invoke.texi')
-rw-r--r-- | gcc/invoke.texi | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/gcc/invoke.texi b/gcc/invoke.texi index bf83879b6ef..36176167286 100644 --- a/gcc/invoke.texi +++ b/gcc/invoke.texi @@ -103,17 +103,17 @@ in the following sections. @item C++ Language Options @xref{C++ Dialect Options,,Options Controlling C++ Dialect}. @smallexample --fno-access-control -fcheck-new -fconserve-space -fdollars-in-identifiers --fno-elide-constructors -fexternal-templates -ffor-scope --fno-for-scope -fno-gnu-keywords -fguiding-decls --fhonor-std -fhuge-objects -fno-implicit-templates -finit-priority --fno-implement-inlines -fname-mangling-version-@var{n} -fno-default-inline --foperator-names -fno-optional-diags -fpermissive -frepo -fstrict-prototype --fsquangle -ftemplate-depth-@var{n} -fuse-cxa-atexit -fvtable-thunks --nostdinc++ -Wctor-dtor-privacy -Wno-deprecated -Weffc++ --Wno-non-template-friend --Wnon-virtual-dtor -Wold-style-cast -Woverloaded-virtual --Wno-pmf-conversions -Wreorder -Wsign-promo -Wsynth +-fno-access-control -fcheck-new -fconserve-space +-fdollars-in-identifiers -fno-elide-constructors -fexternal-templates +-ffor-scope -fno-for-scope -fno-gnu-keywords -fguiding-decls -fhonor-std +-fhuge-objects -fno-implicit-templates -finit-priority +-fno-implement-inlines -fname-mangling-version-@var{n} +-fno-default-inline -fno-operator-names -fno-optional-diags -fpermissive +-frepo -fstrict-prototype -fsquangle -ftemplate-depth-@var{n} +-fuse-cxa-atexit -fvtable-thunks -nostdinc++ -Wctor-dtor-privacy +-Wno-deprecated -Weffc++ -Wno-non-template-friend -Wnon-virtual-dtor +-Wold-style-cast -Woverloaded-virtual -Wno-pmf-conversions -Wreorder +-Wsign-promo -Wsynth @end smallexample @item Warning Options @@ -672,19 +672,17 @@ from C, such as C++ and Objective C) that the compiler accepts: @cindex ANSI support @item -ansi In C mode, support all ANSI standard C programs. In C++ mode, -remove GNU extensions that conflict with ANSI C++. +remove GNU extensions that conflict with ISO C++. @c shouldn't we be saying "ISO"? This turns off certain features of GCC that are incompatible with ANSI -C (when compiling C code), or of ANSI standard C++ (when compiling C++ code), +C (when compiling C code), or of standard C++ (when compiling C++ code), such as the @code{asm} and @code{typeof} keywords, and predefined macros such as @code{unix} and @code{vax} that identify the type of system you are using. It also enables the undesirable and rarely used ANSI trigraph feature. For the C compiler, it disables recognition of C++ style @samp{//} comments as well as -the @code{inline} keyword. For the C++ compiler, -@samp{-foperator-names} is enabled as well. - +the @code{inline} keyword. The alternate keywords @code{__asm__}, @code{__extension__}, @code{__inline__} and @code{__typeof__} continue to work despite @@ -1180,11 +1178,10 @@ template <class T, class U> void foo(T t); Like all options that change the ABI, all C++ code, @emph{including libgcc} must be built with the same setting of this option. -@item -foperator-names -Recognize the operator name keywords @code{and}, @code{bitand}, +@item -fno-operator-names +Do not treat the operator name keywords @code{and}, @code{bitand}, @code{bitor}, @code{compl}, @code{not}, @code{or} and @code{xor} as -synonyms for the symbols they refer to. @samp{-ansi} implies -@samp{-foperator-names}. +synonyms as keywords. @item -fno-optional-diags Disable diagnostics that the standard says a compiler does not need to |