aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-09-18 17:23:59 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-09-18 17:23:59 +0000
commit5995ebfb569204f9eb13f9269179881b139585f6 (patch)
tree98542c04b11e223421a9b26708d7c72956e0f832 /gcc
parent57e28d7d7659ab3102d38deba7f02a687aa316d8 (diff)
downloadgcc-5995ebfb569204f9eb13f9269179881b139585f6.zip
gcc-5995ebfb569204f9eb13f9269179881b139585f6.tar.gz
gcc-5995ebfb569204f9eb13f9269179881b139585f6.tar.bz2
call.c, [...]: Follow spelling conventions.
* call.c, semantics.c: Follow spelling conventions. * class.c: Fix a comment typo. From-SVN: r87704
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/call.c2
-rw-r--r--gcc/cp/class.c2
-rw-r--r--gcc/cp/semantics.c2
4 files changed, 8 insertions, 3 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 2cf1f74..7cb83b5 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-18 Kazu Hirata <kazu@cs.umass.edu>
+
+ * call.c, semantics.c: Follow spelling conventions.
+ * class.c: Fix a comment typo.
+
2004-09-16 Geoffrey Keating <geoffk@apple.com>
PR pch/13361
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 4f2a80c..1185608 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -5318,7 +5318,7 @@ build_new_method_call (tree instance, tree fns, tree args,
&& (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"),
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 5a06520..4c8dee3 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -500,7 +500,7 @@ build_vfield_ref (tree datum, tree type)
/* 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);
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 2f1d0e8..e66736f 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -1037,7 +1037,7 @@ finish_handler (tree handler)
}
/* 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