From 920f947437864c27e4e733531acfec074228debc Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 3 Mar 2000 18:05:07 +0000 Subject: [PATCH] decl.c (cp_finish_decl): Remove obsolete obstack comments, fix typos. * decl.c (cp_finish_decl): Remove obsolete obstack comments, fix typos. From-SVN: r32313 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/decl.c | 9 ++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d9bb284df1e..26f3733f1e0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2000-03-03 Nathan Sidwell + + * decl.c (cp_finish_decl): Remove obsolete obstack comments, fix + typos. + 2000-03-02 Mark Mitchell * cp-tree.h (TYPE_NEEDS_DESTRUCTOR): Rename to ... diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index df8e008fcad..8c8fc324841 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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; } -- 2.30.2