diff options
author | Martin v. Löwis <loewis@informatik.hu-berlin.de> | 2000-04-10 07:48:15 +0000 |
---|---|---|
committer | Martin v. Löwis <loewis@gcc.gnu.org> | 2000-04-10 07:48:15 +0000 |
commit | 775afb2516d17b4a3c63ffe7be4d7144a75fb0a1 (patch) | |
tree | f573924d989d6fd402fbc9289692dffbbe58a1c9 /gcc/cp | |
parent | 62e3806d3ad0f1e429269a434d2cb3eaa58fb2d4 (diff) | |
download | gcc-775afb2516d17b4a3c63ffe7be4d7144a75fb0a1.zip gcc-775afb2516d17b4a3c63ffe7be4d7144a75fb0a1.tar.gz gcc-775afb2516d17b4a3c63ffe7be4d7144a75fb0a1.tar.bz2 |
invoke.texi (-ansi): Remove -foperator-names from list of implied options.
* 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.
From-SVN: r33051
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/cp/decl2.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index e47edb1..0d773d9 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,6 +1,8 @@ 2000-04-10 Martin v. Löwis <loewis@informatik.hu-berlin.de> * lex.c (init_parse): Remove traces of classof and headof. + * decl2.c (flag_operator_names): Default to 1. + (lang_decode_option): Do not set it for -ansi. 2000-04-09 Mark Mitchell <mark@codesourcery.com> diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index 5e370fd..ad4431f 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -419,7 +419,7 @@ int flag_access_control = 1; /* Nonzero if we want to understand the operator names, i.e. 'bitand'. */ -int flag_operator_names; +int flag_operator_names = 1; /* Nonzero if we want to check the return value of new and avoid calling constructors if it is a null pointer. */ @@ -789,7 +789,7 @@ lang_decode_option (argc, argv) } else if (!strcmp (p, "-ansi")) flag_no_nonansi_builtin = 1, flag_ansi = 1, - flag_no_gnu_keywords = 1, flag_operator_names = 1; + flag_no_gnu_keywords = 1; #ifdef SPEW_DEBUG /* Undocumented, only ever used when you're invoking cc1plus by hand, since it's probably safe to assume no sane person would ever want to use this |