+2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
+
+ * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c,
+ cp-tree.h, decl.c, decl2.c, except.c, operators.def, optimize.c,
+ pt.c, rtti.c, semantics.c, typeck.c: Fix spelling errors.
+
2001-12-15 Joseph S. Myers <jsm28@cam.ac.uk>
* lang-options.h: Use American spelling in messages.
2001-07-20 Nathan Sidwell <nathan@codesourcery.com>
Remove old-abi remnants. Remove comments about old abi
- behaviour. Remove refences to 'new-abi' in comments.
+ behaviour. Remove references to 'new-abi' in comments.
* cp-tree.h: Adjust comments.
(vbase_offsets_in_vtable_p): Delete.
(vcall_offsets_in_vtable_p): Delete.
* decl.c (struct binding_level): Adjust class_shadowed comments
to reflect reality.
- (push_class_level_binding): Ajust comments to reflect reality.
+ (push_class_level_binding): Adjust comments to reflect reality.
Set IDENTIFIER_CLASS_VALUE when replacing an existing binding.
Don't set TREE_VALUE on the class_shadowed list.
2000-06-23 Kriang Lerdsuwanakij <lerdsuwa@scf.usc.edu>
* parse.y (template_arg): Convert TEMPLATE_DECL
- that is a template template paramter to
+ that is a template template parameter to
TEMPLATE_TEMPLATE_PARM here.
* cp-tree.def (TEMPLATE_TEMPLATE_PARM): Adjust comment.
* tinfo.h (__user_type_info::contained_virtual_p): New
predicate.
* tinfo.cc (__user_type_info::do_upcast): Fix bug with diamond
- shaped heirarchy.
+ shaped hierarchy.
(__vmi_class_type_info::__do_upcast): Fix bug with NULL pointer to
- diamond shaped heirarchy. Add early out for mixed diamond and
- duplicate shaped heirarchy.
+ diamond shaped hierarchy. Add early out for mixed diamond and
+ duplicate shaped hierarchy.
2000-05-24 Mark Mitchell <mark@codesourcery.com>
(__si_class_type_info::__do_upcast): Adjust. Use parent's
__do_upcast.
(__vmi_class_type_info::__do_upcast): Likewise. Fix private
- virtual base in diamond heirarchy bug.
+ virtual base in diamond hierarchy bug.
2000-05-23 Mark Mitchell <mark@codesourcery.com>
build_static_cast, build_reinterpret_cast, build_const_cast,
build_c_cast, build_modify_expr, get_delta_difference,
build_ptrmemfunc, check_return_expr): Replace 'ANSI C++' with
- 'ISO C++'. Fusion consecutive calls to diagnotic message routines
+ 'ISO C++'. Fusion consecutive calls to diagnostic message routines
into a single one.
* typeck2.c (readonly_error, abstract_virtuals_error,
process_init_constructor, check_for_new_type): Likewise.
function.
Make base initialization more re-entrant so that synthesis on the
- fly will work (and, eventually, template instantation on the fly).
+ fly will work (and, eventually, template instantiation on the fly).
* init.c (sort_member_init): Don't bother with members that can't be
initialized. Reorganize a bit. Don't initialize base members here.
(sort_base_init): New function, like sort_member_init, but for base
1999-10-07 Mark Mitchell <mark@codesourcery.com>
* pt.c (tsubst_expr): Set DECL_TEMPLATE_INSTANTIATED for a catch
- paramter.
+ parameter.
* semantics.c (expand_stmt): Don't pretend to have asmspecs for
local statics if we don't really have them.
(mark_lang_function): Use mark_stmt_tree.
* expr.c (cplus_expand_expr): Don't handle VEC_INIT_EXPR.
* init.c (build_new_1): Remove creation of VEC_INIT_EXPR.
- (build_vec_init): Remove creation of stand-in intializer.
+ (build_vec_init): Remove creation of stand-in initializer.
* pt.c (begin_tree): Remove.
(end_tree): Likewise.
* semantics.c (SET_LAST_STMT): New macro. Use it throughout.
(pushlevel_class): Don't push_decl_level.
(poplevel_class): Don't pop_stack_level.
(push_class_level_binding): Don't push_cache_obstack.
- (init_decl_processing): Don't intialize decl_obstack.
+ (init_decl_processing): Don't initialize decl_obstack.
* search.c (push_class_decls): Don't push_cache_obstack.
* tree.c (list_hash_add): Put hash node on permanent_obstack.
(hash_tree_cons): Don't mess with obstacks.
if appropriate.
(finish_decl_cleanup): New function.
(expand_stmt): Use emit_local_var to output variables.
- (expand_body): Set current_funtion_name_declared.
+ (expand_body): Set current_function_name_declared.
1999-09-10 Mark Mitchell <mark@codesourcery.com>
(ARITHMETIC_TYPE_P): Adjust definition for standard conformance.
(strip_top_quals): Declare.
(ncp_convert): Likewise.
- (type_after_usual_arithmetic_converions): Likewise.
+ (type_after_usual_arithmetic_conversions): Likewise.
(composite_pointer_type): Likewise.
* call.c (strip_top_quals): Don't make it static.
(promoted_arithmetic_type_p): New function.
1999-05-25 Mark Mitchell <mark@codesourcery.com>
* class.c (finish_vtbls): Copy BINFO_VIRTUALs before using it to
- intialize a vtable.
+ initialize a vtable.
* cp-tree.h (NAMESPACE_LEVEL): Reformat.
(lang_decl_flags): Document MEMFUNC_POINTER_TO. Save four bytes
push_template_decl_real instead of push_template_decl.
* method.c (build_decl_overload_real): Remove prototype. Give it
external linkage.
- (build_overload_identififer): Adjust call to innermost_args.
+ (build_overload_identifier): Adjust call to innermost_args.
(build_template_decl_overload): Remove.
(set_mangled_name_for_decl): New function.
* parse.y (.finish_template_type): New non-terminal.
void operator delete[] (void *);
};
- does not cause unncessary storage to be allocated when an array of
+ does not cause unnecessary storage to be allocated when an array of
`A' objects is allocated.
This change will only affect code that declares both of these
{
/* [dcl.init.ref]
- If the intializer expression
+ If the initializer expression
-- is an lvalue (but not an lvalue for a bit-field), and "cv1 T1"
is reference-compatible with "cv2 T2,"
}
}
-/* Binfo FROM is within a virtual heirarchy which is being reseated to
+/* Binfo FROM is within a virtual hierarchy which is being reseated to
TO. Move primary information from FROM to TO, and recursively traverse
- into FROM's bases. The heirarchy is dominated by TYPE. MAPPINGS is an
+ into FROM's bases. The hierarchy is dominated by TYPE. MAPPINGS is an
assoc list of binfos that have already been reseated. */
static void
}
/* FROM is the canonical binfo for a virtual base. It is being reseated to
- make TO the canonical binfo, within the heirarchy dominated by TYPE.
+ make TO the canonical binfo, within the hierarchy dominated by TYPE.
MAPPINGS is an assoc list of binfos that have already been reseated.
Adjust any non-virtual bases within FROM, and also move any virtual bases
which are canonical. This complication arises because selecting primary
}
/* The type corresponding to BASE_BINFO is a base of the type of BINFO, but
- from within some heirarchy which is inherited from the type of BINFO.
+ from within some hierarchy which is inherited from the type of BINFO.
Return BASE_BINFO's equivalent binfo from the hierarchy dominated by
BINFO. */
/* Nonzero if this binfo has lost its primary base binfo (because that
is a nearly-empty virtual base that has been taken by some other
- base in the complete heirarchy. */
+ base in the complete hierarchy. */
#define BINFO_LOST_PRIMARY_P(NODE) TREE_LANG_FLAG_2 (NODE)
/* Nonzero if this binfo is an indirect primary base, i.e. a virtual
itf_ptrmem_ok = 1 << 2, /* pointers to member ok (internal use) */
} instantiate_type_flags;
-/* The kind of checking we can do looking in a class heirarchy. */
+/* The kind of checking we can do looking in a class hierarchy. */
typedef enum base_access {
ba_any = 0, /* Do not check access, allow an ambiguous base,
prefer a non-virtual base */
ba_quiet = 4, /* Do not issue error messages (bit mask). */
} base_access;
-/* The kind of base we can find, looking in a class heirarchy.
+/* The kind of base we can find, looking in a class hierarchy.
Values <0 indicate we failed. */
typedef enum base_kind {
bk_inaccessible = -3, /* The base is inaccessible */
DEDUCE_ORDER
} unification_kind_t;
-/* Macros for operating on a template instantation level node, represented
+/* Macros for operating on a template instantiation level node, represented
by an EXPR_WITH_FILE_LOCATION. */
#define TINST_DECL(NODE) EXPR_WFL_NODE (NODE)
defer_p = DECL_FUNCTION_SCOPE_P (decl) || DECL_VIRTUAL_P (decl);
/* We try to defer namespace-scope static constants so that they are
- not emitted into the object file unncessarily. */
+ not emitted into the object file unnecessarily. */
if (!DECL_VIRTUAL_P (decl)
&& TREE_READONLY (decl)
&& DECL_INITIAL (decl) != NULL_TREE
DECL_ARTIFICIAL (fndecl) = 1;
/* Make the function `inline' so that it is only emitted if it is
actually needed. It is unlikely that it will be inlined, since
- it is only called via a function pointer, but we avoid unncessary
+ it is only called via a function pointer, but we avoid unnecessary
emissions this way. */
DECL_INLINE (fndecl) = 1;
/* Build the parameter. */
&& TREE_OVERFLOW (TYPE_SIZE (type)))
{
error ("size of array `%s' is too large", name);
- /* If we proceed with the array type as it is, we'll eventully
+ /* If we proceed with the array type as it is, we'll eventually
crash in tree_low_cst(). */
type = error_mark_node;
}
check here. */
if (TREE_CODE (value) == FUNCTION_DECL)
{
- cp_error ("cannot declare bitfield `%D' with funcion type",
+ cp_error ("cannot declare bitfield `%D' with function type",
DECL_NAME (value));
return NULL_TREE;
}
}
/* Returns an expression to be executed if an unhandled exception is
- propogated out of a cleanup region. */
+ propagated out of a cleanup region. */
static tree
cp_protect_cleanup_actions ()
NAME
The name of the operator, as a C string, but without the
- preceeding `operator'. This is the name that would be given in
+ preceding `operator'. This is the name that would be given in
the source program. For `operator +', for example, this would be
`+'.
OLD_MANGLING
- Analagous, but for the old ABI.
+ Analogous, but for the old ABI.
ARITY
There is code (such as in grok_op_properties) that depends on the
order the operators are presented in this file. In particular,
- unary operators must preceed binary operators. */
+ unary operators must precede binary operators. */
/* Use DEF_SIMPLE_OPERATOR to define a non-assignment operator. Its
arguments are as for DEF_OPERATOR, but there is no need to provide
for (; parm;
parm = TREE_CHAIN (parm), clone_parm = TREE_CHAIN (clone_parm))
{
- /* Update this paramter. */
+ /* Update this parameter. */
update_cloned_parm (parm, clone_parm);
/* We should only give unused information for one clone. */
if (!first)
If CLASSTYPE_INTERFACE_ONLY, then the first explicit instantiation
was `extern'. If EXTERN_P then the second is. If -frepo, chances
- are we already got marked as an explicit instantion because of the
+ are we already got marked as an explicit instantiation because of the
repo file. All these cases are OK. */
if (!CLASSTYPE_INTERFACE_ONLY (t) && !extern_p && !flag_use_repository
&& complain)
return NULL_TREE;
}
-/* Determine the hint flags describing the features of a class's heirarchy. */
+/* Determine the hint flags describing the features of a class's hierarchy. */
static int
class_hint_flags (type)
TYPE_HAS_CONSTRUCTOR (base_desc_type_node) = 1;
}
- /* General heirarchy is created as necessary in this vector. */
+ /* General hierarchy is created as necessary in this vector. */
vmi_class_desc_type_node = make_tree_vec (10);
/* Pointer type_info. Adds two fields, qualification mask
/* We're running through the initializers from right to left
as we process them here. So, if we see a data member
initializer after we see a base initializer, that
- actually means that the base initializer preceeded the
+ actually means that the base initializer preceded the
data member initializer. */
if (warn_reorder && last_base_warned_about != base_init_list)
{
/* Finish processing a BASE_CLASS with the indicated ACCESS_SPECIFIER.
Return a TREE_LIST containing the ACCESS_SPECIFIER and the
BASE_CLASS, or NULL_TREE if an error occurred. The
- ACCESSS_SPECIFIER is one of
+ ACCESS_SPECIFIER is one of
access_{default,public,protected_private}[_virtual]_node.*/
tree
/* Remember this function. In finish_file we'll decide if
we actually need to write this function out. */
defer_fn (fn);
- /* Let the back-end know that this funtion exists. */
+ /* Let the back-end know that this function exists. */
(*debug_hooks->deferred_inline_function) (fn);
return;
}
}
/* T1 and T2 are arithmetic or enumeration types. Return the type
- that will result from the "usual arithmetic converions" on T1 and
+ that will result from the "usual arithmetic conversions" on T1 and
T2 as described in [expr]. */
tree
Casting from an rvalue of type "pointer to data member of X
of type T1" to the type "pointer to data member of Y of type
T2" casts away constness if a cast from an rvalue of type
- "poitner to T1" to the type "pointer to T2" casts away
+ "pointer to T1" to the type "pointer to T2" casts away
constness. */
return casts_away_constness
(build_pointer_type (TREE_TYPE (TREE_TYPE (t1))),