diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2000-03-03 18:05:07 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2000-03-03 18:05:07 +0000 |
commit | 920f947437864c27e4e733531acfec074228debc (patch) | |
tree | 43fd689d64f29ed398e4990a12bb6eba5a8c590b /gcc | |
parent | 6fdf191de4d5120eae162e0cc8d7af6d6a0c8dc3 (diff) | |
download | gcc-920f947437864c27e4e733531acfec074228debc.zip gcc-920f947437864c27e4e733531acfec074228debc.tar.gz gcc-920f947437864c27e4e733531acfec074228debc.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl.c | 9 |
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d9bb284..26f3733 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 ... diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index df8e008..8c8fc32 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; } |