aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2007-07-28 23:59:29 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2007-07-28 23:59:29 +0000
commitd732e98fbf37e3e2dd1b2505ca9bc8a6e1011ff2 (patch)
tree716f0ff7af8375f5a62ba5fe7a20360dc1ab02fe /gcc
parentcea618ac1fbb93b3b74f1861fe741d6df1bdac42 (diff)
downloadgcc-d732e98fbf37e3e2dd1b2505ca9bc8a6e1011ff2.zip
gcc-d732e98fbf37e3e2dd1b2505ca9bc8a6e1011ff2.tar.gz
gcc-d732e98fbf37e3e2dd1b2505ca9bc8a6e1011ff2.tar.bz2
* pt.c, tree.c, typeck2.c: Fix comment typos.
From-SVN: r127031
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/pt.c4
-rw-r--r--gcc/cp/tree.c2
-rw-r--r--gcc/cp/typeck2.c4
4 files changed, 9 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 57c1e41..860a80a 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2007-07-28 Kazu Hirata <kazu@codesourcery.com>
+
+ * pt.c, tree.c, typeck2.c: Fix comment typos.
+
2007-07-28 Simon Martin <simartin@users.sourceforge.net>
Mark Mitchell <mark@codesourcery.com>
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index d05bfd2..13a2deb 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 9757363..8417703 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 10f410c..7f05e10 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)