From: jsm28 Date: Sun, 16 Dec 2001 16:07:01 +0000 (+0000) Subject: * ChangeLog.1, ChangeLog.2, ChangeLog, NEWS, call.c, class.c, X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=4109ca29e42129b2f464155ee15fe667c1b0298c * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48072 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index b653af5f452..b9488e747cf 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,9 @@ +2001-12-16 Joseph S. Myers + + * 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 * lang-options.h: Use American spelling in messages. @@ -1308,7 +1314,7 @@ Fri Sep 21 08:16:19 2001 J"orn Rennecke 2001-07-20 Nathan Sidwell 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. @@ -3652,7 +3658,7 @@ Sun Feb 4 15:52:44 2001 Richard Kenner * 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. @@ -6406,7 +6412,7 @@ Wed Jul 26 15:05:51 CEST 2000 Marc Espie 2000-06-23 Kriang Lerdsuwanakij * 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. @@ -7471,10 +7477,10 @@ Sat May 27 11:25:46 2000 Richard Kenner * 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 @@ -7519,7 +7525,7 @@ Mon May 15 11:46:29 2000 Donald Lindsay (__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 @@ -10559,7 +10565,7 @@ Wed Jan 26 22:19:14 2000 J"orn Rennecke 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. diff --git a/gcc/cp/ChangeLog.1 b/gcc/cp/ChangeLog.1 index 5cc0dac7fb0..b411f18ef05 100644 --- a/gcc/cp/ChangeLog.1 +++ b/gcc/cp/ChangeLog.1 @@ -2309,7 +2309,7 @@ Mon Mar 6 15:07:02 1995 Jason Merrill 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 diff --git a/gcc/cp/ChangeLog.2 b/gcc/cp/ChangeLog.2 index 7a848eedc18..179d6d7b136 100644 --- a/gcc/cp/ChangeLog.2 +++ b/gcc/cp/ChangeLog.2 @@ -1216,7 +1216,7 @@ Wed Oct 13 22:01:35 1999 J"orn Rennecke 1999-10-07 Mark Mitchell * 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. @@ -1357,7 +1357,7 @@ Wed Oct 13 22:01:35 1999 J"orn Rennecke (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. @@ -1463,7 +1463,7 @@ Thu Sep 30 00:13:27 1999 Dirk Zoller (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. @@ -2255,7 +2255,7 @@ Sun Sep 12 23:29:07 1999 Kaveh R. Ghazi 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 @@ -4139,7 +4139,7 @@ Thu Aug 5 02:40:42 1999 Jeffrey A Law (law@cygnus.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. @@ -4670,7 +4670,7 @@ Wed Jul 7 01:26:47 1999 Alexandre Oliva 1999-05-25 Mark Mitchell * 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 @@ -9673,7 +9673,7 @@ Fri Aug 14 16:42:27 1998 Nick Clifton 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. diff --git a/gcc/cp/NEWS b/gcc/cp/NEWS index 2d3632cdf01..1790882cfcf 100644 --- a/gcc/cp/NEWS +++ b/gcc/cp/NEWS @@ -33,7 +33,7 @@ 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 diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 8b1e2bb0814..bd43a404409 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -1125,7 +1125,7 @@ reference_binding (rto, rfrom, expr, flags) { /* [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," diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 0b0d33f6031..b9ed718cf0d 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -1380,9 +1380,9 @@ check_bases (t, cant_have_default_ctor_p, cant_have_const_ctor_p, } } -/* 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 @@ -1448,7 +1448,7 @@ force_canonical_binfo_r (to, from, type, mappings) } /* 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 @@ -6907,7 +6907,7 @@ build_vtt (t) } /* 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. */ diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h index 70b51102b94..d4fc1b6de0b 100644 --- a/gcc/cp/cp-tree.h +++ b/gcc/cp/cp-tree.h @@ -1609,7 +1609,7 @@ struct lang_type /* 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 @@ -3018,7 +3018,7 @@ typedef enum instantiate_type_flags { 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 */ @@ -3029,7 +3029,7 @@ typedef enum base_access { 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 */ @@ -3090,7 +3090,7 @@ typedef enum unification_kind_t { 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) diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index c997535a9d5..f9aceaa1e3e 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -7834,7 +7834,7 @@ make_rtl_for_nonlocal_decl (decl, init, asmspec) 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 @@ -8401,7 +8401,7 @@ start_cleanup_fn () 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. */ @@ -11042,7 +11042,7 @@ grokdeclarator (declarator, declspecs, decl_context, initialized, attrlist) && 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; } diff --git a/gcc/cp/decl2.c b/gcc/cp/decl2.c index e625d963651..10120450f2e 100644 --- a/gcc/cp/decl2.c +++ b/gcc/cp/decl2.c @@ -1690,7 +1690,7 @@ grokbitfield (declarator, declspecs, width) 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; } diff --git a/gcc/cp/except.c b/gcc/cp/except.c index 079df977566..32f2458bff9 100644 --- a/gcc/cp/except.c +++ b/gcc/cp/except.c @@ -86,7 +86,7 @@ init_exception_processing () } /* 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 () diff --git a/gcc/cp/operators.def b/gcc/cp/operators.def index 8e0f7b2478e..775f59db052 100644 --- a/gcc/cp/operators.def +++ b/gcc/cp/operators.def @@ -29,7 +29,7 @@ Boston, MA 02111-1307, USA. */ 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 `+'. @@ -48,7 +48,7 @@ Boston, MA 02111-1307, USA. */ OLD_MANGLING - Analagous, but for the old ABI. + Analogous, but for the old ABI. ARITY @@ -65,7 +65,7 @@ Boston, MA 02111-1307, USA. */ 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 diff --git a/gcc/cp/optimize.c b/gcc/cp/optimize.c index ae343dcaf64..ac51cda4963 100644 --- a/gcc/cp/optimize.c +++ b/gcc/cp/optimize.c @@ -194,7 +194,7 @@ maybe_clone_body (fn) 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) diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 79a413b27be..7775fcf9bf2 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -9622,7 +9622,7 @@ do_type_instantiation (t, storage, complain) 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) diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index a1b665e5927..f99f1cc6150 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -860,7 +860,7 @@ dfs_class_hint_unmark (binfo, data) 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) @@ -1315,7 +1315,7 @@ create_tinfo_types () 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 diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index bbd43e99329..632e9132038 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -1116,7 +1116,7 @@ finish_mem_initializers (init_list) /* 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) { @@ -2109,7 +2109,7 @@ enter_scope_of (sr) /* 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 @@ -2455,7 +2455,7 @@ expand_body (fn) /* 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; } diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 04a70304dbd..b721faefc9c 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -324,7 +324,7 @@ original_type (t) } /* 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 @@ -7010,7 +7010,7 @@ casts_away_constness (t1, t2) 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))),