diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-20 16:11:41 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-12-20 16:11:41 +0000 |
commit | e18c26dd8002737afb33a6f959a3a5c8a18111d6 (patch) | |
tree | 84cdfa516b4ba2a31c09ecb6a0cdd1a114d8c993 /gcc | |
parent | 0b4d734d85eff6a46686e015fffb625f872a1fcf (diff) | |
download | ppe42-gcc-e18c26dd8002737afb33a6f959a3a5c8a18111d6.tar.gz ppe42-gcc-e18c26dd8002737afb33a6f959a3a5c8a18111d6.zip |
* ChangeLog: Fix a typo.
* class.c: Fix comment typos.
* cp-tree.h: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60368 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/cp/class.c | 6 | ||||
-rw-r--r-- | 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 <kazu@cs.umass.edu> + + * ChangeLog: Fix a typo. + * class.c: Fix comment typos. + * cp-tree.h: Likewise. + 2002-12-18 Jason Merrill <jason@redhat.com> Handle anonymous unions at the tree level. @@ -4809,7 +4815,7 @@ Tue Oct 23 14:00:20 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * 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 <jason_merrill@redhat.com> 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 |