aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-10-08 13:04:09 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-10-08 13:04:09 +0000
commitee81147e2809078a4f3014e4a13499002580bcb9 (patch)
tree80f7bdd830ab652b75955dba7bc1baaef3ba10ba /gcc
parent646544e3108686bc0dade228a4a77dbb6a602f54 (diff)
downloadgcc-ee81147e2809078a4f3014e4a13499002580bcb9.zip
gcc-ee81147e2809078a4f3014e4a13499002580bcb9.tar.gz
gcc-ee81147e2809078a4f3014e4a13499002580bcb9.tar.bz2
* pt.c, search.c: Fix comment typos.
From-SVN: r88749
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/pt.c4
-rw-r--r--gcc/cp/search.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 427a1e4..80ea391 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2004-10-08 Kazu Hirata <kazu@cs.umass.edu>
+
+ * pt.c, search.c: Fix comment typos.
+
2004-10-08 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (dfs_walk, dfs_walk_real, dfs_unmark, markedp,
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index bb3b78a..9a869ea 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -762,7 +762,7 @@ maybe_process_partial_specialization (tree type)
error ("explicit specialization of non-template %qT", type);
}
-/* Returns onzero if we can optimize the retrieval of specializations
+/* Returns nonzero if we can optimize the retrieval of specializations
for TMPL, a TEMPLATE_DECL. In particular, for such a template, we
do not use DECL_TEMPLATE_SPECIALIZATIONS at all. */
@@ -2417,7 +2417,7 @@ current_template_args (void)
/* Return a TEMPLATE_DECL corresponding to DECL, using the indicated
template PARMS. If MEMBER_TEMPLATE_P is true, the new template is
- a mebmer template. Used by push_template_decl below. */
+ a member template. Used by push_template_decl below. */
static tree
build_template_decl (tree decl, tree parms, bool member_template_p)
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 79c6839..cd6e9b2 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -937,7 +937,7 @@ accessible_p (tree type, tree decl)
encounter the same binfo twice. */
else if (!BINFO_INHERITANCE_CHAIN (binfo))
{
- /* We are at the top of the hierachy, and can use the
+ /* We are at the top of the hierarchy, and can use the
CLASSTYPE_VBASECLASSES list for unmarking the virtual
bases. */
VEC (tree) *vbases;
@@ -1653,7 +1653,7 @@ dfs_walk_once (tree binfo, tree (*pre_fn) (tree, void *),
rval = dfs_walk_once_r (binfo, pre_fn, post_fn, data);
if (!BINFO_INHERITANCE_CHAIN (binfo))
{
- /* We are at the top of the hierachy, and can use the
+ /* We are at the top of the hierarchy, and can use the
CLASSTYPE_VBASECLASSES list for unmarking the virtual
bases. */
VEC (tree) *vbases;