From 0f3ccaa3ca3e7e0eca34ad210913e4ad022ea715 Mon Sep 17 00:00:00 2001 From: kazu Date: Sat, 31 Jan 2004 17:58:53 +0000 Subject: [PATCH] * class.c: Fix comment typos. * decl.c: Likewise. * error.c: Likewise. * parser.c: Likewise. * pt.c: Likewise. * search.c: Likewise. * typeck.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77045 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/ChangeLog | 10 ++++++++++ gcc/cp/class.c | 2 +- gcc/cp/decl.c | 2 +- gcc/cp/error.c | 2 +- gcc/cp/parser.c | 6 +++--- gcc/cp/pt.c | 4 ++-- gcc/cp/search.c | 2 +- gcc/cp/typeck.c | 2 +- 8 files changed, 20 insertions(+), 10 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 825a6e5..aafbcb0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,13 @@ +2004-01-31 Kazu Hirata + + * class.c: Fix comment typos. + * decl.c: Likewise. + * error.c: Likewise. + * parser.c: Likewise. + * pt.c: Likewise. + * search.c: Likewise. + * typeck.c: Likewise. + 2004-01-30 Richard Henderson PR c++/13693 diff --git a/gcc/cp/class.c b/gcc/cp/class.c index d97f850..23ca83d 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -1197,7 +1197,7 @@ handle_using_decl (tree using_decl, tree t) alter_access (t, fdecl, access); } -/* Run through the base clases of T, updating +/* Run through the base classes of T, updating CANT_HAVE_DEFAULT_CTOR_P, CANT_HAVE_CONST_CTOR_P, and NO_CONST_ASN_REF_P. Also set flag bits in T based on properties of the bases. */ diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 26955cf..a9e0316 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -6008,7 +6008,7 @@ check_static_variable_definition (tree decl, tree type) error ("invalid in-class initialization of static data member of non-integral type `%T'", type); /* If we just return the declaration, crashes will sometimes - occur. We therefore return void_type_node, as if this was a + occur. We therefore return void_type_node, as if this were a friend declaration, to cause callers to completely ignore this declaration. */ return 1; diff --git a/gcc/cp/error.c b/gcc/cp/error.c index bb6ff34..796052e 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -941,7 +941,7 @@ dump_decl (tree t, int flags) default: pp_unsupported_tree (cxx_pp, t); - /* Fallthrough to error. */ + /* Fall through to error. */ case ERROR_MARK: pp_identifier (cxx_pp, ""); diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 77f703f..1348b50 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -1065,7 +1065,7 @@ typedef enum cp_parser_flags typedef enum cp_parser_declarator_kind { - /* We want an abstract declartor. */ + /* We want an abstract declarator. */ CP_PARSER_DECLARATOR_ABSTRACT, /* We want a named declarator. */ CP_PARSER_DECLARATOR_NAMED, @@ -12791,7 +12791,7 @@ cp_parser_base_specifier (cp_parser* parser) break; } } - /* It is not uncommon to see programs mechanically, errouneously, use + /* It is not uncommon to see programs mechanically, erroneously, use the 'typename' keyword to denote (dependent) qualified types as base classes. */ if (cp_lexer_next_token_is_keyword (parser->lexer, RID_TYPENAME)) @@ -15050,7 +15050,7 @@ cp_parser_pre_parsed_nested_name_specifier (cp_parser *parser) parser->object_scope = NULL_TREE; } -/* Add tokens to CACHE until an non-nested END token appears. */ +/* Add tokens to CACHE until a non-nested END token appears. */ static void cp_parser_cache_group (cp_parser *parser, diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index ba296c7..5320677 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -1092,7 +1092,7 @@ register_specialization (tree spec, tree tmpl, tree args) If there was a definition for the template, but not for the specialization, we want this to - look as if there is no definition, and vice + look as if there were no definition, and vice versa. */ DECL_INITIAL (fn) = NULL_TREE; duplicate_decls (spec, fn); @@ -8036,7 +8036,7 @@ tsubst_copy_and_build (tree t, { case USING_DECL: t = DECL_NAME (t); - /* Fallthrough. */ + /* Fall through. */ case IDENTIFIER_NODE: { tree decl; diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 15927c6..b8470af 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -210,7 +210,7 @@ lookup_base_r (tree binfo, tree base, base_access access, case bk_same_type: bk = bk_proper_base; - /* FALLTHROUGH */ + /* Fall through. */ case bk_proper_base: my_friendly_assert (found == bk_not_base, 20010723); found = bk; diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 137cede..1338085 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -5477,7 +5477,7 @@ build_ptrmemfunc (tree type, tree pfn, int force) given by CST. ??? There is no consistency as to the types returned for the above - values. Some code acts as if its a sizetype and some as if its + values. Some code acts as if it were a sizetype and some as if it were integer_type_node. */ void -- 2.7.4