This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Undocumenting unsupported flags


I just installed this patch, which primarily removes documentation for
flags that do not work anymore from gcc.1 and invoke.texi.

Regards,
Martin

2000-04-11  Martin v. Löwis  <loewis@informatik.hu-berlin.de>

	* extend.texi (-fthis-is-variable): Undocument.
	* flags.h (warn_template_debugging): Remove declaration.
	* gcc.1 (-fall-virtual, -fenum-int-equiv, -fthis-is-variable,
	-Wenum-clash, -Wtemplate-debugging): Undocument.
	* cp/tree.h (HAVE_TEMPLATES): Remove definition.
	* cp/lang-options.h (-fthis-is-variable): Remove documentation.

Index: extend.texi
===================================================================
RCS file: /cvs/gcc/egcs/gcc/extend.texi,v
retrieving revision 1.44
diff -u -r1.44 extend.texi
--- extend.texi	2000/03/14 08:24:21	1.44
+++ extend.texi	2000/04/11 05:51:28
@@ -1,4 +1,4 @@
-@c Copyright (C) 1988,89,92,93,94,96,98, 99 Free Software Foundation, Inc.
+@c Copyright (C) 1988,89,92,93,94,96,98,99,2000 Free Software Foundation, Inc.
 @c This is part of the GCC manual.
 @c For copying conditions, see the file gcc.texi.
 
@@ -3224,13 +3224,6 @@
 
 While the list below is not exhaustive, it documents some of the options
 that are now deprecated:
-
-@table @code
-@item -fthis-is-variable
-In early versions of C++, assignment to this could be used to implement
-application-defined memory allocation. Now, allocation functions
-(@samp{operator new}) are the standard-conforming way to achieve the
-same effect.
 
 @item -fexternal-templates
 @itemx -falt-external-templates
Index: flags.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/flags.h,v
retrieving revision 1.41
diff -u -r1.41 flags.h
--- flags.h	2000/03/29 09:54:30	1.41
+++ flags.h	2000/04/11 05:51:29
@@ -114,11 +114,6 @@
 
 extern int warn_cast_align;
 
-/* Nonzero means warn that dbx info for template class methods isn't fully
-   supported yet.  */
-
-extern int warn_template_debugging;
-
 /* Nonzero means warn about any identifiers that match in the first N
    characters.  The value N is in `id_clash_len'.  */
 
Index: gcc.1
===================================================================
RCS file: /cvs/gcc/egcs/gcc/gcc.1,v
retrieving revision 1.13
diff -u -r1.13 gcc.1
--- gcc.1	1999/11/02 10:23:46	1.13
+++ gcc.1	2000/04/11 05:51:33
@@ -1,4 +1,4 @@
-.\" Copyright (c) 1991, 1992, 1993, 1994 Free Software Foundation    -*-Text-*-
+.\" Copyright (c) 1991, 1992, 1993, 1994, 2000 Free Software Foundation    -*-Text-*-
 .\" See section COPYING for conditions for redistribution
 .\"
 .\" Set up \*(lq, \*(rq if -man hasn't already set it up.
@@ -150,10 +150,8 @@
 .TP
 .B Language Options
 \-ansi
-\-fall\-virtual
 \-fcond\-mismatch
 \-fdollars\-in\-identifiers
-\-fenum\-int\-equiv
 \-fexternal\-templates
 \-fno\-asm
 \-fno\-builtin
@@ -164,7 +162,6 @@
 \-fno\-strict\-prototype
 \-fsigned\-bitfields
 \-fsigned\-char
-\-fthis\-is\-variable
 \-funsigned\-bitfields
 \-funsigned\-char
 \-fwritable\-strings
@@ -185,7 +182,6 @@
 \-Wchar\-subscript
 \-Wcomment
 \-Wconversion
-\-Wenum\-clash
 \-Werror
 \-Wformat
 .RI \-Wid\-clash\- len
@@ -206,7 +202,6 @@
 \-Wshadow
 \-Wstrict\-prototypes
 \-Wswitch
-\-Wtemplate\-debugging
 \-Wtraditional
 \-Wtrigraphs
 \-Wuninitialized
@@ -836,14 +831,6 @@
 For details, see the GNU C Manual; the duplicate list here
 has been deleted so that we won't get complaints when it
 is out of date.
-.Sp
-But one note about C++ programs only (not C).  `\|\c
-.B \-traditional\c
-\&\|' has one additional effect for C++: assignment to
-.B this
-is permitted.  This is the same as the effect of `\|\c
-.B \-fthis\-is\-variable\c
-\&\|'.
 .TP
 .B \-traditional\-cpp
 Attempt to support some aspects of traditional C preprocessors.
@@ -866,17 +853,6 @@
 \&\|' by default on some target systems
 but not others.)
 .TP
-.B \-fenum\-int\-equiv
-Permit implicit conversion of \c
-.B int\c
-\& to enumeration types (C++
-only).  Normally GNU C++ allows conversion of \c
-.B enum\c
-\& to \c
-.B int\c
-\&,
-but not the other way around.
-.TP
 .B \-fexternal\-templates
 Produce smaller code for template declarations, by generating only a
 single copy of each template function where it is defined (C++ only).
@@ -902,41 +878,10 @@
 \&\|', all template instantiations are
 explicitly internal.
 .TP
-.B \-fall\-virtual
-Treat all possible member functions as virtual, implicitly.  All
-member functions (except for constructor functions and
-.B new
-or
-.B delete
-member operators) are treated as virtual functions of the class where
-they appear.
-.Sp
-This does not mean that all calls to these member functions will be
-made through the internal table of virtual functions.  Under some
-circumstances, the compiler can determine that a call to a given
-virtual function can be made directly; in these cases the calls are
-direct in any case.
-.TP
 .B \-fcond\-mismatch
 Allow conditional expressions with mismatched types in the second and
 third arguments.  The value of such an expression is void.
 .TP
-.B \-fthis\-is\-variable
-Permit assignment to \c
-.B this\c
-\& (C++ only).  The incorporation of
-user-defined free store management into C++ has made assignment to
-`\|\c
-.B this\c
-\&\|' an anachronism.  Therefore, by default it is invalid to
-assign to \c
-.B this\c
-\& within a class member function.  However, for
-backwards compatibility, you can make it valid with
-`\|\c
-.B \-fthis-is-variable\c
-\&\|'.
-.TP
 .B \-funsigned\-char
 Let the type \c
 .B char\c
@@ -1863,10 +1808,6 @@
 .B \-Wparentheses
 Warn if parentheses are omitted in certain contexts.
 .TP
-.B \-Wtemplate\-debugging
-When using templates in a C++ program, warn if debugging is not yet
-fully available (C++ only).
-.TP
 .B \-Wall
 All of the above `\|\c
 .B \-W\c
@@ -1994,14 +1935,6 @@
 .B \-Wredundant-decls
 Warn if anything is declared more than once in the same scope, even in
 cases where multiple declaration is valid and changes nothing.
-.TP
-.B \-Wnested-externs
-Warn if an \c
-.B extern\c
-\& declaration is encountered within an function.
-.TP
-.B \-Wenum\-clash
-Warn about conversion between different enumeration types (C++ only).
 .TP
 .B \-Wlong-long
 Warn if
Index: cp/cp-tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/cp-tree.h,v
retrieving revision 1.436
diff -u -r1.436 cp-tree.h
--- cp-tree.h	2000/04/10 06:53:56	1.436
+++ cp-tree.h	2000/04/11 05:51:41
@@ -396,10 +396,6 @@
   int linenum;
 };
 
-/* To identify to the debug emitters if it should pay attention to the
-   flag `-Wtemplate-debugging'.  */
-#define HAVE_TEMPLATES 1
-
 /* Macros for access to language-specific slots in an identifier.  */
 
 #define IDENTIFIER_NAMESPACE_BINDINGS(NODE)	\
Index: cp/lang-options.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/lang-options.h,v
retrieving revision 1.33
diff -u -r1.33 lang-options.h
--- lang-options.h	2000/03/10 11:56:00	1.33
+++ lang-options.h	2000/04/11 05:51:41
@@ -100,7 +100,7 @@
   { "-fstrict-prototype", "" },
   { "-fno-strict-prototype", "Do not assume that empty prototype means no args" },
   { "-ftemplate-depth-", "Specify maximum template instantiation depth"},
-  { "-fthis-is-variable", "Make 'this' not be type '* const'"  },
+  { "-fthis-is-variable", ""  },
   { "-fno-this-is-variable", "" },
   { "-fuse-cxa-atexit", "Use __cxa_atexit to register destructors." },
   { "-fno-use-cxa-atexit", "" },


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]