summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-09 14:56:00 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-09 14:56:00 +0000
commite24657dbcf23b08aafdddfea61c9f0b5a84ef685 (patch)
tree3f90803367d6646435cf35a29f7bae51ff0bcfba
parentbeecf0c3e99a3b602a2faf0de60926f1d36018c8 (diff)
downloadgcc-e24657dbcf23b08aafdddfea61c9f0b5a84ef685.tar.gz
* call.c, parser.c, tree.c: Fix comment typos.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77536 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/call.c4
-rw-r--r--gcc/cp/parser.c4
-rw-r--r--gcc/cp/tree.c2
4 files changed, 9 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 661d9e7630a..48bbd25a305 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
+
+ * call.c, parser.c, tree.c: Fix comment typos.
+
2004-02-07 Zack Weinberg <zack@codesourcery.com>
Bug 13856
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 15382dcb1b8..559a8f7992e 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -584,7 +584,7 @@ standard_conversion (tree to, tree from, tree expr)
(_class.member.lookup_) base class of D, a program
that necessitates this conversion is ill-formed. */
/* Therefore, we use DERIVED_FROM_P, and not
- ACESSIBLY_UNIQUELY_DERIVED_FROM_P, in this test. */
+ ACCESSIBLY_UNIQUELY_DERIVED_FROM_P, in this test. */
&& DERIVED_FROM_P (TREE_TYPE (to), TREE_TYPE (from)))
{
from =
@@ -5524,7 +5524,7 @@ compare_ics (tree ics1, tree ics2)
A& is better than binding an expression of type C to a
reference of type A&,
- --onversion of B to A is better than conversion of C to A */
+ --conversion of B to A is better than conversion of C to A */
if (is_properly_derived_from (from_type1, to)
&& is_properly_derived_from (from_type2, to))
{
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 684de506686..b17d669cd6d 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -1824,7 +1824,7 @@ cp_parser_name_lookup_error (cp_parser* parser,
/* If we are parsing tentatively, remember that an error has occurred
during this tentative parse. Returns true if the error was
- simulated; false if a messgae should be issued by the caller. */
+ simulated; false if a message should be issued by the caller. */
static bool
cp_parser_simulate_error (cp_parser* parser)
@@ -4895,7 +4895,7 @@ cp_parser_pm_expression (cp_parser* parser)
/* Parse a multiplicative-expression.
- mulitplicative-expression:
+ multiplicative-expression:
pm-expression
multiplicative-expression * pm-expression
multiplicative-expression / pm-expression
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index e07ecd878d5..cab893831ab 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -2082,7 +2082,7 @@ cp_cannot_inline_tree_fn (tree* fnp)
/* Don't auto-inline anything that might not be bound within
this unit of translation.
Exclude comdat functions from this rule. While they can be bound
- to the other unit, they all must be the same. This is especilly
+ to the other unit, they all must be the same. This is especially
important so templates can inline. */
if (!DECL_DECLARED_INLINE_P (fn) && !(*targetm.binds_local_p) (fn)
&& !DECL_COMDAT (fn))