From d732e98fbf37e3e2dd1b2505ca9bc8a6e1011ff2 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 28 Jul 2007 23:59:29 +0000 Subject: [PATCH] * pt.c, tree.c, typeck2.c: Fix comment typos. From-SVN: r127031 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/pt.c | 4 ++-- gcc/cp/tree.c | 2 +- gcc/cp/typeck2.c | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 57c1e413fd2..860a80a7bb0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2007-07-28 Kazu Hirata + + * pt.c, tree.c, typeck2.c: Fix comment typos. + 2007-07-28 Simon Martin Mark Mitchell diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index d05bfd29e37..13a2deb40c5 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -2213,7 +2213,7 @@ check_explicit_specialization (tree declarator, tree tmpl_func = DECL_TEMPLATE_RESULT (gen_tmpl); gcc_assert (TREE_CODE (tmpl_func) == FUNCTION_DECL); - /* This specialization has the same linkage and visiblity as + /* This specialization has the same linkage and visibility as the function template it specializes. */ TREE_PUBLIC (decl) = TREE_PUBLIC (tmpl_func); DECL_THIS_STATIC (decl) = DECL_THIS_STATIC (tmpl_func); @@ -4637,7 +4637,7 @@ convert_template_argument (tree parm, requires_type = (TREE_CODE (parm) == TYPE_DECL || requires_tmpl_type); - /* When determining whether a argument pack expansion is a template, + /* When determining whether an argument pack expansion is a template, look at the pattern. */ if (TREE_CODE (check_arg) == TYPE_PACK_EXPANSION) check_arg = PACK_EXPANSION_PATTERN (check_arg); diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 97573638a8f..8417703d0e0 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -83,7 +83,7 @@ lvalue_p_1 (tree ref, && TREE_CODE (ref) != COMPONENT_REF) return clk_none; - /* lvalue references and named rvalue refences are lvalues */ + /* lvalue references and named rvalue references are lvalues. */ return clk_ordinary; } diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index 10f410c8ea8..7f05e10905a 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -764,8 +764,8 @@ picflag_from_initializer (tree init) } /* Subroutine of process_init_constructor, which will process an initializer - INIT for a array or vector of type TYPE. Returns the flags (PICFLAG_*) which - describe the initializers. */ + INIT for an array or vector of type TYPE. Returns the flags (PICFLAG_*) + which describe the initializers. */ static int process_init_constructor_array (tree type, tree init) -- 2.30.2