This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] cp*.c: Fix comment typos.


Hi,

Committed as obvious.

Kazu Hirata

2004-02-09  Kazu Hirata  <kazu@cs.umass.edu>

	* call.c, parser.c, tree.c: Fix comment typos.

Index: call.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/call.c,v
retrieving revision 1.459
diff -u -r1.459 call.c
--- call.c	5 Feb 2004 22:07:31 -0000	1.459
+++ call.c	9 Feb 2004 14:51:44 -0000
@@ -584,7 +584,7 @@
 		  (_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 @@
 	   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))
 	{
Index: parser.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/parser.c,v
retrieving revision 1.171
diff -u -r1.171 parser.c
--- parser.c	8 Feb 2004 01:59:08 -0000	1.171
+++ parser.c	9 Feb 2004 14:51:51 -0000
@@ -1824,7 +1824,7 @@
 
 /* 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 @@
 
 /* Parse a multiplicative-expression.
 
-   mulitplicative-expression:
+   multiplicative-expression:
      pm-expression
      multiplicative-expression * pm-expression
      multiplicative-expression / pm-expression
Index: tree.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/tree.c,v
retrieving revision 1.363
diff -u -r1.363 tree.c
--- tree.c	5 Feb 2004 19:01:20 -0000	1.363
+++ tree.c	9 Feb 2004 14:51:51 -0000
@@ -2082,7 +2082,7 @@
   /* 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))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]