From 4639c5c62cad530089ae4f00e971f2205977766a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Fri, 20 Dec 2002 16:11:41 +0000 Subject: [PATCH] ChangeLog: Fix a typo. * ChangeLog: Fix a typo. * class.c: Fix comment typos. * cp-tree.h: Likewise. From-SVN: r60368 --- gcc/cp/ChangeLog | 8 +++++++- gcc/cp/class.c | 6 +++--- gcc/cp/cp-tree.h | 4 ++-- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b19003eccd5..3cd2c30ab33 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2002-12-20 Kazu Hirata + + * ChangeLog: Fix a typo. + * class.c: Fix comment typos. + * cp-tree.h: Likewise. + 2002-12-18 Jason Merrill Handle anonymous unions at the tree level. @@ -4809,7 +4815,7 @@ Tue Oct 23 14:00:20 2001 Richard Kenner * parse.y (asm_operand): Allow named operands. * semantics.c (finish_asm_stmt): Tweek for changed location - of the operand constrant. + of the operand constraint. 2001-10-09 Jason Merrill diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 6035e054644..bf75d9de4bc 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -97,7 +97,7 @@ typedef struct vtbl_init_data_s /* The type of a function passed to walk_subobject_offsets. */ typedef int (*subobject_offset_fn) PARAMS ((tree, tree, splay_tree)); -/* The stack itself. This is an dynamically resized array. The +/* The stack itself. This is a dynamically resized array. The number of elements allocated is CURRENT_CLASS_STACK_SIZE. */ static int current_class_stack_size; static class_stack_node_t current_class_stack; @@ -2343,7 +2343,7 @@ get_vcall_index (tree fn, tree type) } /* Update an entry in the vtable for BINFO, which is in the hierarchy - dominated by T. FN has been overriden in BINFO; VIRTUALS points to the + dominated by T. FN has been overridden in BINFO; VIRTUALS points to the corresponding position in the BINFO_VIRTUALS list. */ static void @@ -4508,7 +4508,7 @@ create_vtable_ptr (t, virtuals_p) type-based alias analysis code would decide that assignments to the base class vtable pointer can't alias assignments to the derived class vtable pointer, since they have different - types. Thus, in an derived class destructor, where the base + types. Thus, in a derived class destructor, where the base class constructor was inlined, we could generate bad code for setting up the vtable pointer. diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 7022e7322f8..12504e5a1dd 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -127,7 +127,7 @@ struct diagnostic_context; The BV_DELTA of each node gives the amount by which to adjust the `this' pointer when calling the function. If the method is an - overriden version of a base class method, then it is assumed + overridden version of a base class method, then it is assumed that, prior to adjustment, the this pointer points to an object of the base class. @@ -149,7 +149,7 @@ struct diagnostic_context; function, it is eventually set to an INTEGER_CST indicating the index in the vtable at which this function can be found. When a virtual function is declared, but before it is known what - function is overriden, this field is the error_mark_node. + function is overridden, this field is the error_mark_node. Temporarily, it may be set to a TREE_LIST whose TREE_VALUE is the virtual function this one overrides, and whose TREE_CHAIN is