From: kazu Date: Fri, 30 Apr 2004 15:51:53 +0000 (+0000) Subject: * class.c, cp-tree.h, decl.c, decl2.c, pt.c, rtti.c: Fix X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=f5f73833861ce97751013846a39178e2587b9e4c;p=pf3gnuchains%2Fgcc-fork.git * class.c, cp-tree.h, decl.c, decl2.c, pt.c, rtti.c: Fix comment typos. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81344 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 59402a0aa1f..2eaab1c67ae 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2004-04-30 Kazu Hirata + + * class.c, cp-tree.h, decl.c, decl2.c, pt.c, rtti.c: Fix + comment typos. + 2004-04-23 Giovanni Bajo PR c++/15064 diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 9a9272bf574..42310338abe 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -4178,7 +4178,7 @@ create_vtable_ptr (tree t, tree* virtuals_p) { /* We build this decl with vtbl_ptr_type_node, which is a `vtable_entry_type*'. It might seem more precise to use - `vtable_entry_type (*)[N]' where N is the number of firtual + `vtable_entry_type (*)[N]' where N is the number of virtual functions. However, that would require the vtable pointer in base classes to have a different type than the vtable pointer in derived classes. We could make that happen, but that diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 8f4465f2322..fb02e41ec56 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -1394,7 +1394,7 @@ struct lang_type GTY(()) way or the other. */ #define CLASSTYPE_INTERFACE_KNOWN(NODE) \ (LANG_TYPE_CLASS_CHECK (NODE)->interface_unknown == 0) -/* The opposite of CLASSTYPE_INTERFANCE_KNOWN. */ +/* The opposite of CLASSTYPE_INTERFACE_KNOWN. */ #define CLASSTYPE_INTERFACE_UNKNOWN(NODE) \ (LANG_TYPE_CLASS_CHECK (NODE)->interface_unknown) diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 1793fffafec..f589868e142 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -3099,7 +3099,7 @@ cp_fname_init (const char* name, tree *type_p) decl, NAME is the initialization string and TYPE_DEP indicates whether NAME depended on the type of the function. We make use of that to detect __PRETTY_FUNCTION__ inside a template fn. This is being done - lazily at the point of first use, so we musn't push the decl now. */ + lazily at the point of first use, so we mustn't push the decl now. */ static tree cp_make_fname_decl (tree id, int type_dep) diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index de09eb69261..e094493f988 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -2292,7 +2292,7 @@ do_static_initialization (tree decl, tree init) if (flag_use_cxa_atexit) register_dtor_fn (decl); - /* Finsh up. */ + /* Finish up. */ finish_static_initialization_or_destruction (guard_if_stmt); } diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index a70ab61ff63..5d2c95ac155 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -3008,7 +3008,7 @@ push_template_decl_real (tree decl, int is_friend) } } - /* The DECL_TI_ARGS of DECL contains full set of arguments refering + /* The DECL_TI_ARGS of DECL contains full set of arguments referring back to its most general template. If TMPL is a specialization, ARGS may only have the innermost set of arguments. Add the missing argument levels if necessary. */ diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 337c6be94d7..9e7805651ce 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -1244,7 +1244,7 @@ get_pseudo_ti_desc (tree type) } /* Make sure the required builtin types exist for generating the type_info - varable definitions. */ + variable definitions. */ static void create_tinfo_types (void)