From 9faa82d8c081b9e38370b5a913825111d2166de6 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 16 May 1995 08:39:54 -0400 Subject: [PATCH] Fix typos in comments. From-SVN: r9712 --- gcc/crtstuff.c | 2 +- gcc/cse.c | 4 ++-- gcc/dwarfout.c | 12 ++++++------ gcc/emit-rtl.c | 6 +++--- gcc/explow.c | 2 +- gcc/expmed.c | 2 +- gcc/expr.c | 8 ++++---- gcc/expr.h | 2 +- gcc/fix-header.c | 2 +- gcc/fixinc.winnt | 2 +- gcc/fixproto | 2 +- gcc/flow.c | 6 +++--- gcc/fold-const.c | 4 ++-- gcc/function.c | 12 ++++++------ gcc/genrecog.c | 2 +- gcc/integrate.c | 2 +- gcc/libgcc2.c | 6 +++--- gcc/local-alloc.c | 2 +- gcc/mips-tfile.c | 6 +++--- gcc/objc/class.c | 8 ++++---- gcc/objc/encoding.c | 2 +- gcc/objc/hash.h | 2 +- gcc/objc/misc.c | 2 +- gcc/objc/objc-act.c | 4 ++-- gcc/objc/selector.c | 2 +- gcc/objc/sendmsg.c | 8 ++++---- gcc/objc/typedstream.h | 2 +- gcc/protoize.c | 4 ++-- gcc/real.c | 2 +- gcc/recog.c | 2 +- gcc/regclass.c | 4 ++-- gcc/regs.h | 2 +- gcc/reload.c | 2 +- gcc/reload1.c | 8 ++++---- gcc/rtl.h | 2 +- gcc/sched.c | 4 ++-- gcc/stmt.c | 6 +++--- gcc/stor-layout.c | 2 +- gcc/toplev.c | 2 +- gcc/tree.c | 10 +++++----- gcc/tree.h | 4 ++-- gcc/unroll.c | 10 +++++----- gcc/varasm.c | 2 +- gcc/vmsconfig.com | 6 +++--- gcc/xcoffout.c | 2 +- gcc/xcoffout.h | 2 +- 46 files changed, 95 insertions(+), 95 deletions(-) diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index b10a87a3c29..f95678c4aef 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -260,7 +260,7 @@ init_dummy () Note that we use some tricks here to get *just* the body and just a function epilogue (but no function prologue) into the .init - section of the crtend.o file. Sepcifically, we switch to the .text + section of the crtend.o file. Specifically, we switch to the .text section, start to define a function, and then we switch to the .init section just before the body code. diff --git a/gcc/cse.c b/gcc/cse.c index a0c2d744473..7ada45eaa85 100644 --- a/gcc/cse.c +++ b/gcc/cse.c @@ -4999,7 +4999,7 @@ fold_rtx (x, insn) if (offset == 0 && mode == const_mode) return constant; - /* If this actually isn't a constant (wierd!), we can't do + /* If this actually isn't a constant (weird!), we can't do anything. Otherwise, handle the two most common cases: extracting a word from a multi-word constant, and extracting the low-order bits. Other cases don't seem common enough to @@ -6192,7 +6192,7 @@ cse_insn (insn, in_libcall_block) /* Store the equivalent value in SRC_EQV, if different, or if the DEST is a STRICT_LOW_PART. The latter condition is necessary because SRC_EQV is handled specially for this case, and if it isn't set, then there will - be no equivalence for the destinatation. */ + be no equivalence for the destination. */ if (n_sets == 1 && REG_NOTES (insn) != 0 && (tem = find_reg_note (insn, REG_EQUAL, NULL_RTX)) != 0 && (! rtx_equal_p (XEXP (tem, 0), SET_SRC (sets[0].rtl)) diff --git a/gcc/dwarfout.c b/gcc/dwarfout.c index f5cb10c94c8..296cbefda3d 100644 --- a/gcc/dwarfout.c +++ b/gcc/dwarfout.c @@ -1957,7 +1957,7 @@ location_attribute (rtl) suppress the generation of the entire location attribute because the absence of a location attribute in certain kinds of DIEs is used to indicate something else entirely... i.e. that the DIE - represents an object declaration, but not a definition. So sayeth + represents an object declaration, but not a definition. So saith the PLSIG. */ @@ -2414,7 +2414,7 @@ subscript_data_attribute (type) } } - /* Output the prefix byte that says that the element type is comming up. */ + /* Output the prefix byte that says that the element type is coming up. */ ASM_OUTPUT_DWARF_FMT_BYTE (asm_out_file, FMT_ET); @@ -4524,7 +4524,7 @@ output_decl (decl, containing_scope) } else { - /* this is unprotoyped, check for undefined (just declaration) */ + /* this is unprototyped, check for undefined (just declaration) */ if (!DECL_INITIAL (decl)) output_die (output_unspecified_parameters_die, decl); } @@ -4555,7 +4555,7 @@ output_decl (decl, containing_scope) Just within the `outer_scope' there will be another BLOCK node representing the function's outermost pair of curly - braces. We musn't generate a lexical_block DIE for this + braces. We mustn't generate a lexical_block DIE for this outermost pair of curly braces because that is not really an independent scope according to ANSI C rules. Rather, it is the same scope in which the parameters were declared. */ @@ -4756,12 +4756,12 @@ dwarfout_file_scope_decl (decl, set_finalizing) /* What we would really like to do here is to filter out all mere file-scope declarations of file-scope functions which are never referenced later within this translation unit (and keep all of - ones that *are* referenced later on) but we aren't clarvoiant, + ones that *are* referenced later on) but we aren't clairvoyant, so we have no idea which functions will be referenced in the future (i.e. later on within the current translation unit). So here we just ignore all file-scope function declarations which are not also definitions. If and when the debugger needs - to know something about these funcstion, it wil have to hunt + to know something about these functions, it wil have to hunt around and find the DWARF information associated with the *definition* of the function. diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 847926f7948..383f1ea3e7b 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1598,7 +1598,7 @@ reset_used_flags (x) code = GET_CODE (x); - /* These types may be freely shared so we needn't do any reseting + /* These types may be freely shared so we needn't do any resetting for them. */ switch (code) @@ -3060,8 +3060,8 @@ gen_sequence () sequence_result[len] = 0; else { - /* Ensure that this rtl goes in saveable_obstack, since we may be - caching it. */ + /* Ensure that this rtl goes in saveable_obstack, since we may + cache it. */ push_obstacks_nochange (); rtl_in_saveable_obstack (); result = gen_rtx (SEQUENCE, VOIDmode, rtvec_alloc (len)); diff --git a/gcc/explow.c b/gcc/explow.c index 52cb0e963da..2985db2b64e 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -982,7 +982,7 @@ allocate_dynamic_stack_space (size, target, known_align) int known_align; { /* If we're asking for zero bytes, it doesn't matter what we point - to since we can't derefference it. But return a reasonable + to since we can't dereference it. But return a reasonable address anyway. */ if (size == const0_rtx) return virtual_stack_dynamic_rtx; diff --git a/gcc/expmed.c b/gcc/expmed.c index 5fcfe64f0c2..3a7bbe75bf0 100644 --- a/gcc/expmed.c +++ b/gcc/expmed.c @@ -2811,7 +2811,7 @@ expand_divmod (rem_flag, code, mode, op0, op1, target, unsignedp) last = get_last_insn (); - /* Promote floor rouding to trunc rounding for unsigned operations. */ + /* Promote floor rounding to trunc rounding for unsigned operations. */ if (unsignedp) { if (code == FLOOR_DIV_EXPR) diff --git a/gcc/expr.c b/gcc/expr.c index bcb612ed8e4..d4fc8fe8176 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -3149,7 +3149,7 @@ store_constructor (exp, target) tree domain = TYPE_DOMAIN (type); tree domain_min, domain_max, bitlength; - /* The default implementation stategy is to extract the constant + /* The default implementation strategy is to extract the constant parts of the constructor, use that to initialize the target, and then "or" in whatever non-constant ranges we need in addition. @@ -3274,7 +3274,7 @@ store_constructor (exp, target) #ifdef TARGET_MEM_FUNCTIONS /* Optimization: If startbit and endbit are - constants divisble by BITS_PER_UNIT, + constants divisible by BITS_PER_UNIT, call memset instead. */ if (TREE_CODE (startbit) == INTEGER_CST && TREE_CODE (endbit) == INTEGER_CST @@ -7955,7 +7955,7 @@ static enum machine_mode apply_result_mode[FIRST_PSEUDO_REGISTER]; /* For each register that may be used for calling a function, this gives the offset of that register into the block returned by - __bultin_apply_args. 0 indicates that the register is not + __builtin_apply_args. 0 indicates that the register is not used for calling a function. */ static int apply_args_reg_offset[FIRST_PSEUDO_REGISTER]; @@ -8475,7 +8475,7 @@ expand_increment (exp, post) op0 = expand_expr (incremented, NULL_RTX, VOIDmode, 0); /* If OP0 is a SUBREG made for a promoted variable, we cannot increment - in place but intead must do sign- or zero-extension during assignment, + in place but instead must do sign- or zero-extension during assignment, so we copy it into a new register and let the code below use it as a copy. diff --git a/gcc/expr.h b/gcc/expr.h index aa235bd69d4..ac1757d1b30 100644 --- a/gcc/expr.h +++ b/gcc/expr.h @@ -643,7 +643,7 @@ extern rtx emit_move_insn_1 PROTO ((rtx, rtx)); and return an rtx to address the beginning of the block. */ extern rtx push_block PROTO((rtx, int, int)); -/* Make an operand to push someting on the stack. */ +/* Make an operand to push something on the stack. */ extern rtx gen_push_operand PROTO((void)); #ifdef TREE_CODE diff --git a/gcc/fix-header.c b/gcc/fix-header.c index 0ab1d59183e..e4d7d369a75 100644 --- a/gcc/fix-header.c +++ b/gcc/fix-header.c @@ -29,7 +29,7 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ the empty parameter list with the argument lust from sys-protos.h. * The program can be given a list of (names of) required standard - functions (such as fclose for stdio.h). If a reqquired function + functions (such as fclose for stdio.h). If a required function is not seen in the input, then a prototype for it will be written to the output. diff --git a/gcc/fixinc.winnt b/gcc/fixinc.winnt index 633d3eb7bb9..e65eaa9676d 100644 --- a/gcc/fixinc.winnt +++ b/gcc/fixinc.winnt @@ -28,7 +28,7 @@ # provide many essential definitions and declarations if # __STDC__ is 1. This script modifies the header files to check # for __STRICT_ANSI__ being defined instead. However the most -# important modification is to change all occurences of __stdcall +# important modification is to change all occurrences of __stdcall # and __cdecl to __attribute__((stdcall)) and __attribute__((cdecl)), # respectively. Once munged, the # resulting new system include files are placed in a directory diff --git a/gcc/fixproto b/gcc/fixproto index bfa8419d99e..251c2a88248 100755 --- a/gcc/fixproto +++ b/gcc/fixproto @@ -46,7 +46,7 @@ # files are copied. An earlier version just included the original # by "reference", using GNU cpp's #include_next mechanism. # This is currently not done, partly because #include_next is -# fragile (susceptible to version incompatibilties, and depends +# fragile (susceptible to version incompatibilities, and depends # and GCC-specific features), and partly for performance reasons. # # AUTHORS diff --git a/gcc/flow.c b/gcc/flow.c index d7467e5bb1e..a5aa1fb133f 100644 --- a/gcc/flow.c +++ b/gcc/flow.c @@ -177,7 +177,7 @@ int *reg_basic_block; int *reg_n_refs; -/* Indexed by N; says whether a psuedo register N was ever used +/* Indexed by N; says whether a pseudo register N was ever used within a SUBREG that changes the size of the reg. Some machines prohibit such objects to be in certain (usually floating-point) registers. */ @@ -727,14 +727,14 @@ find_basic_blocks (f, nonlocal_label_list) } } - /* There are pathalogical cases where one function calling hundreds of + /* There are pathological cases where one function calling hundreds of nested inline functions can generate lots and lots of unreachable blocks that jump can't delete. Since we don't use sparse matrices a lot of memory will be needed to compile such functions. Implementing sparse matrices is a fair bit of work and it is not clear that they win more than they lose (we don't want to unnecessarily slow down compilation of normal code). By making - another pass for the pathalogical case, we can greatly speed up + another pass for the pathological case, we can greatly speed up their compilation without hurting normal code. This works because all the insns in the unreachable blocks have either been deleted or turned into notes. diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 43ab364780e..c51b8cddd74 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -2631,7 +2631,7 @@ unextend (c, p, unsignedp) c = convert (signed_type (type), c); /* We work by getting just the sign bit into the low-order bit, then - into the high-order bit, then sign-extened. We then XOR that value + into the high-order bit, then sign-extend. We then XOR that value with C. */ temp = const_binop (RSHIFT_EXPR, c, size_int (p - 1), 0); temp = const_binop (BIT_AND_EXPR, temp, size_int (1), 0); @@ -3277,7 +3277,7 @@ fold (expr) succeed in folding one part to a constant, we do not need to make this SAVE_EXPR. Since we do this optimization primarily to see if we do end up with constant and this - SAVE_EXPR interfers with later optimizations, suppressing + SAVE_EXPR interferes with later optimizations, suppressing it when we can is important. */ if (TREE_CODE (arg0) != SAVE_EXPR diff --git a/gcc/function.c b/gcc/function.c index 77157400063..904eff18f5e 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -60,7 +60,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Some systems use __main in a way incompatible with its use in gcc, in these cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to give the same symbol without quotes for an alternative entry point. You - must define both, or niether. */ + must define both, or neither. */ #ifndef NAME__MAIN #define NAME__MAIN "__main" #define SYMBOL__MAIN __main @@ -978,7 +978,7 @@ find_temp_slot_from_address (x) return 0; } -/* Indicate that NEW is an alternate way of refering to the temp slot +/* Indicate that NEW is an alternate way of referring to the temp slot that previous was known by OLD. */ void @@ -1002,7 +1002,7 @@ update_temp_slot_address (old, new) } /* If X could be a reference to a temporary slot, mark the fact that its - adddress was taken. */ + address was taken. */ void mark_temp_addr_taken (x) @@ -1470,7 +1470,7 @@ fixup_var_refs_insns (var, promoted_mode, unsignedp, insn, toplevel) If we don't use an intermediate pseudo, such things as address computations to make the address of VAR valid - if it is not can be placed beween the CALL_INSN and INSN. + if it is not can be placed between the CALL_INSN and INSN. To make sure this doesn't happen, we record the destination of the CALL_INSN and see if the next insn uses both that @@ -5105,7 +5105,7 @@ expand_function_start (subr, parms_have_cleanups) /* Fetch static chain values for containing functions. */ tem = decl_function_context (current_function_decl); /* If not doing stupid register allocation copy the static chain - pointer into a psuedo. If we have small register classes, copy the + pointer into a pseudo. If we have small register classes, copy the value from memory if static_chain_incoming_rtx is a REG. If we do stupid register allocation, we use the stack address generated above. */ if (tem && ! obey_regdecls) @@ -5452,7 +5452,7 @@ contains (insn, vec) return 0; } -/* Generate the prologe and epilogue RTL if the machine supports it. Thread +/* Generate the prologue and epilogue RTL if the machine supports it. Thread this into place with notes indicating where the prologue ends and where the epilogue begins. Update the basic block information when possible. */ diff --git a/gcc/genrecog.c b/gcc/genrecog.c index c0d31d26973..7266bc567c1 100644 --- a/gcc/genrecog.c +++ b/gcc/genrecog.c @@ -372,7 +372,7 @@ add_to_sequence (pattern, last, position) Finally, if we know that the predicate does not allow CONST_INT, we know that the only way the predicate can match is if the modes match - (here we use the kluge of relying on the fact that "address_operand" + (here we use the kludge of relying on the fact that "address_operand" accepts CONST_INT; otherwise, it would have to be a special case), so we can test the mode (but we need not). This fact should considerably simplify the generated code. */ diff --git a/gcc/integrate.c b/gcc/integrate.c index 9ab7adf4635..b15c3a0bb7d 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -2190,7 +2190,7 @@ copy_rtx_and_substitute (orig, map) && CODE_LABEL_NUMBER (XEXP (copy, 0)) < max_label_num ())); /* If we have made a nonlocal label local, it means that this - inlined call will be refering to our nonlocal goto handler. + inlined call will be referring to our nonlocal goto handler. So make sure we create one for this block; we normally would not since this is not otherwise considered a "call". */ if (LABEL_REF_NONLOCAL_P (orig) && ! LABEL_REF_NONLOCAL_P (copy)) diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 32cb00bca05..8f3db8aef8b 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -1136,7 +1136,7 @@ __fixunssfsi (SFtype a) #ifdef L__gcc_bcmp /* Like bcmp except the sign is meaningful. - Reult is negative if S1 is less than S2, + Result is negative if S1 is less than S2, positive if S1 is greater, 0 if S1 and S2 are equal. */ int @@ -1422,7 +1422,7 @@ BLOCK_PROFILER_CODE #ifndef inhibit_libc /* Simple minded basic block profiling output dumper for - systems that don't provde tcov support. At present, + systems that don't provide tcov support. At present, it requires atexit and stdio. */ #undef NULL /* Avoid errors if stdio.h and our stddef.h mismatch. */ @@ -2017,7 +2017,7 @@ __enable_execute_stack () /* Some systems use __main in a way incompatible with its use in gcc, in these cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to give the same symbol without quotes for an alternative entry point. You - must define both, or niether. */ + must define both, or neither. */ #ifndef NAME__MAIN #define NAME__MAIN "__main" #define SYMBOL__MAIN __main diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index e62a5a61953..2e2d6714fbc 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -1625,7 +1625,7 @@ qty_compare_1 (q1, q2) is called for quantities that have suggested hard registers. First priority goes to quantities that have copy preferences, then to those that have normal preferences. Within those groups, quantities with the lower - number of preferenes have the highest priority. Of those, we use the same + number of preferences have the highest priority. Of those, we use the same algorithm as above. */ static int diff --git a/gcc/mips-tfile.c b/gcc/mips-tfile.c index 85632c25782..5074e9bb7c4 100644 --- a/gcc/mips-tfile.c +++ b/gcc/mips-tfile.c @@ -2359,7 +2359,7 @@ add_aux_sym_tir (t, state, hash_tbl) : (t->sizes[i] * 8) / t->dimensions[i]); }; - /* NOTE: Mips documentation claism that the bitfield width goes here. + /* NOTE: Mips documentation claims that the bitfield width goes here. But it needs to be emitted earlier. */ return ret; @@ -3332,7 +3332,7 @@ parse_def (name_start) } else if (symbol_type == st_Member && t.num_sizes - t.extra_sizes == 1) - { /* Is this a bitfield? This is indicated by a structure memeber + { /* Is this a bitfield? This is indicated by a structure member having a size field that isn't an array. */ t.bitfield = 1; @@ -3632,7 +3632,7 @@ mark_stabs (start) { if (!stabs_seen) { - /* Add a dummy @stabs dymbol. */ + /* Add a dummy @stabs symbol. */ stabs_seen = 1; (void) add_local_symbol (stabs_symbol, stabs_symbol + sizeof (stabs_symbol), diff --git a/gcc/objc/class.c b/gcc/objc/class.c index 0e7d49b1403..aeb228f48e0 100644 --- a/gcc/objc/class.c +++ b/gcc/objc/class.c @@ -275,9 +275,9 @@ class_pose_as (Class impostor, Class super_class) impostor->subclass_list = sub; /* It will happen that SUB is not a class object if it is - the top of the meta class hierachy chain. (root - meta-class objects inherit theit class object) If that is - the case... dont mess with the meta-meta class. */ + the top of the meta class hierarchy chain. (root + meta-class objects inherit their class object) If that is + the case... don't mess with the meta-meta class. */ if (CLS_ISCLASS (sub)) { /* meta classes */ @@ -305,7 +305,7 @@ class_pose_as (Class impostor, Class super_class) /* This is how to update the lookup table. Regardless of what the keys of the hashtable is, change all values that are - suprecalss into impostor. */ + superclass into impostor. */ for (node = hash_next (__objc_class_hash, NULL); node; node = hash_next (__objc_class_hash, node)) diff --git a/gcc/objc/encoding.c b/gcc/objc/encoding.c index 7f64046a487..66c817f05c4 100644 --- a/gcc/objc/encoding.c +++ b/gcc/objc/encoding.c @@ -281,7 +281,7 @@ objc_promoted_size (const char* type) /* Skip type qualifiers. These may eventually precede typespecs - occuring in method prototype encodings. + occurring in method prototype encodings. */ inline const char* diff --git a/gcc/objc/hash.h b/gcc/objc/hash.h index 0234e2e1dce..f78dbd6bed8 100644 --- a/gcc/objc/hash.h +++ b/gcc/objc/hash.h @@ -113,7 +113,7 @@ cache_ptr hash_new (unsigned int size, void hash_delete (cache_ptr cache); /* Add the key/value pair to the hash table. If the - hash table reaches a level of fullnes then it will be resized. + hash table reaches a level of fullness then it will be resized. assert if the key is already in the hash. */ diff --git a/gcc/objc/misc.c b/gcc/objc/misc.c index dee19da96b5..d2bf1eee586 100644 --- a/gcc/objc/misc.c +++ b/gcc/objc/misc.c @@ -1,4 +1,4 @@ -/* GNU Objective C Runtime Miscellanious +/* GNU Objective C Runtime Miscellaneous Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. Author: Kresten Krab Thorup diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 2bd3a75244c..f6b893672bf 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -1115,7 +1115,7 @@ synth_module_prologue () { if (flag_typed_selectors) { - /* supress outputting debug symbols, because + /* suppress outputting debug symbols, because dbxout_init hasn'r been called yet... */ enum debug_info_type save_write_symbols = write_symbols; write_symbols = NO_DEBUG; @@ -4839,7 +4839,7 @@ build_message_expr (mess) warning ("method `%s' not implemented by protocol.", IDENTIFIER_POINTER (sel_name)); - /* try and find the method signiture in the global pools! */ + /* try and find the method signature in the global pools! */ if (!(hsh = hash_lookup (nst_method_hash_list, sel_name))) hsh = hash_lookup (cls_method_hash_list, sel_name); diff --git a/gcc/objc/selector.c b/gcc/objc/selector.c index 9adb56a2948..e208ca9cb95 100644 --- a/gcc/objc/selector.c +++ b/gcc/objc/selector.c @@ -27,7 +27,7 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "objc/sarray.h" #include "encoding.h" -/* Initial selector hash table size. Value doesnt matter much */ +/* Initial selector hash table size. Value doesn't matter much */ #define SELECTOR_HASH_SIZE 128 /* Tables mapping selector names to uid and opposite */ diff --git a/gcc/objc/sendmsg.c b/gcc/objc/sendmsg.c index 90dd4c61650..36235405a91 100644 --- a/gcc/objc/sendmsg.c +++ b/gcc/objc/sendmsg.c @@ -285,7 +285,7 @@ __objc_install_dispatch_table_for_class (Class class) if (super != 0 && (super->dtable == __objc_uninstalled_dtable)) __objc_install_dispatch_table_for_class (super); - /* Allocate dtable if nessecary */ + /* Allocate dtable if necessary */ if (super == 0) { class->dtable = sarray_new (__objc_selector_max_index, 0); @@ -331,7 +331,7 @@ void __objc_update_dispatch_table_for_class (Class class) such this function does not worry about thread safe issued. This one is only called for categories. Class objects have their - methods installed rightaway, and their selectors are made into + methods installed right away, and their selectors are made into SEL's by the function __objc_register_selectors_from_class. */ void class_add_method_list (Class class, MethodList_t list) @@ -351,7 +351,7 @@ class_add_method_list (Class class, MethodList_t list) if (method->method_name) /* Sometimes these are NULL */ { - /* This is where selector names are transmogriffed to SEL's */ + /* This is where selector names are transmogrified to SEL's */ method->method_name = sel_register_typed_name ((const char*)method->method_name, method->method_types); @@ -475,7 +475,7 @@ __objc_block_forward (id rcv, SEL op, ...) } -/* This fuction is installed in the dispatch table for all methods which are +/* This function is installed in the dispatch table for all methods which are not implemented. Thus, it is called when a selector is not recognized. */ static retval_t __objc_forward (id object, SEL sel, arglist_t args) diff --git a/gcc/objc/typedstream.h b/gcc/objc/typedstream.h index f02a6fd1a4b..95a13504874 100644 --- a/gcc/objc/typedstream.h +++ b/gcc/objc/typedstream.h @@ -102,7 +102,7 @@ long objc_get_stream_class_version (TypedStream* stream, Class class); /* -** Convenience funtions +** Convenience functions */ int objc_write_array (TypedStream* stream, const char* type, diff --git a/gcc/protoize.c b/gcc/protoize.c index 44f0721b53e..bc28ad10c41 100644 --- a/gcc/protoize.c +++ b/gcc/protoize.c @@ -3051,7 +3051,7 @@ output_string (str) buffer (which may include original comments and preprocessing directives) will be copied into the output buffer. - Note that the request implide when this routine is called includes the + Note that the request implied when this routine is called includes the byte pointed to by the argument pointer `p'. */ static void @@ -3848,7 +3848,7 @@ edit_fn_definition (def_dec_p, clean_text_p) output_string ("\n"); } #else /* !defined (UNPROTOIZE) */ - /* If we are protoizing, there may be some flotsum & jetsum (like comments + /* If we are protoizing, there may be some flotsam & jetsam (like comments and preprocessing directives) after the old formals list but before the following { and we would like to preserve that stuff while effectively deleting the existing K&R formal parameter declarations. We do so here diff --git a/gcc/real.c b/gcc/real.c index 6c21b94b2c3..79e59df1b31 100644 --- a/gcc/real.c +++ b/gcc/real.c @@ -2585,7 +2585,7 @@ eadd1 (a, b, c) return; } /* if same sign, result is double */ - /* double denomalized tiny number */ + /* double denormalized tiny number */ if ((bi[E] == 0) && ((bi[3] & 0x8000) == 0)) { eshup1 (bi); diff --git a/gcc/recog.c b/gcc/recog.c index 8d61952272a..ff7792c208f 100644 --- a/gcc/recog.c +++ b/gcc/recog.c @@ -84,7 +84,7 @@ init_recog () /* Try recognizing the instruction INSN, and return the code number that results. - Remeber the code so that repeated calls do not + Remember the code so that repeated calls do not need to spend the time for actual rerecognition. This function is the normal interface to instruction recognition. diff --git a/gcc/regclass.c b/gcc/regclass.c index 1e82611da6d..9242bf1964f 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -44,7 +44,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ /* If we have auto-increment or auto-decrement and we can have secondary reloads, we are not allowed to use classes requiring secondary - reloads for psuedos auto-incremented since reload can't handle it. */ + reloads for pseudos auto-incremented since reload can't handle it. */ #ifdef AUTO_INC_DEC #if defined(SECONDARY_INPUT_RELOAD_CLASS) || defined(SECONDARY_OUTPUT_RELOAD_CLASS) @@ -410,7 +410,7 @@ init_reg_modes () ??? One situation in which we need to do this is on the mips where HARD_REGNO_NREGS (fpreg, [SD]Fmode) returns 2. Ideally we'd like to use DF mode for the even registers and VOIDmode for the odd - (for the cpu models where the odd ones are inaccessable). */ + (for the cpu models where the odd ones are inaccessible). */ if (reg_raw_mode[i] == VOIDmode) reg_raw_mode[i] = word_mode; } diff --git a/gcc/regs.h b/gcc/regs.h index 1b394b20c6e..ea3e155be4c 100644 --- a/gcc/regs.h +++ b/gcc/regs.h @@ -53,7 +53,7 @@ extern short *reg_n_sets; extern short *reg_n_deaths; -/* Indexed by N; says whether a psuedo register N was ever used +/* Indexed by N; says whether a pseudo register N was ever used within a SUBREG that changes the size of the reg. Some machines prohibit such objects to be in certain (usually floating-point) registers. */ diff --git a/gcc/reload.c b/gcc/reload.c index 86657516331..c9a1ffa0544 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -212,7 +212,7 @@ struct decomposition { int reg_flag; /* Nonzero if referencing a register. */ int safe; /* Nonzero if this can't conflict with anything. */ - rtx base; /* Base adddress for MEM. */ + rtx base; /* Base address for MEM. */ HOST_WIDE_INT start; /* Starting offset or register number. */ HOST_WIDE_INT end; /* Endinf offset or register number. */ }; diff --git a/gcc/reload1.c b/gcc/reload1.c index bc855789489..442a946b3b8 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -923,7 +923,7 @@ reload (first, global, dumpfile) int did_elimination = 0; /* To compute the number of reload registers of each class - needed for an insn, we must similate what choose_reload_regs + needed for an insn, we must simulate what choose_reload_regs can do. We do this by splitting an insn into an "input" and an "output" part. RELOAD_OTHER reloads are used in both. The input part uses those reloads, RELOAD_FOR_INPUT reloads, @@ -1546,7 +1546,7 @@ reload (first, global, dumpfile) /* Put all registers spilled so far back in potential_reload_regs, but put them at the front, since we've already spilled most of the - psuedos in them (we might have left some pseudos unspilled if they + pseudos in them (we might have left some pseudos unspilled if they were in a block that didn't need any spill registers of a conflicting class. We used to try to mark off the need for those registers, but doing so properly is very complex and reallocating them is the @@ -2800,7 +2800,7 @@ eliminate_regs (x, mem_mode, insn) /* If this is the product of an eliminable register and a constant, apply the distribute law and move the constant out so that we have (plus (mult ..) ..). This is needed in order - to keep load-address insns valid. This case is pathalogical. + to keep load-address insns valid. This case is pathological. We ignore the possibility of overflow here. */ if (GET_CODE (XEXP (x, 0)) == REG && REGNO (XEXP (x, 0)) < FIRST_PSEUDO_REGISTER @@ -3374,7 +3374,7 @@ eliminate_regs_in_insn (insn, replace) } done: - /* If we changed something, perform elmination in REG_NOTES. This is + /* If we changed something, perform elimination in REG_NOTES. This is needed even when REPLACE is zero because a REG_DEAD note might refer to a register that we eliminate and could cause a different number of spill registers to be needed in the final reload pass than in diff --git a/gcc/rtl.h b/gcc/rtl.h index 78904d652aa..313e63e648b 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -454,7 +454,7 @@ extern char *note_insn_name[]; /* The rest is used instead of the above, in a CODE_LABEL, if bytecode is being output. - We make the slightly klugy assumption that a LABEL has enough slots + We make the slightly kludgy assumption that a LABEL has enough slots to hold these things. That happens to be true. */ /* For static or external objects. */ diff --git a/gcc/sched.c b/gcc/sched.c index 49c37b15f2f..1632329ee52 100644 --- a/gcc/sched.c +++ b/gcc/sched.c @@ -847,7 +847,7 @@ anti_dependence (mem, x) { /* If MEM is an unchanging read, then it can't possibly conflict with the store to X, because there is at most one store to MEM, and it must - have occured somewhere before MEM. */ + have occurred somewhere before MEM. */ if (RTX_UNCHANGING_P (mem)) return 0; @@ -2367,7 +2367,7 @@ sched_note_set (b, x, death) } /* Macros and functions for keeping the priority queue sorted, and - dealing with queueing and unqueueing of instructions. */ + dealing with queueing and dequeueing of instructions. */ #define SCHED_SORT(READY, NEW_READY, OLD_READY) \ do { if ((NEW_READY) - (OLD_READY) == 1) \ diff --git a/gcc/stmt.c b/gcc/stmt.c index 6b2e80b6ba3..27f200c6d33 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -2715,7 +2715,7 @@ expand_return (retval) /* Clobber REG and move each partword into it. Ensure we don't go past the end of the structure. Note that the loop below works because we've already verified that padding and - endianness are compatable. */ + endianness are compatible. */ emit_insn (gen_rtx (CLOBBER, VOIDmode, reg)); for (bitpos = 0; @@ -4330,7 +4330,7 @@ all_cases_count (type, spareness) has the given TYPE. SPARSENESS is as determined by all_cases_count. - The time needed is propotional to COUNT, unless + The time needed is proportional to COUNT, unless SPARSENESS is 2, in which case quadratic time is needed. */ void @@ -4547,7 +4547,7 @@ check_for_full_enumeration_handling (type) #if 0 /* ??? This optimization is disabled because it causes valid programs to fail. ANSI C does not guarantee that an expression with enum type - will have a value that is the same as one of the enumation literals. */ + will have a value that is the same as one of the enumeration literals. */ /* If all values were found as case labels, make one of them the default label. Thus, this switch will never fall through. We arbitrarily pick diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index e37c8dfdacf..745a0c7b999 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -670,7 +670,7 @@ layout_type (type) { case LANG_TYPE: /* This kind of type is the responsibility - of the languge-specific code. */ + of the language-specific code. */ abort (); case INTEGER_TYPE: diff --git a/gcc/toplev.c b/gcc/toplev.c index b5e8e8134bf..ada67c37d8a 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2685,7 +2685,7 @@ rest_of_compilation (decl) TIMEVAR (integration_time, { lose = function_cannot_inline_p (decl); - /* If not optimzing, then make sure the DECL_INLINE + /* If not optimizing, then make sure the DECL_INLINE bit is off. */ if (lose || ! optimize) { diff --git a/gcc/tree.c b/gcc/tree.c index e8038d7445a..f97a95eec89 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -920,11 +920,11 @@ make_node (code) /* PARM_DECLs go on the context of the parent. If this is a nested function, then we must allocate the PARM_DECL on the parent's obstack, so that they will live to the end of the parent's - closing brace. This is neccesary in case we try to inline the + closing brace. This is necessary in case we try to inline the function into its parent. PARM_DECLs of top-level functions do not have this problem. However, - we allocate them where we put the FUNCTION_DECL for languauges such as + we allocate them where we put the FUNCTION_DECL for languages such as Ada that need to consult some flags in the PARM_DECLs of the function when calling it. @@ -4306,7 +4306,7 @@ get_file_function_name (kind) constraints). -- Raeburn@MIT.EDU, 10 Jan 1990. */ sprintf (buf, FILE_FUNCTION_FORMAT, p); - /* Don't need to pull wierd characters out of global names. */ + /* Don't need to pull weird characters out of global names. */ if (p != first_global_object_name) { for (p = buf+11; *p; p++) @@ -4332,7 +4332,7 @@ get_file_function_name (kind) return get_identifier (buf); } -/* Expand (the constant part of) a SET_TYPE CONTRUCTOR node. +/* Expand (the constant part of) a SET_TYPE CONSTRUCTOR node. The result is placed in BUFFER (which has length BIT_SIZE), with one bit in each char ('\000' or '\001'). @@ -4390,7 +4390,7 @@ get_set_constructor_bits (init, buffer, bit_size) return non_const_bits; } -/* Expand (the constant part of) a SET_TYPE CONTRUCTOR node. +/* Expand (the constant part of) a SET_TYPE CONSTRUCTOR node. The result is placed in BUFFER (which is an array of bytes). If the constructor is constant, NULL_TREE is returned. Otherwise, a TREE_LIST of the non-constant elements is emitted. */ diff --git a/gcc/tree.h b/gcc/tree.h index e30fe04743e..74246fe326f 100644 --- a/gcc/tree.h +++ b/gcc/tree.h @@ -870,7 +870,7 @@ struct tree_type /* Nonzero for a given ..._DECL node means that this node represents an "abstract instance" of the given declaration (e.g. in the original declaration of an inline function). When generating symbolic debugging - information, we musn't try to generate any address information for nodes + information, we mustn't try to generate any address information for nodes marked as "abstract instances" because we don't actually generate any code or allocate any data space for such instances. */ #define DECL_ABSTRACT(NODE) ((NODE)->decl.abstract_flag) @@ -1644,7 +1644,7 @@ extern void init_decl_processing PROTO((void)); extern void lang_init PROTO((void)); extern void lang_finish PROTO((void)); -/* Funtion to identify which front-end produced the output file. */ +/* Function to identify which front-end produced the output file. */ extern char *lang_identify PROTO((void)); /* Function to replace the DECL_LANG_SPECIFIC field of a DECL with a copy. */ diff --git a/gcc/unroll.c b/gcc/unroll.c index 161cdd2adee..a08cfd1aa02 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -1585,7 +1585,7 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration, dest_reg = XEXP (tv->dest_reg, 0); /* Check for shared address givs, and avoid - incrementing the shared psuedo reg more than + incrementing the shared pseudo reg more than once. */ if (! tv->same_insn) { @@ -1797,8 +1797,8 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration, { rtx jmp; rtx lab = gen_label_rtx (); - /* Can't do it by reversing the jump (probably becasue we - couln't reverse the conditions), so emit a new + /* Can't do it by reversing the jump (probably because we + couldn't reverse the conditions), so emit a new jump_insn after COPY, and redirect the jump around that. */ jmp = emit_jump_insn_after (gen_jump (exit_label), copy); @@ -2670,7 +2670,7 @@ find_splittable_givs (bl, unroll_type, loop_start, loop_end, increment, following cse pass. */ /* As a special case, if we have multiple identical address givs - within a single instruction, then we do use a single psuedo + within a single instruction, then we do use a single pseudo reg for both. This is necessary in case one is a match_dup of the other. */ @@ -3376,7 +3376,7 @@ loop_iterations (loop_start, loop_end) return tempu / i + ((tempu % i) != 0); } -/* Replace uses of split bivs with their split psuedo register. This is +/* Replace uses of split bivs with their split pseudo register. This is for original instructions which remain after loop unrolling without copying. */ diff --git a/gcc/varasm.c b/gcc/varasm.c index a06680b40b2..3876a720df7 100644 --- a/gcc/varasm.c +++ b/gcc/varasm.c @@ -1013,7 +1013,7 @@ assemble_variable (decl, top_level, at_end, dont_output_data) } /* Normally no need to say anything here for external references, - since assemble_external is called by the langauge-specific code + since assemble_external is called by the language-specific code when a declaration is first seen. */ if (DECL_EXTERNAL (decl)) diff --git a/gcc/vmsconfig.com b/gcc/vmsconfig.com index eac32851bca..a87e6c18810 100644 --- a/gcc/vmsconfig.com +++ b/gcc/vmsconfig.com @@ -132,7 +132,7 @@ VARIABLE makefile_buf, opt_file_buf, complist_buf, extra_compilers; ! Globals. !! PROCEDURE process_makefile( ) ! - ! Intepret Makefile.in and subsidiary Make-lang.in templates. + ! Interpret Makefile.in and subsidiary Make-lang.in templates. ! LOCAL range1, cmark, makefilename; @@ -330,7 +330,7 @@ PROCEDURE fetch_tag( tag_n, punct ) mark0 := MARK (NONE); ! Remember where we started; restore before return. POSITION (BEGINNING_OF (makefile_buf)); ! The tag definition always starts in the first column, and might have - ! optional space(es) before "=" or ":" punctutation. + ! optional space(es) before "=" or ":" punctuation. range2 := SEARCH_QUIETLY (LINE_BEGIN & tag_n & ((SPAN(" ") & punct) | punct), FORWARD, EXACT); IF (range2 = 0) THEN @@ -360,7 +360,7 @@ ENDPROCEDURE; !fetch_tag PROCEDURE pat_replace( oldstring, newstring ) ! - ! Replace all occurences of a pattern. + ! Replace all occurrences of a pattern. ! LOCAL range1, range2, kill_it, count; diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c index a5dc58b663b..e5b900eda2b 100644 --- a/gcc/xcoffout.c +++ b/gcc/xcoffout.c @@ -483,7 +483,7 @@ xcoffout_declare_function (file, decl, name) } } - /* Any pending .bi or .ei must occur before the .function psuedo op. + /* Any pending .bi or .ei must occur before the .function pseudo op. Otherwise debuggers will think that the function is in the previous file and/or at the wrong line number. */ xcoffout_source_file (file, DECL_SOURCE_FILE (decl), 0); diff --git a/gcc/xcoffout.h b/gcc/xcoffout.h index 10dc6dc1c81..36cef87b5d4 100644 --- a/gcc/xcoffout.h +++ b/gcc/xcoffout.h @@ -145,7 +145,7 @@ extern char *xcoff_lastfile; /* Write out main source file name using ".file" rather than ".stabs". We don't actually do this here, because the assembler gets confused if there is more than one .file directive. ASM_FILE_START in config/rs6000/rs6000.h - is already emitting a .file direcgtory, so we don't output one here also. + is already emitting a .file directory, so we don't output one here also. Initialize xcoff_lastfile. */ #define DBX_OUTPUT_MAIN_SOURCE_FILENAME(FILE,FILENAME) \ xcoff_lastfile = input_file_name