diff options
-rw-r--r-- | gcc/ChangeLog | 14 | ||||
-rw-r--r-- | gcc/builtins.c | 2 | ||||
-rw-r--r-- | gcc/config/arm/arm.c | 2 | ||||
-rw-r--r-- | gcc/config/i386/cygwin.h | 2 | ||||
-rw-r--r-- | gcc/config/i386/i386.c | 2 | ||||
-rw-r--r-- | gcc/config/ia64/ia64.c | 2 | ||||
-rw-r--r-- | gcc/config/ia64/ia64.opt | 4 | ||||
-rw-r--r-- | gcc/config/s390/fixdfdi.h | 4 | ||||
-rw-r--r-- | gcc/config/sh/sh.c | 2 | ||||
-rw-r--r-- | gcc/config/sh/sh.h | 4 | ||||
-rw-r--r-- | gcc/df-scan.c | 2 | ||||
-rw-r--r-- | gcc/doc/contrib.texi | 4 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 8 | ||||
-rw-r--r-- | gcc/doc/passes.texi | 2 | ||||
-rw-r--r-- | gcc/doc/tm.texi | 12 | ||||
-rw-r--r-- | gcc/doc/tree-ssa.texi | 2 | ||||
-rw-r--r-- | gcc/except.c | 4 | ||||
-rw-r--r-- | gcc/haifa-sched.c | 40 | ||||
-rw-r--r-- | gcc/optabs.c | 2 | ||||
-rw-r--r-- | gcc/rtl.h | 2 | ||||
-rw-r--r-- | gcc/sched-deps.c | 4 | ||||
-rw-r--r-- | gcc/sched-int.h | 16 | ||||
-rw-r--r-- | gcc/sched-rgn.c | 12 | ||||
-rw-r--r-- | gcc/tree-inline.h | 4 | ||||
-rw-r--r-- | gcc/tree-ssa-dom.c | 6 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-prefetch.c | 2 | ||||
-rw-r--r-- | gcc/tree-ssa-operands.c | 6 | ||||
-rw-r--r-- | gcc/tree-vect-patterns.c | 2 | ||||
-rw-r--r-- | gcc/tree-vrp.c | 6 |
29 files changed, 94 insertions, 80 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 87613f8521a..8f91736fdc9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,17 @@ +2006-04-08 Kazu Hirata <kazu@codesourcery.com> + + * builtins.c, config/arm/arm.c, config/i386/cygwin.h, + config/i386/i386.c, config/ia64/ia64.c, config/s390/fixdfdi.h, + config/sh/sh.c, config/sh/sh.h, df-scan.c, except.c, + haifa-sched.c, optabs.c, rtl.h, sched-deps.c, sched-int.h, + sched-rgn.c, tree-inline.h, tree-ssa-dom.c, + tree-ssa-loop-prefetch.c, tree-ssa-operands.c, + tree-vect-patterns.c, tree-vrp.c: Fix comment typos. Follow + spelling convensions. + * config/ia64/ia64.opt, doc/contrib.texi, doc/invoke.texi, + doc/passes.texi, doc/tm.texi, doc/tree-ssa.texi: Fix comment + typos. Follow spelling conventions. + 2006-04-07 DJ Delorie <dj@redhat.com> * config/m32c/m32c.c (m32c_function_arg): Structures are always diff --git a/gcc/builtins.c b/gcc/builtins.c index 16f9d08123e..f504e311d6a 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -278,7 +278,7 @@ get_pointer_alignment (tree exp, unsigned int max_align) inner = max_align; while (handled_component_p (exp)) { - /* Fields in a structure can be packed, honour DECL_ALIGN + /* Fields in a structure can be packed, honor DECL_ALIGN of the FIELD_DECL. For all other references the conservative alignment is the element type alignment. */ if (TREE_CODE (exp) == COMPONENT_REF) diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index e6b97dfbcf1..0f46b3e8dd9 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -8003,7 +8003,7 @@ push_minipool_fix (rtx insn, HOST_WIDE_INT address, rtx *loc, /* If an entry requires 8-byte alignment then assume all constant pools require 4 bytes of padding. Trying to do this later on a per-pool - basis is awkward becuse existing pool entries have to be modified. */ + basis is awkward because existing pool entries have to be modified. */ if (ARM_DOUBLEWORD_ALIGN && fix->fix_size == 8) minipool_pad = 4; diff --git a/gcc/config/i386/cygwin.h b/gcc/config/i386/cygwin.h index 3cbbd16c043..a7d5e47cdc9 100644 --- a/gcc/config/i386/cygwin.h +++ b/gcc/config/i386/cygwin.h @@ -235,6 +235,6 @@ while (0) /* Every program on cygwin links against cygwin1.dll which contains the pthread routines. There is no need to explicitly link them - and the -pthread flag is not recognised. */ + and the -pthread flag is not recognized. */ #undef GOMP_SELF_SPECS #define GOMP_SELF_SPECS "" diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index af6ec6764ea..907682547aa 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -16372,7 +16372,7 @@ ix86_preferred_reload_class (rtx x, enum reg_class class) if (x == CONST0_RTX (mode)) return class; - /* Force constants into memory if we are loading a (non-zero) constant into + /* Force constants into memory if we are loading a (nonzero) constant into an MMX or SSE register. This is because there are no MMX/SSE instructions to load from a constant. */ if (CONSTANT_P (x) diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 81d4f354c61..65798146893 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -8306,7 +8306,7 @@ ia64_ld_address_bypass_p (rtx producer, rtx consumer) if (GET_CODE (mem) == UNSPEC && XVECLEN (mem, 0) > 0) mem = XVECEXP (mem, 0, 0); else if (GET_CODE (mem) == IF_THEN_ELSE) - /* ??? Is this bypass neccessary for ld.c? */ + /* ??? Is this bypass necessary for ld.c? */ { gcc_assert (XINT (XEXP (XEXP (mem, 0), 0), 1) == UNSPEC_LDCCLR); mem = XEXP (mem, 1); diff --git a/gcc/config/ia64/ia64.opt b/gcc/config/ia64/ia64.opt index d01dad22a03..2ff3d5984a3 100644 --- a/gcc/config/ia64/ia64.opt +++ b/gcc/config/ia64/ia64.opt @@ -134,11 +134,11 @@ Print information about speculative motions. msched-prefer-non-data-spec-insns Common Report Var(mflag_sched_prefer_non_data_spec_insns) Init(0) -If set, data speculative instructions will be choosen for schedule only if there are no other choices at the moment +If set, data speculative instructions will be chosen for schedule only if there are no other choices at the moment msched-prefer-non-control-spec-insns Common Report Var(mflag_sched_prefer_non_control_spec_insns) Init(0) -If set, control speculative instructions will be choosen for schedule only if there are no other choices at the moment +If set, control speculative instructions will be chosen for schedule only if there are no other choices at the moment msched-count-spec-in-critical-path Common Report Var(mflag_sched_count_spec_in_critical_path) Init(0) diff --git a/gcc/config/s390/fixdfdi.h b/gcc/config/s390/fixdfdi.h index fd12243a381..88c2197f4c8 100644 --- a/gcc/config/s390/fixdfdi.h +++ b/gcc/config/s390/fixdfdi.h @@ -74,7 +74,7 @@ __fixunstfdi (long double a1) if (exp <= -PRECISION) return 0; - /* NaN: All exponent bits set and a non-zero fraction. */ + /* NaN: All exponent bits set and a nonzero fraction. */ if ((EXPD(dl1) == 0x7fff) && !FRACD_ZERO_P (dl1)) return 0x0ULL; @@ -146,7 +146,7 @@ __fixtfdi (long double a1) if (exp <= -PRECISION) return 0; - /* NaN: All exponent bits set and a non-zero fraction. */ + /* NaN: All exponent bits set and a nonzero fraction. */ if ((EXPD(dl1) == 0x7fff) && !FRACD_ZERO_P (dl1)) return 0x8000000000000000ULL; diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index 9f8415c9535..929b60f89c8 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -6818,7 +6818,7 @@ sh_va_start (tree valist, rtx nextarg) expand_expr (t, const0_rtx, VOIDmode, EXPAND_NORMAL); } -/* TYPE is a RECORD_TYPE. If there is only a single non-zero-sized +/* TYPE is a RECORD_TYPE. If there is only a single nonzero-sized member, return it. */ static tree find_sole_member (tree type) diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index 6e833ccedb7..c61c357ec36 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -507,8 +507,8 @@ enum sh_divide_strategy_e { SH_DIV_INV_CALL2, SH_DIV_INV_FP, /* SH1 .. SH4 strategies. Because of the small number of registers - available, the compiler uses knowledge of the actual et of registers - being clobbed by the different functions called. */ + available, the compiler uses knowledge of the actual set of registers + being clobbered by the different functions called. */ SH_DIV_CALL_DIV1, /* No FPU, medium size, highest latency. */ SH_DIV_CALL_FP, /* FPU needed, small size, high latency. */ SH_DIV_CALL_TABLE, /* No FPU, large size, medium latency. */ diff --git a/gcc/df-scan.c b/gcc/df-scan.c index 1e1ed269606..b35c3a474e4 100644 --- a/gcc/df-scan.c +++ b/gcc/df-scan.c @@ -1603,7 +1603,7 @@ df_bb_refs_record (struct dataflow *dflow, basic_block bb) DF_REF_ARTIFICIAL | DF_REF_AT_TOP); #endif - /* The following code (down thru the arg_pointer seting APPEARS + /* The following code (down thru the arg_pointer setting APPEARS to be necessary because there is nothing that actually describes what the exception handling code may actually need to keep alive. */ diff --git a/gcc/doc/contrib.texi b/gcc/doc/contrib.texi index 176dcd36250..eac0a0b53b3 100644 --- a/gcc/doc/contrib.texi +++ b/gcc/doc/contrib.texi @@ -1300,7 +1300,7 @@ Ingo Proetel for @code{Image}, @code{Logger} and @code{URLClassLoader} updates. @item -Olga Rodimina for @code{MenuSelectionManager} implemenation. +Olga Rodimina for @code{MenuSelectionManager} implementation. @item Jan Roehrich for @code{BasicTreeUI} and @code{JTree} fixes. @@ -1324,7 +1324,7 @@ Christian Thalinger for 64-bit cleanups, Configuration and VM interface fixes and @code{CACAO} integration, @code{fdlibm} updates. @item -Gael Thomas for @code{VMClassLoader} boot packages support sugestions. +Gael Thomas for @code{VMClassLoader} boot packages support suggestions. @item Andreas Tobler for Darwin and Solaris testing and fixing, @code{Qt4} diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index ede037bd1b4..7f561d2c753 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -9170,7 +9170,7 @@ Intel PentiumMMX CPU based on Pentium core with MMX instruction set support. Intel PentiumPro CPU@. @item i686 Same as @code{generic}, but when used as @code{march} option, PentiumPro -instruction set will be used, so the code will run on all i686 familly chips. +instruction set will be used, so the code will run on all i686 family chips. @item pentium2 Intel Pentium2 CPU based on PentiumPro core with MMX instruction set support. @item pentium3, pentium3m @@ -9844,7 +9844,7 @@ The default is 'disable'. @itemx -msched-prefer-non-data-spec-insns @opindex -mno-sched-prefer-non-data-spec-insns @opindex -msched-prefer-non-data-spec-insns -If enabled, data speculative instructions will be choosen for schedule +If enabled, data speculative instructions will be chosen for schedule only if there are no other choices at the moment. This will make the use of the data speculation much more conservative. The default is 'disable'. @@ -9853,7 +9853,7 @@ The default is 'disable'. @itemx -msched-prefer-non-control-spec-insns @opindex -mno-sched-prefer-non-control-spec-insns @opindex -msched-prefer-non-control-spec-insns -If enabled, control speculative instructions will be choosen for schedule +If enabled, control speculative instructions will be chosen for schedule only if there are no other choices at the moment. This will make the use of the control speculation much more conservative. The default is 'disable'. @@ -9862,7 +9862,7 @@ The default is 'disable'. @itemx -msched-count-spec-in-critical-path @opindex -mno-sched-count-spec-in-critical-path @opindex -msched-count-spec-in-critical-path -If enabled, speculative depedencies will be considered during +If enabled, speculative dependencies will be considered during computation of the instructions priorities. This will make the use of the speculation a bit more conservative. The default is 'disable'. diff --git a/gcc/doc/passes.texi b/gcc/doc/passes.texi index b4e156bbb30..441a903d7df 100644 --- a/gcc/doc/passes.texi +++ b/gcc/doc/passes.texi @@ -202,7 +202,7 @@ declarations of static variables whose lifetimes extend to the entire program. The pass is located in @file{tree-mudflap.c} and is described by @code{pass_mudflap_1}. -@item OpenMP lowerering +@item OpenMP lowering If OpenMP generation (@option{-fopenmp}) is enabled, this pass lowers OpenMP constructs into GIMPLE. diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 69514e244ab..9ee6a835e85 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -4191,7 +4191,7 @@ be because the function prologue moves it to a different place. the context of the called function, and @code{0} in the context of the caller. -If @var{incoming} is non-zero and the address is to be found on the +If @var{incoming} is nonzero and the address is to be found on the stack, return a @code{mem} which refers to the frame pointer. If @var{incoming} is @code{2}, the result is being used to fetch the structure value address at the beginning of a function. If you need @@ -6024,7 +6024,7 @@ This hook is a modified version of @samp{TARGET_SCHED_ADJUST_COST}. Instead of passing dependence as a second parameter, it passes a type of that dependence. This is useful to calculate cost of dependence between insns not having the corresponding link. If @samp{TARGET_SCHED_ADJUST_COST_2} is -definded it is used instead of @samp{TARGET_SCHED_ADJUST_COST}. +defined it is used instead of @samp{TARGET_SCHED_ADJUST_COST}. @end deftypefn @deftypefn {Target Hook} void TARGET_SCHED_H_I_D_EXTENDED (void) @@ -6046,7 +6046,7 @@ the generated speculative pattern. @deftypefn {Target Hook} int TARGET_SCHED_NEEDS_BLOCK_P (rtx @var{insn}) This hook is called by the insn scheduler during generation of recovery code -for @var{insn}. It should return non-zero, if the corresponding check +for @var{insn}. It should return nonzero, if the corresponding check instruction should branch to recovery code, or zero otherwise. @end deftypefn @@ -6056,7 +6056,7 @@ check instruction. If @var{mutate_p} is zero, then @var{insn} is a speculative instruction for which the check should be generated. @var{label} is either a label of a basic block, where recovery code should be emitted, or a null pointer, when requested check doesn't branch to -recovery code (a simple check). If @var{mutate_p} is non-zero, then +recovery code (a simple check). If @var{mutate_p} is nonzero, then a pattern for a branchy check corresponding to a simple check denoted by @var{insn} should be generated. In this case @var{label} can't be null. @end deftypefn @@ -6067,7 +6067,7 @@ This hook is used as a workaround for called on the first instruction of the ready list. The hook is used to discard speculative instruction that stand first in the ready list from being scheduled on the current cycle. For non-speculative instructions, -the hook should always return non-zero. For example, in the ia64 backend +the hook should always return nonzero. For example, in the ia64 backend the hook is used to cancel data speculative insns when the ALAT table is nearly full. @end deftypefn @@ -6077,7 +6077,7 @@ This hook is used by the insn scheduler to find out what features should be enabled/used. @var{flags} initially may have either the SCHED_RGN or SCHED_EBB bit set. This denotes the scheduler pass for which the data should be provided. The target backend should modify @var{flags} by modifying -the bits correponding to the following features: USE_DEPS_LIST, USE_GLAT, +the bits corresponding to the following features: USE_DEPS_LIST, USE_GLAT, DETACH_LIFE_INFO, and DO_SPECULATION. For the DO_SPECULATION feature an additional structure @var{spec_info} should be filled by the target. The structure describes speculation types that can be used in the scheduler. diff --git a/gcc/doc/tree-ssa.texi b/gcc/doc/tree-ssa.texi index 359f07864f8..7149bb95bee 100644 --- a/gcc/doc/tree-ssa.texi +++ b/gcc/doc/tree-ssa.texi @@ -1392,7 +1392,7 @@ mainly because the set of virtual operands for a statement may change at what some would consider unexpected times. In general, any time you have modified a statement that has virtual operands, you should verify whether the list of virtual operands has changed, and if so, mark the -newly exposed symbols by callnig @code{mark_new_vars_to_rename}. +newly exposed symbols by calling @code{mark_new_vars_to_rename}. There is one additional caveat to preserving virtual SSA form. When the entire set of virtual operands may be eliminated due to better diff --git a/gcc/except.c b/gcc/except.c index 01f11087c3b..3feda0f7e51 100644 --- a/gcc/except.c +++ b/gcc/except.c @@ -858,7 +858,7 @@ current_function_has_exception_handlers (void) } /* A subroutine of duplicate_eh_regions. Search the region tree under O - for the miniumum and maximum region numbers. Update *MIN and *MAX. */ + for the minimum and maximum region numbers. Update *MIN and *MAX. */ static void duplicate_eh_regions_0 (eh_region o, int *min, int *max) @@ -912,7 +912,7 @@ duplicate_eh_regions_1 (eh_region old, eh_region outer, int eh_offset) return ret; } -/* Duplicate the EH regions of IFUN, rootted at COPY_REGION, into current +/* Duplicate the EH regions of IFUN, rooted at COPY_REGION, into current function and root the tree below OUTER_REGION. Remap labels using MAP callback. The special case of COPY_REGION of 0 means all regions. */ diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 4825189b034..ef4f4f709ca 100644 --- a/gcc/haifa-sched.c +++ b/gcc/haifa-sched.c @@ -217,7 +217,7 @@ static spec_info_t spec_info; Used to determine, if we need to fix INSN_TICKs. */ static bool added_recovery_block_p; -/* Counters of different types of speculative isntructions. */ +/* Counters of different types of speculative instructions. */ static int nr_begin_data, nr_be_in_data, nr_begin_control, nr_be_in_control; /* Pointers to GLAT data. See init_glat for more information. */ @@ -977,7 +977,7 @@ ready_lastpos (struct ready_list *ready) } /* Add an element INSN to the ready list so that it ends up with the - lowest/highest priority dependending on FIRST_P. */ + lowest/highest priority depending on FIRST_P. */ HAIFA_INLINE static void ready_add (struct ready_list *ready, rtx insn, bool first_p) @@ -1598,7 +1598,7 @@ find_insn_reg_weight (basic_block bb) find_insn_reg_weight1 (insn); } -/* Calculate INSN_REG_WEIGHT for single insntruction. +/* Calculate INSN_REG_WEIGHT for single instruction. Separated from find_insn_reg_weight because of need to initialize new instruction in generate_recovery_code. */ static void @@ -2034,7 +2034,7 @@ static int cached_issue_rate = 0; make this function tries different samples of ready insns. READY is current queue `ready'. Global array READY_TRY reflects what insns are already issued in this try. MAX_POINTS is the sum of points - of all instructions in READY. The function stops immediatelly, + of all instructions in READY. The function stops immediately, if it reached the such a solution, that all instruction can be issued. INDEX will contain index of the best insn in READY. The following function is used only for first cycle multipass scheduling. */ @@ -2463,7 +2463,7 @@ schedule_block (basic_block *target_bb, int rgn_n_insns1) continue; } - /* DECISSION is made. */ + /* DECISION is made. */ if (TODO_SPEC (insn) & SPECULATIVE) generate_recovery_code (insn); @@ -2472,7 +2472,7 @@ schedule_block (basic_block *target_bb, int rgn_n_insns1) /* This is used to to switch basic blocks by request from scheduler front-end (actually, sched-ebb.c only). This is used to process blocks with single fallthru - edge. If successing block has jump, it [jump] will try + edge. If succeeding block has jump, it [jump] will try move at the end of current bb, thus corrupting CFG. */ || current_sched_info->advance_target_bb (*target_bb, insn)) { @@ -2869,7 +2869,7 @@ sched_finish (void) } /* Fix INSN_TICKs of the instructions in the current block as well as - INSN_TICKs of their dependants. + INSN_TICKs of their dependents. HEAD and TAIL are the begin and the end of the current scheduled block. */ static void fix_inter_tick (rtx head, rtx tail) @@ -3116,7 +3116,7 @@ fix_tick_ready (rtx next) tick = INSN_TICK (next); /* if tick is not equal to INVALID_TICK, then update INSN_TICK of NEXT with the most recent resolved dependence - cost. Overwise, recalculate from scratch. */ + cost. Otherwise, recalculate from scratch. */ full_p = tick == INVALID_TICK; do { @@ -3163,7 +3163,7 @@ change_queue_index (rtx next, int delay) /* We have nothing to do. */ return; - /* Remove NEXT from whereever it is now. */ + /* Remove NEXT from wherever it is now. */ if (i == QUEUE_READY) ready_remove_insn (next); else if (i >= 0) @@ -3318,7 +3318,7 @@ process_insn_depend_be_in_spec (rtx link, rtx twin, ds_t fs) { gcc_assert (!(ds & BE_IN_SPEC)); - if (/* If this dep can be overcomed with 'begin speculation'. */ + if (/* If this dep can be overcome with 'begin speculation'. */ ds & BEGIN_SPEC) /* Then we have a choice: keep the dep 'begin speculative' or transform it into 'be in speculative'. */ @@ -3421,7 +3421,7 @@ add_to_speculative_block (rtx insn) twins = alloc_INSN_LIST (twin, twins); - /* Add dependences between TWIN and all apropriate + /* Add dependences between TWIN and all appropriate instructions from REC. */ do { @@ -3696,7 +3696,7 @@ create_check_block_twin (rtx insn, bool mutate_p) gcc_assert (ORIG_PAT (insn)); - /* Initialize TWIN (twin is a dublicate of original instruction + /* Initialize TWIN (twin is a duplicate of original instruction in the recovery block). */ if (rec != EXIT_BLOCK_PTR) { @@ -3896,7 +3896,7 @@ create_check_block_twin (rtx insn, bool mutate_p) add_back_forw_dep (check, insn, REG_DEP_TRUE, DEP_TRUE | DEP_OUTPUT); if (!mutate_p) - /* Fix priorities. If MUTATE_P is nonzero, this is not neccessary, + /* Fix priorities. If MUTATE_P is nonzero, this is not necessary, because it'll be done later in add_to_speculative_block. */ { clear_priorities (twin); @@ -3906,7 +3906,7 @@ create_check_block_twin (rtx insn, bool mutate_p) /* Removes dependency between instructions in the recovery block REC and usual region instructions. It keeps inner dependences so it - won't be neccessary to recompute them. */ + won't be necessary to recompute them. */ static void fix_recovery_deps (basic_block rec) { @@ -4065,7 +4065,7 @@ dump_new_block_header (int i, basic_block bb, rtx head, rtx tail) /* Unlink basic block notes and labels and saves them, so they can be easily restored. We unlink basic block notes in EBB to - provide back-compatability with the previous code, as target backends + provide back-compatibility with the previous code, as target backends assume, that there'll be only instructions between current_sched_info->{head and tail}. We restore these notes as soon as we can. @@ -4308,8 +4308,8 @@ move_succs (VEC(edge,gc) **succsp, basic_block to) /* Initialize GLAT (global_live_at_{start, end}) structures. GLAT structures are used to substitute global_live_{start, end} - regsets during scheduling. This is neccessary to use such functions as - split_block (), as they assume consistancy of register live information. */ + regsets during scheduling. This is necessary to use such functions as + split_block (), as they assume consistency of register live information. */ static void init_glat (void) { @@ -4530,7 +4530,7 @@ debug_spec_status (ds_t s) } /* Helper function for check_cfg. - Return non-zero, if edge vector pointed to by EL has edge with TYPE in + Return nonzero, if edge vector pointed to by EL has edge with TYPE in its flags. */ static int has_edge_p (VEC(edge,gc) *el, int type) @@ -4631,7 +4631,7 @@ check_cfg (rtx head, rtx tail) gcc_assert (bb == 0); } -/* Perform few consistancy checks of flags in different data structures. */ +/* Perform a few consistency checks of flags in different data structures. */ static void check_sched_flags (void) { @@ -4650,7 +4650,7 @@ check_sched_flags (void) /* Check global_live_at_{start, end} regsets. If FATAL_P is TRUE, then abort execution at the first failure. - Overwise, print diagnostics to STDERR (this mode is for calling + Otherwise, print diagnostics to STDERR (this mode is for calling from debugger). */ void check_reg_live (bool fatal_p) diff --git a/gcc/optabs.c b/gcc/optabs.c index 0ab8406d3ec..f565579091a 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -3710,7 +3710,7 @@ prepare_cmp_insn (rtx *px, rtx *py, enum rtx_code *pcomparison, rtx size, to the modified comparison. For signed comparisons compare the result against 1 in the biased case, and zero in the unbiased case. For unsigned comparisons always compare against 1 after - biasing the unbased result by adding 1. This gives us a way to + biasing the unbiased result by adding 1. This gives us a way to represent LTU. */ *px = result; *pmode = word_mode; diff --git a/gcc/rtl.h b/gcc/rtl.h index a442fb25d20..2335bba5ff5 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -361,7 +361,7 @@ struct rtvec_def GTY(()) { /* Predicate yielding nonzero iff X is an rtx for a memory location. */ #define MEM_P(X) (GET_CODE (X) == MEM) -/* Prediacte yielding nonzero iff X is an rtx for a constant integer. */ +/* Predicate yielding nonzero iff X is an rtx for a constant integer. */ #define CONST_INT_P(X) (GET_CODE (X) == CONST_INT) /* Predicate yielding nonzero iff X is a label insn. */ diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index 33ee695a930..a408fab0706 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -227,7 +227,7 @@ sched_insns_conditions_mutex_p (rtx insn1, rtx insn2) /* Add ELEM wrapped in an INSN_LIST with reg note kind DEP_TYPE to the LOG_LINKS of INSN, if it is not already there. DEP_TYPE indicates the - type of dependence that this link represents. DS, if non-zero, + type of dependence that this link represents. DS, if nonzero, indicates speculations, through which this dependence can be overcome. MEM1 and MEM2, if non-null, corresponds to memory locations in case of data speculation. The function returns a value indicating if an old entry @@ -2187,7 +2187,7 @@ check_dep_status (enum reg_note dt, ds_t ds, bool relaxed_p) gcc_assert ((ds & DEP_TYPES) == DEP_TRUE); } - /* Check that true and anti depencies can't have other speculative + /* Check that true and anti dependencies can't have other speculative statuses. */ if (ds & DEP_TRUE) gcc_assert (ds & (BEGIN_DATA | BE_IN_SPEC)); diff --git a/gcc/sched-int.h b/gcc/sched-int.h index cc9812ad20f..5b042a0f71a 100644 --- a/gcc/sched-int.h +++ b/gcc/sched-int.h @@ -321,7 +321,7 @@ struct haifa_insn_data (e.g. add_dependence was invoked with (insn == elem)). */ unsigned int has_internal_dep : 1; - /* What speculations are neccessary to apply to schedule the instruction. */ + /* What speculations are necessary to apply to schedule the instruction. */ ds_t todo_spec; /* What speculations were already applied. */ ds_t done_spec; @@ -359,7 +359,7 @@ extern regset *glat_start, *glat_end; #define RECOVERY_BLOCK(INSN) (h_i_d[INSN_UID (INSN)].recovery_block) #define ORIG_PAT(INSN) (h_i_d[INSN_UID (INSN)].orig_pat) -/* DEP_STATUS of the link incapsulates information, that is needed for +/* DEP_STATUS of the link encapsulates information, that is needed for speculative scheduling. Namely, it is 4 integers in the range [0, MAX_DEP_WEAK] and 3 bits. The integers correspond to the probability of the dependence to *not* @@ -374,7 +374,7 @@ extern regset *glat_start, *glat_end; to know just the major type of all the dependence between two instructions, as only true dependence can be overcome. There also is the 4-th bit in the DEP_STATUS (HARD_DEP), that is reserved - for using to describe instruction's status. It is set whenever instuction + for using to describe instruction's status. It is set whenever instruction has at least one dependence, that cannot be overcome. See also: check_dep_status () in sched-deps.c . */ #define DEP_STATUS(LINK) XINT (LINK, 2) @@ -421,27 +421,27 @@ enum SPEC_TYPES_OFFSETS { /* The following defines provide numerous constants used to distinguish between different types of speculative dependencies. */ -/* Dependence can be overcomed with generation of new data speculative +/* Dependence can be overcome with generation of new data speculative instruction. */ #define BEGIN_DATA (((ds_t) DEP_WEAK_MASK) << BEGIN_DATA_BITS_OFFSET) /* This dependence is to the instruction in the recovery block, that was formed to recover after data-speculation failure. - Thus, this dependence can overcomed with generating of the copy of + Thus, this dependence can overcome with generating of the copy of this instruction in the recovery block. */ #define BE_IN_DATA (((ds_t) DEP_WEAK_MASK) << BE_IN_DATA_BITS_OFFSET) -/* Dependence can be overcomed with generation of new control speculative +/* Dependence can be overcome with generation of new control speculative instruction. */ #define BEGIN_CONTROL (((ds_t) DEP_WEAK_MASK) << BEGIN_CONTROL_BITS_OFFSET) /* This dependence is to the instruction in the recovery block, that was formed to recover after control-speculation failure. - Thus, this dependence can overcomed with generating of the copy of + Thus, this dependence can be be overcome with generating of the copy of this instruction in the recovery block. */ #define BE_IN_CONTROL (((ds_t) DEP_WEAK_MASK) << BE_IN_CONTROL_BITS_OFFSET) -/* Few convinient combinations. */ +/* A few convenient combinations. */ #define BEGIN_SPEC (BEGIN_DATA | BEGIN_CONTROL) #define DATA_SPEC (BEGIN_DATA | BE_IN_DATA) #define CONTROL_SPEC (BEGIN_CONTROL | BE_IN_CONTROL) diff --git a/gcc/sched-rgn.c b/gcc/sched-rgn.c index a4f037e5351..612623a14b8 100644 --- a/gcc/sched-rgn.c +++ b/gcc/sched-rgn.c @@ -1146,7 +1146,7 @@ extend_rgns (int *degree, int *idxp, sbitmap header, int *loop_hdr) (We don't count single block regions here). By default we do at most 2 iterations. - This can be overriden with max-sched-extend-regions-iters parameter: + This can be overridden with max-sched-extend-regions-iters parameter: 0 - disable region extension, N > 0 - do at most N iterations. */ @@ -2038,7 +2038,7 @@ can_schedule_ready_p (rtx insn) return 1; } -/* Updates counter and other information. Splitted from can_schedule_ready_p () +/* Updates counter and other information. Split from can_schedule_ready_p () because when we schedule insn speculatively then insn passed to can_schedule_ready_p () differs from the one passed to begin_schedule_ready (). */ @@ -2752,7 +2752,7 @@ schedule_region (int rgn) compute_dom_prob_ps (bb); /* Cleanup ->aux used for EDGE_TO_BIT mapping. */ - /* We don't need them anymore. But we want to avoid dublication of + /* We don't need them anymore. But we want to avoid duplication of aux fields in the newly created edges. */ FOR_EACH_BB (block) { @@ -2952,7 +2952,7 @@ schedule_insns (void) init_regions (); - /* EBB_HEAD is a region-scope sctructure. But we realloc it for + /* EBB_HEAD is a region-scope structure. But we realloc it for each region to save time/memory/something else. */ ebb_head = 0; @@ -2996,7 +2996,7 @@ schedule_insns (void) liveness. */ for (rgn = 0; rgn < nr_regions; rgn++) if (RGN_NR_BLOCKS (rgn) > 1 - /* Or the only block of this region has been splitted. */ + /* Or the only block of this region has been split. */ || RGN_HAS_REAL_EBB (rgn) /* New blocks (e.g. recovery blocks) should be processed as parts of large regions. */ @@ -3159,7 +3159,7 @@ add_block1 (basic_block bb, basic_block after) /* ebb_head[i] - VALID. */ /* Source position: ebb_head[i] - Destination posistion: ebb_head[i] + 1 + Destination position: ebb_head[i] + 1 Last position: RGN_BLOCKS (nr_regions) - 1 Number of elements to copy: (last_position) - (source_position) + 1 diff --git a/gcc/tree-inline.h b/gcc/tree-inline.h index d731752a3cd..818329c6db1 100644 --- a/gcc/tree-inline.h +++ b/gcc/tree-inline.h @@ -64,10 +64,10 @@ typedef struct copy_body_data int eh_region_offset; /* We use the same mechanism do all sorts of different things. Rather - than enumerating the different cases, we categorize the behaviour + than enumerating the different cases, we categorize the behavior in the various situations. */ - /* Indicate the desired behaviour wrt call graph edges. We can either + /* Indicate the desired behavior wrt call graph edges. We can either duplicate the edge (inlining, cloning), move the edge (versioning, parallelization), or move the edges of the clones (saving). */ enum copy_body_cge_which { diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 45034dd2ce7..6f7c2ebad56 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -2328,7 +2328,7 @@ propagate_rhs_into_lhs (tree stmt, tree lhs, tree rhs, bitmap interesting_names) } } -/* T is either a PHI node (potentally a degenerate PHI node) or +/* T is either a PHI node (potentially a degenerate PHI node) or a statement that is a trivial copy or constant initialization. Attempt to eliminate T by propagating its RHS into all uses of @@ -2446,7 +2446,7 @@ eliminate_degenerate_phis (void) time behavior with bitmaps rather than sbitmaps. */ interesting_names = BITMAP_ALLOC (NULL); - /* First phase. Elimiante degenerate PHIs via a domiantor + /* First phase. Eliminate degenerate PHIs via a dominator walk of the CFG. Experiments have indicated that we generally get better @@ -2457,7 +2457,7 @@ eliminate_degenerate_phis (void) calculate_dominance_info (CDI_DOMINATORS); eliminate_degenerate_phis_1 (ENTRY_BLOCK_PTR, interesting_names); - /* Second phase. Eliminate second order degnerate PHIs as well + /* Second phase. Eliminate second order degenerate PHIs as well as trivial copies or constant initializations identified by the first phase or this phase. Basically we keep iterating until our set of INTERESTING_NAMEs is empty. */ diff --git a/gcc/tree-ssa-loop-prefetch.c b/gcc/tree-ssa-loop-prefetch.c index 44713a3d6d2..4b63d076be9 100644 --- a/gcc/tree-ssa-loop-prefetch.c +++ b/gcc/tree-ssa-loop-prefetch.c @@ -810,7 +810,7 @@ anything_to_prefetch_p (struct mem_ref_group *groups) /* Issue prefetches for the reference REF into loop as decided before. HEAD is the number of iterations to prefetch ahead. UNROLL_FACTOR - is the factor by thet LOOP was unrolled. */ + is the factor by which LOOP was unrolled. */ static void issue_prefetch_ref (struct mem_ref *ref, unsigned unroll_factor, unsigned ahead) diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index 44be47458dd..ff0d4d82cb6 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -412,7 +412,7 @@ set_virtual_use_link (use_operand_p ptr, tree stmt) } while (0) /* Initializes immediate use at USE_PTR to value VAL, and links it to the list - of immeditate uses. STMT is the current statement. */ + of immediate uses. STMT is the current statement. */ #define INITIALIZE_USE(USE_PTR, VAL, STMT) \ do \ @@ -492,7 +492,7 @@ add_mustdef_op (tree stmt, tree op, mustdef_optype_p *last) } /* Takes elements from build_defs and turns them into def operands of STMT. - TODO -- Given that def operands list is not neccessarily sorted, merging + TODO -- Given that def operands list is not necessarily sorted, merging the operands this way does not make much sense. -- Make build_defs VEC of tree *. */ @@ -579,7 +579,7 @@ finalize_ssa_defs (tree stmt) } /* Takes elements from build_uses and turns them into use operands of STMT. - TODO -- Given that use operands list is not neccessarily sorted, merging + TODO -- Given that use operands list is not necessarily sorted, merging the operands this way does not make much sense. -- Make build_uses VEC of tree *. */ diff --git a/gcc/tree-vect-patterns.c b/gcc/tree-vect-patterns.c index 558908e18b1..b6e5ef0ccd5 100644 --- a/gcc/tree-vect-patterns.c +++ b/gcc/tree-vect-patterns.c @@ -357,7 +357,7 @@ vect_recog_widen_mult_pattern (tree last_stmt ATTRIBUTE_UNUSED, where type 'TYPE' is at least double the size of type 'type', i.e - we're summing elements of type 'type' into an accumulator of type 'TYPE'. This is - a sepcial case of a reduction computation. + a special case of a reduction computation. Input: diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index d3d57edb55f..fa419599ea6 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -1116,7 +1116,7 @@ extract_range_from_assert (value_range_t *vr_p, tree expr) } /* Case 3a, the anti-range extends into the low part of the real range. Thus creating a new - low for the real reange. */ + low for the real range. */ else if ((compare_values (anti_max, real_min) == 1 || compare_values (anti_max, real_min) == 0) && compare_values (anti_max, real_max) == -1) @@ -1129,7 +1129,7 @@ extract_range_from_assert (value_range_t *vr_p, tree expr) } /* Case 3b, the anti-range extends into the high part of the real range. Thus creating a new - higher for the real reange. */ + higher for the real range. */ else if (compare_values (anti_min, real_min) == 1 && (compare_values (anti_min, real_max) == -1 || compare_values (anti_min, real_max) == 0)) @@ -2981,7 +2981,7 @@ find_assert_locations (basic_block bb) it, create a new assertion location node for OP. */ if (infer_value_range (stmt, op, &comp_code, &value)) { - /* If we are able to infer a non-zero value range for OP, + /* If we are able to infer a nonzero value range for OP, then walk backwards through the use-def chain to see if OP was set via a typecast. |