aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2005-08-01 04:02:26 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-08-01 04:02:26 +0000
commit13a44ee0e26699b3ed255086e7fb7890001d2706 (patch)
tree904765faf29431ff04386d4af6b130fa53713cab /gcc
parent569b7f6adb641fe57a10c76514bf670f5f479648 (diff)
downloadgcc-13a44ee0e26699b3ed255086e7fb7890001d2706.zip
gcc-13a44ee0e26699b3ed255086e7fb7890001d2706.tar.gz
gcc-13a44ee0e26699b3ed255086e7fb7890001d2706.tar.bz2
class.c, [...]: Fix comment typos.
* class.c, decl.c, name-lookup.c, pt.c, typeck.c, typeck2.c: Fix comment typos. From-SVN: r102621
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/class.c2
-rw-r--r--gcc/cp/decl.c2
-rw-r--r--gcc/cp/name-lookup.c2
-rw-r--r--gcc/cp/pt.c2
-rw-r--r--gcc/cp/typeck.c2
-rw-r--r--gcc/cp/typeck2.c2
7 files changed, 11 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 0e0c9e6..061ab2f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2005-08-01 Kazu Hirata <kazu@codesourcery.com>
+
+ * class.c, decl.c, name-lookup.c, pt.c, typeck.c, typeck2.c:
+ Fix comment typos.
+
2005-07-29 Kazu Hirata <kazu@codesourcery.com>
* method.c: Fix a comment typo.
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index c069d5f..4d57a73 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -5545,7 +5545,7 @@ pop_lang_context (void)
/* Given an OVERLOAD and a TARGET_TYPE, return the function that
matches the TARGET_TYPE. If there is no satisfactory match, return
- error_mark_node, and issue a error & warning messages under control
+ error_mark_node, and issue an error & warning messages under control
of FLAGS. Permit pointers to member function if FLAGS permits. If
TEMPLATE_ONLY, the name of the overloaded function was a
template-id, and EXPLICIT_TARGS are the explicitly provided
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index ddcab2e..99a1830 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -2830,7 +2830,7 @@ record_unknown_type (tree type, const char* name)
TYPE_MODE (type) = TYPE_MODE (void_type_node);
}
-/* An string for which we should create an IDENTIFIER_NODE at
+/* A string for which we should create an IDENTIFIER_NODE at
startup. */
typedef struct predefined_identifier
diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c
index 3d49f90..a4c33a3 100644
--- a/gcc/cp/name-lookup.c
+++ b/gcc/cp/name-lookup.c
@@ -3966,7 +3966,7 @@ lookup_name (tree name, int prefer_type)
Unlike lookup_name_real, we make sure that NAME is actually
declared in the desired scope, not from inheritance, nor using
directive. For using declaration, there is DR138 still waiting
- to be resolved. Hidden name coming from earlier an friend
+ to be resolved. Hidden name coming from an earlier friend
declaration is also returned.
A TYPE_DECL best matching the NAME is returned. Catching error
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 3403e8b..cc3c03e 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -642,7 +642,7 @@ end_explicit_instantiation (void)
processing_explicit_instantiation = false;
}
-/* A explicit specialization or partial specialization TMPL is being
+/* An explicit specialization or partial specialization TMPL is being
declared. Check that the namespace in which the specialization is
occurring is permissible. Returns false iff it is invalid to
specialize TMPL in the current namespace. */
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 62f5297..18d5bb6 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -3764,7 +3764,7 @@ build_unary_op (enum tree_code code, tree xarg, int noconvert)
if (!noconvert && CP_INTEGRAL_TYPE_P (TREE_TYPE (arg)))
arg = perform_integral_promotions (arg);
- /* Make sure the result is not a lvalue: a unary plus or minus
+ /* Make sure the result is not an lvalue: a unary plus or minus
expression is always a rvalue. */
if (real_lvalue_p (arg))
arg = build1 (NON_LVALUE_EXPR, TREE_TYPE (arg), arg);
diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c
index 2564a05..e9a6161 100644
--- a/gcc/cp/typeck2.c
+++ b/gcc/cp/typeck2.c
@@ -945,7 +945,7 @@ process_init_constructor_record (tree type, tree init)
}
/* Subroutine of process_init_constructor, which will process a single
- initializer INIT for an union of type TYPE. Returns the flags (PICFLAG_*)
+ initializer INIT for a union of type TYPE. Returns the flags (PICFLAG_*)
which describe the initializer. */
static int