This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[c++ PATCH]: Typos in decl.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: [c++ PATCH]: Typos in decl.c
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Fri, 03 Mar 2000 18:05:09 +0000
- Organization: CodeSourcery, LLC
Hi,
I've removed some obsolete obstack comments and typos, in my wanderings
around the source.
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2000-03-03 Nathan Sidwell <nathan@codesourcery.com>
* decl.c (cp_finish_decl): Remove obsolete obstack comments, fix
typos.
Index: cp/decl.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl.c,v
retrieving revision 1.556
diff -c -3 -p -r1.556 decl.c
*** decl.c 2000/03/03 02:27:14 1.556
--- decl.c 2000/03/03 17:50:37
*************** emit_local_var (decl)
*** 7598,7611 ****
If the length of an array type is not known before,
it must be determined now, from the initial value, or it is an error.
- For C++, `cp_finish_decl' must be fairly evasive: it must keep initializers
- for aggregates that have constructors alive on the permanent obstack,
- so that the global initializing functions can be written at the end.
-
INIT0 holds the value of an initializer that should be allowed to escape
the normal rules.
! FLAGS is LOOKUP_ONLYCONVERTING is the = init syntax was used, else 0
if the (init) syntax was used.
For functions that take default parameters, DECL points to its
--- 7598,7607 ----
If the length of an array type is not known before,
it must be determined now, from the initial value, or it is an error.
INIT0 holds the value of an initializer that should be allowed to escape
the normal rules.
! FLAGS is LOOKUP_ONLYCONVERTING if the = init syntax was used, else 0
if the (init) syntax was used.
For functions that take default parameters, DECL points to its
*************** cp_finish_decl (decl, init, asmspec_tree
*** 7624,7630 ****
const char *asmspec = NULL;
int was_readonly = 0;
- /* If this is 0, then we did not change obstacks. */
if (! decl)
{
if (init)
--- 7620,7625 ----
*************** cp_finish_decl (decl, init, asmspec_tree
*** 7658,7664 ****
if (init && TREE_CODE (init) == NAMESPACE_DECL)
{
! cp_error ("Cannot initialize `%D' to namespace `%D'",
decl, init);
init = NULL_TREE;
}
--- 7653,7659 ----
if (init && TREE_CODE (init) == NAMESPACE_DECL)
{
! cp_error ("cannot initialize `%D' to namespace `%D'",
decl, init);
init = NULL_TREE;
}