diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2002-09-29 11:53:49 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2002-09-29 11:53:49 +0000 |
commit | 27631daef50f6bca3b23a6532caf570b74a28c6a (patch) | |
tree | 143c765ec97c1b9f687b6c466fd6a1ec6c07fe8e /gcc | |
parent | 1f3d773e3a775052b34eddcb0edbea25c4b450ae (diff) | |
download | gcc-27631daef50f6bca3b23a6532caf570b74a28c6a.zip gcc-27631daef50f6bca3b23a6532caf570b74a28c6a.tar.gz gcc-27631daef50f6bca3b23a6532caf570b74a28c6a.tar.bz2 |
cp-tree.h: Fix comment typos.
* cp-tree.h: Fix comment typos.
* decl.c: Likewise.
* pt.c: Likewise.
From-SVN: r57623
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/cp/cp-tree.h | 2 | ||||
-rw-r--r-- | gcc/cp/decl.c | 4 | ||||
-rw-r--r-- | gcc/cp/pt.c | 6 |
4 files changed, 12 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 2bea71d..e3265e4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2002-09-29 Kazu Hirata <kazu@cs.umass.edu> + + * cp-tree.h: Fix comment typos. + * decl.c: Likewise. + * pt.c: Likewise. + 2002-09-25 Mark Mitchell <mark@codesourcery.com> * cp/class.c (contains_empty_class_p): New method. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index b3cee37..7e40937 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -2223,7 +2223,7 @@ struct lang_decl GTY(()) #define TMPL_ARGS_DEPTH(NODE) \ (TMPL_ARGS_HAVE_MULTIPLE_LEVELS (NODE) ? TREE_VEC_LENGTH (NODE) : 1) -/* The LEVELth level of the template ARGS. The outermost level of of +/* The LEVELth level of the template ARGS. The outermost level of args is level 1, not level 0. */ #define TMPL_ARGS_LEVEL(ARGS, LEVEL) \ (TMPL_ARGS_HAVE_MULTIPLE_LEVELS (ARGS) \ diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 30f5512..980a38a 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -13245,7 +13245,7 @@ finish_enum (enumtype) for (pair = TYPE_VALUES (enumtype); pair; pair = TREE_CHAIN (pair)) TREE_TYPE (TREE_VALUE (pair)) = enumtype; - /* For a enum defined in a template, all further processing is + /* For an enum defined in a template, all further processing is postponed until the template is instantiated. */ if (processing_template_decl) { @@ -14320,7 +14320,7 @@ finish_function (flags) free_after_compilation (cfun); cfun = NULL; - /* If this is a in-class inline definition, we may have to pop the + /* If this is an in-class inline definition, we may have to pop the bindings for the template parameters that we added in maybe_begin_member_template_processing when start_function was called. */ diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index c5585d9..53787d6 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -51,7 +51,7 @@ typedef int (*tree_fn_t) PARAMS ((tree, void*)); instantiations have been deferred, either because their definitions were not yet available, or because we were putting off doing the work. The TREE_PURPOSE of each entry is a SRCLOC indicating where - the instantiate request occurred; the TREE_VALUE is a either a DECL + the instantiate request occurred; the TREE_VALUE is either a DECL (for a function or static data member), or a TYPE (for a class) indicating what we are hoping to instantiate. */ static GTY(()) tree pending_templates; @@ -5074,7 +5074,7 @@ instantiate_class_template (type) if (t) { - /* This TYPE is actually a instantiation of of a partial + /* This TYPE is actually an instantiation of a partial specialization. We replace the innermost set of ARGS with the arguments appropriate for substitution. For example, given: @@ -7449,7 +7449,7 @@ tsubst_expr (t, args, complain, in_decl) } /* A DECL_STMT can also be used as an expression, in the condition - clause of a if/for/while construct. If we aren't followed by + clause of an if/for/while construct. If we aren't followed by another statement, return our decl. */ if (TREE_CHAIN (t) == NULL_TREE) return decl; |