decl.c (cp_finish_decl): Remove obsolete obstack comments, fix typos.
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 3 Mar 2000 18:05:07 +0000 (18:05 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 3 Mar 2000 18:05:07 +0000 (18:05 +0000)
* decl.c (cp_finish_decl): Remove obsolete obstack comments, fix
typos.

From-SVN: r32313

gcc/cp/ChangeLog
gcc/cp/decl.c

index d9bb284df1ec103f9fc1ce67019ef5032033d8a9..26f3733f1e0e479bc9700a729647361f07aa7d68 100644 (file)
@@ -1,3 +1,8 @@
+2000-03-03  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * decl.c (cp_finish_decl): Remove obsolete obstack comments, fix
+       typos.
+
 2000-03-02  Mark Mitchell  <mark@codesourcery.com>
 
        * cp-tree.h (TYPE_NEEDS_DESTRUCTOR): Rename to ...
index df8e008fcadd7c54a7792503579d6f607ca113f5..8c8fc324841f962e06bbd5855a8bc916f4a4e802 100644 (file)
@@ -7598,14 +7598,10 @@ emit_local_var (decl)
    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
+   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
@@ -7624,7 +7620,6 @@ cp_finish_decl (decl, init, asmspec_tree, flags)
   const char *asmspec = NULL;
   int was_readonly = 0;
 
-  /* If this is 0, then we did not change obstacks.  */
   if (! decl)
     {
       if (init)
@@ -7658,7 +7653,7 @@ cp_finish_decl (decl, init, asmspec_tree, flags)
 
   if (init && TREE_CODE (init) == NAMESPACE_DECL)
     {
-      cp_error ("Cannot initialize `%D' to namespace `%D'",
+      cp_error ("cannot initialize `%D' to namespace `%D'",
                decl, init);
       init = NULL_TREE;
     }