This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] cp/*.c: Fix a comment typo and follow spelling conventions.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 18 Sep 2004 13:24:36 -0400 (EDT)
- Subject: [patch] cp/*.c: Fix a comment typo and follow spelling conventions.
Hi,
Committed as obvious.
Kazu Hirata
2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
* call.c, semantics.c: Follow spelling conventions.
* class.c: Fix a comment typo.
Index: call.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/call.c,v
retrieving revision 1.507
diff -u -r1.507 call.c
--- call.c 17 Sep 2004 21:54:54 -0000 1.507
+++ call.c 18 Sep 2004 17:15:01 -0000
@@ -5318,7 +5318,7 @@
&& (DECL_CONSTRUCTOR_P (current_function_decl)
|| DECL_DESTRUCTOR_P (current_function_decl)))
/* This is not an error, it is runtime undefined
- behaviour. */
+ behavior. */
warning ((DECL_CONSTRUCTOR_P (current_function_decl) ?
"abstract virtual `%#D' called from constructor"
: "abstract virtual `%#D' called from destructor"),
Index: class.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/class.c,v
retrieving revision 1.674
diff -u -r1.674 class.c
--- class.c 17 Sep 2004 21:54:55 -0000 1.674
+++ class.c 18 Sep 2004 17:15:04 -0000
@@ -500,7 +500,7 @@
/* Second, the requested type may not be the owner of its own vptr.
If not, convert to the base class that owns it. We cannot use
convert_to_base here, because VCONTEXT may appear more than once
- in the inheritence hierarchy of TYPE, and thus direct conversion
+ in the inheritance hierarchy of TYPE, and thus direct conversion
between the types may be ambiguous. Following the path back up
one step at a time via primary bases avoids the problem. */
vfield = TYPE_VFIELD (type);
Index: semantics.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/semantics.c,v
retrieving revision 1.436
diff -u -r1.436 semantics.c
--- semantics.c 17 Sep 2004 21:54:57 -0000 1.436
+++ semantics.c 18 Sep 2004 17:15:06 -0000
@@ -1037,7 +1037,7 @@
}
/* Begin a compound statement. FLAGS contains some bits that control the
- behaviour and context. If BCS_NO_SCOPE is set, the compound statement
+ behavior and context. If BCS_NO_SCOPE is set, the compound statement
does not define a scope. If BCS_FN_BODY is set, this is the outermost
block of a function. If BCS_TRY_BLOCK is set, this is the block
created on behalf of a TRY statement. Returns a token to be passed to