[patch] pt.c, search.c: Fix comment typos.

Kazu Hirata kazu@cs.umass.edu
Fri Oct 8 13:09:00 GMT 2004


Hi,

Committed as obvious.

Kazu Hirata

2004-10-08  Kazu Hirata  <kazu@cs.umass.edu>

	* pt.c, search.c: Fix comment typos.

Index: pt.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/pt.c,v
retrieving revision 1.932
diff -u -r1.932 pt.c
--- pt.c	8 Oct 2004 02:46:00 -0000	1.932
+++ pt.c	8 Oct 2004 12:59:55 -0000
@@ -762,7 +762,7 @@
     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 @@
 
 /* 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)
Index: search.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/search.c,v
retrieving revision 1.326
diff -u -r1.326 search.c
--- search.c	8 Oct 2004 09:33:55 -0000	1.326
+++ search.c	8 Oct 2004 12:59:56 -0000
@@ -937,7 +937,7 @@
 	    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 @@
       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;



More information about the Gcc-patches mailing list