https://gcc.gnu.org/g:fadf0d9d792e0dadc5af558d6121f4d558aead58

commit r16-6302-gfadf0d9d792e0dadc5af558d6121f4d558aead58
Author: Jakub Jelinek <[email protected]>
Date:   Fri Dec 19 23:09:06 2025 +0100

    Some further comment typos
    
    This patch attempts to fix various comment typos (inspired by Gemini AI
    on dwarf2out.cc, gimplify.cc and combine.cc files producing list of
    typos, then manual grep for all the occurrences and changing them case
    by case (e.g. there was one correct recourse use elsewhere I believe).
    
    2025-12-19  Jakub Jelinek  <[email protected]>
    
    gcc/
            * alias.cc (alias_set_subset_of): Fix comment typo, explicitely
            -> explicitly.
            * builtins.cc (get_object_alignment_2): Likewise.
            * combine.cc (make_extraction): Fix comment typos, potentionally
            -> potentially and implicitely -> implicitly.
            (simplify_comparison): Fix comment typo, outmost -> outermost.
            (record_truncated_values): Fix comment typo, truning -> turning.
            (distribute_notes): Fix comment typo, recourse -> recurse.
            * config/avr/avr.md (*<extend_u>maddqihi4_split): Fix comment
            typo, explicitely -> explicitly.
            (*mulu<mode>si3): Likewise.  Fix comment typo, implicitely
            -> implicitly.
            * config/i386/i386.cc (ix86_get_drap_rtx): Fix comment typo,
            statment -> statement.
            * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Fix comment 
typo,
            transfered -> transferred.
            * config/s390/s390.cc (s390_encode_section_info): Fix comment typo,
            catched -> caught.
            * dwarf2out.cc (dwarf_proc_stack_usage_map): Fix comment typo,
            invokation -> invocation.
            (dwarf2out_die_ref_for_decl): Fix comment typo, refering -> 
referring.
            (loc_list_from_tree_1): Fix message typo, INDCREMENT -> INCREMENT.
            (field_byte_offset): Fix comment typo, simplier -> simpler.
            (add_data_member_location_attribute): Fix comment typo, catched
            -> caught.
            (gen_lexical_block_die): Fix comment typo, conrecte -> concrete.
            (analyze_variants_discr): Fix comment typo, consistant -> 
consistent.
            (gen_decl_die): Fix comment typo, prunning -> pruning.
            (resolve_variable_values): Fix comment typo, refering -> referring.
            * genmatch.cc (expr::expr_type): Fix comment typo, explicitely
            -> explicitly.
            * gimple-range-phi.cc (phi_group::is_modifier_p): Fix comment typo,
            statment -> statement.
            * gimple-ssa-store-merging.cc (pass_optimize_bswap::execute): Fix
            comment typo, invokation -> invocation.  Add second space after dot.
            * gimple-walk.cc (walk_gimple_op): Fix comment typo, explicitely
            -> explicitly.
            * gimplify.cc (mostly_copy_tree_r): Fix comment typo, gimplication
            -> gimplification.
            (var_needs_auto_init_p): Fix comment typo, automaticly
            -> automatically.
            (gimplify_decl_expr): Fix comment typos, varaible -> variable
            and compatiple -> compatible.
            (emit_warn_switch_unreachable): Fix comment typo, statment
            -> statement.
            (should_warn_for_implicit_fallthrough): Fix comment typo, fallthough
            -> fallthrough.
            (modify_call_for_omp_dispatch): Fix comment typo, interobject
            -> interop.
            (oacc_default_clause): Fix comment typo, tranfered -> transferred.
            (omp_notice_variable): Likewise.
            * graphite-isl-ast-to-gimple.cc (binary_op_to_tree): Fix comment
            typo, explicitely -> explicitly.
            * ipa-param-manipulation.cc (push_function_arg_decls): Likewise.
            * ipa-prop.cc (ipa_make_edge_direct_to_target): Likewise.
            * ipa-prop.h (ipa_node_params::node_within_scc): Fix comment typo,
            potentionally -> potentially.
            * loop-init.cc (fix_loop_structure): Fix comment typo, refering
            -> referring.
            * match.pd (1 / X -> X == 1): Fix comment typo, simplier -> simpler.
            * opts.cc (global_options): Fix comment typo, explicitely
            -> explicitly.
            * sanopt.cc (sanopt_optimize_walker): Fix comment typo, 
potentionally
            -> potentially.
            * tree.cc (variably_modified_type_p): Fix comment typo, refering
            -> referring.
            * tree-cfg.cc (group_case_labels_stmt): Likewise.
            (dump_function_to_file): Fix comment typo, explicitely -> 
explicitly.
            (make_forwarders_with_degenerate_phis): Likewise.
            * tree-inline.cc (replace_locals_op): Likewise.
            * tree-loop-distribution.cc (loop_distribution::execute): Fix 
comment
            typo, refering -> referring.
            * tree-sra.cc (generate_subtree_deferred_init): Fix comment typo,
            statment -> statement.
            * tree-ssa-alias.cc (ptrs_compare_unequal): Fix comment typo,
            explicitely -> explicitly.
            * tree-ssa-forwprop.cc (_vec_perm_simplify_seq::stmt): Fix comment
            typo, statment -> statement.
            (narrow_vec_perm_simplify_seq): Fix message typo, statment
            -> statement.
            (blend_vec_perm_simplify_seqs): Likewise.
            * tree-ssa-pre.cc (compute_antic_aux): Fix comment typo, explicitely
            -> explicitly.
            * tree-vect-loop-manip.cc (vect_do_peeling): Fix comment typo,
            refering -> referring.
            * tree-vect-patterns.cc: Fix comment typo, transfered -> 
transferred.
            * tree-vect-slp.cc (vect_build_slp_tree_2): Fix comment typo,
            explicitely -> explicitly.
            (vect_build_slp_instance): Fix comment typo, transfered
            -> transferred.
            (vect_optimize_slp_pass::build_vertices): Fix comment typo,
            explicitely -> explicitly.
            (vect_slp_analyze_node_operations): Likewise.  Fix comment typo,
            refering -> referring.
            * tree-vect-stmts.cc (vectorizable_store): Fix comment typo, catched
            -> caught.
            * vec.h (auto_vec::auto_vec): Fix comment typo, refering -> 
referring.
    gcc/ada/
            * sem_attr.adb (Set_Bounds): Fix comment typo, transfered
            -> transferred.
            * sem_ch6.adb (Analyze_Expression_Function): Likewise.
            * sysdep.c (__gnat_get_task_options): Fix comment typo, explicitely
            -> explicitly.
    gcc/algol68/
            * a68-low-decls.cc (a68_lower_variable_declaration): Fix comment 
typo,
            varaible -> variable.
    gcc/c/
            * gimple-parser.cc (c_parser_gimple_switch_stmt): Fix comment typo,
            statment -> statement.
    gcc/cobol/
            * lexio.cc (parse_replace_pairs): Fix comment typo, statment
            -> statement.
            (cdftext::free_form_reference_format): Likewise.
    gcc/fortran/
            * gfortran.texi: Fix typo, transfered -> transferred.
            * resolve.cc (resolve_where): Fix comment typo, outmost -> 
outermost.
    gcc/lto/
            * lto-common.cc (lto_resolution_read): Fix comment typo, explicitely
            -> explicitly.
    gcc/m2/
            * gm2-compiler/FilterError.mod: Fix comment typo, refering
            -> referring.
            * gm2-compiler/M2Batch.mod (LookupOuterModule): Likewise.
    gcc/testsuite/
            * gcc.c-torture/compile/20030323-1.c: Fix comment typo,
            statment -> statement.
            * gcc.dg/tree-ssa/pr96779.c: Fix comment typo, transfered
            -> transferred.
            * gcc.dg/tree-ssa/pr96779-disabled.c: Likewise.
            * gcc.dg/tree-ssa/ssa-thread-16.c (foo): Fix comment typo,
            catched -> caught.
            * gcc.target/s390/larl-1.c: Fix comment typo, explicitely
            -> explicitly.
            * g++.dg/tree-ssa/pr44706.C: Fix comment typo, invokation
            -> invocation.
            * g++.dg/tree-ssa/pr87502.C: Fix comment typo, explicitely
            -> explicitly.
            * gfortran.dg/bound_8.f90: Likewise.
            * gfortran.dg/coarray_14.f90: Fix comment typo, statment
            -> statement.

Diff:
---
 gcc/ada/sem_attr.adb                             |  2 +-
 gcc/ada/sem_ch6.adb                              |  2 +-
 gcc/ada/sysdep.c                                 |  2 +-
 gcc/algol68/a68-low-decls.cc                     |  2 +-
 gcc/alias.cc                                     |  2 +-
 gcc/builtins.cc                                  |  2 +-
 gcc/c/gimple-parser.cc                           |  2 +-
 gcc/cobol/lexio.cc                               |  4 ++--
 gcc/combine.cc                                   | 12 ++++++------
 gcc/config/avr/avr.md                            |  6 +++---
 gcc/config/i386/i386.cc                          |  2 +-
 gcc/config/rs6000/rs6000.h                       |  2 +-
 gcc/config/s390/s390.cc                          |  2 +-
 gcc/dwarf2out.cc                                 | 20 ++++++++++----------
 gcc/fortran/gfortran.texi                        |  2 +-
 gcc/fortran/resolve.cc                           |  8 ++++----
 gcc/genmatch.cc                                  |  2 +-
 gcc/gimple-range-phi.cc                          |  2 +-
 gcc/gimple-ssa-store-merging.cc                  |  4 ++--
 gcc/gimple-walk.cc                               |  2 +-
 gcc/gimplify.cc                                  | 20 ++++++++++----------
 gcc/graphite-isl-ast-to-gimple.cc                |  2 +-
 gcc/ipa-param-manipulation.cc                    |  2 +-
 gcc/ipa-prop.cc                                  |  2 +-
 gcc/ipa-prop.h                                   |  2 +-
 gcc/loop-init.cc                                 |  2 +-
 gcc/lto/lto-common.cc                            |  2 +-
 gcc/m2/gm2-compiler/FilterError.mod              |  2 +-
 gcc/m2/gm2-compiler/M2Batch.mod                  |  2 +-
 gcc/match.pd                                     |  2 +-
 gcc/opts.cc                                      |  2 +-
 gcc/sanopt.cc                                    |  2 +-
 gcc/testsuite/g++.dg/tree-ssa/pr44706.C          |  2 +-
 gcc/testsuite/g++.dg/tree-ssa/pr87502.C          |  2 +-
 gcc/testsuite/gcc.c-torture/compile/20030323-1.c |  2 +-
 gcc/testsuite/gcc.dg/tree-ssa/pr96779-disabled.c |  2 +-
 gcc/testsuite/gcc.dg/tree-ssa/pr96779.c          |  2 +-
 gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-16.c    |  2 +-
 gcc/testsuite/gcc.target/s390/larl-1.c           |  2 +-
 gcc/testsuite/gfortran.dg/bound_8.f90            |  2 +-
 gcc/testsuite/gfortran.dg/coarray_14.f90         |  2 +-
 gcc/tree-cfg.cc                                  |  6 +++---
 gcc/tree-inline.cc                               |  2 +-
 gcc/tree-loop-distribution.cc                    |  3 ++-
 gcc/tree-sra.cc                                  |  2 +-
 gcc/tree-ssa-alias.cc                            |  2 +-
 gcc/tree-ssa-forwprop.cc                         | 10 +++++-----
 gcc/tree-ssa-pre.cc                              |  2 +-
 gcc/tree-vect-loop-manip.cc                      |  2 +-
 gcc/tree-vect-patterns.cc                        |  2 +-
 gcc/tree-vect-slp.cc                             | 10 +++++-----
 gcc/tree-vect-stmts.cc                           |  4 ++--
 gcc/tree.cc                                      |  2 +-
 gcc/vec.h                                        |  2 +-
 54 files changed, 96 insertions(+), 95 deletions(-)

diff --git a/gcc/ada/sem_attr.adb b/gcc/ada/sem_attr.adb
index fea61caeb428..de59c6b77713 100644
--- a/gcc/ada/sem_attr.adb
+++ b/gcc/ada/sem_attr.adb
@@ -8199,7 +8199,7 @@ package body Sem_Attr is
          --  subtype indication. This is syntactically a pain, but should
          --  not propagate to the entity for the corresponding index subtype.
          --  After checking that the subtype indication is legal, the range
-         --  of the subtype indication should be transfered to the entity.
+         --  of the subtype indication should be transferred to the entity.
          --  The attributes for the bounds should remain the simple retrievals
          --  that they are now.
 
diff --git a/gcc/ada/sem_ch6.adb b/gcc/ada/sem_ch6.adb
index 2e0df1df29eb..252821126dd9 100644
--- a/gcc/ada/sem_ch6.adb
+++ b/gcc/ada/sem_ch6.adb
@@ -464,7 +464,7 @@ package body Sem_Ch6 is
 
          --  Propagate any pragmas that apply to expression function to the
          --  proper body when the expression function acts as a completion.
-         --  Aspects are automatically transfered because of node rewriting.
+         --  Aspects are automatically transferred because of node rewriting.
 
          Relocate_Pragmas_To_Body (N);
          Analyze (N);
diff --git a/gcc/ada/sysdep.c b/gcc/ada/sysdep.c
index afbb362dff09..a52f47eb2269 100644
--- a/gcc/ada/sysdep.c
+++ b/gcc/ada/sysdep.c
@@ -907,7 +907,7 @@ __gnat_get_task_options (void)
 
      Note that the same error occurs in both RTP and Kernel mode, but
      VX_DEALLOC_TCB is not defined in the RTP headers, so we need to
-     explicitely check if VX_PRIVATE_UMASK has value 0x8000
+     explicitly check if VX_PRIVATE_UMASK has value 0x8000
   */
 # if defined (VX_PRIVATE_UMASK) && (0x8000 == VX_PRIVATE_UMASK)
   options &= ~VX_PRIVATE_UMASK;
diff --git a/gcc/algol68/a68-low-decls.cc b/gcc/algol68/a68-low-decls.cc
index 74a93f71dde8..1d7b3fd29f8c 100644
--- a/gcc/algol68/a68-low-decls.cc
+++ b/gcc/algol68/a68-low-decls.cc
@@ -209,7 +209,7 @@ a68_lower_variable_declaration (NODE_T *p, LOW_CTX_T ctx)
      pointer as the initial of the var_decl because the bouns in the actual
      declarer shall be elaborated at the point of the code where the
      declaration appears, not at the beginning of its reach.  Note that the
-     mode of the declarer will be always a REF, since this is a varaible
+     mode of the declarer will be always a REF, since this is a variable
      declaration: the referred mode is what we pass to the a68_low_generator.
 
      If the STATIC generator is used, the var_decl created above is not a
diff --git a/gcc/alias.cc b/gcc/alias.cc
index a23396eaa35e..30f4deebe6b0 100644
--- a/gcc/alias.cc
+++ b/gcc/alias.cc
@@ -442,7 +442,7 @@ alias_set_subset_of (alias_set_type set1, alias_set_type 
set2)
      *ptr2 = ...
 
      Additionally if a set contains universal pointer, we consider every 
pointer
-     to be a subset of it, but we do not represent this explicitely - doing so
+     to be a subset of it, but we do not represent this explicitly - doing so
      would require us to update transitive closure each time we introduce new
      pointer type.  This makes aliasing_component_refs_p to return true
      on the following testcase:
diff --git a/gcc/builtins.cc b/gcc/builtins.cc
index bbe181a51288..163a99398921 100644
--- a/gcc/builtins.cc
+++ b/gcc/builtins.cc
@@ -288,7 +288,7 @@ get_object_alignment_2 (tree exp, unsigned int *alignp,
       unsigned HOST_WIDE_INT ptr_bitpos;
       unsigned HOST_WIDE_INT ptr_bitmask = ~0;
 
-      /* If the address is explicitely aligned, handle that.  */
+      /* If the address is explicitly aligned, handle that.  */
       if (TREE_CODE (addr) == BIT_AND_EXPR
          && TREE_CODE (TREE_OPERAND (addr, 1)) == INTEGER_CST)
        {
diff --git a/gcc/c/gimple-parser.cc b/gcc/c/gimple-parser.cc
index 52819a6587f7..63c1ca2b2bb2 100644
--- a/gcc/c/gimple-parser.cc
+++ b/gcc/c/gimple-parser.cc
@@ -2482,7 +2482,7 @@ c_parser_gimple_if_stmt (gimple_parser &parser, 
gimple_seq *seq)
 
    gimple-case-statement:
      gimple-case-statement
-     gimple-label-statement : gimple-goto-statment
+     gimple-label-statement : gimple-goto-statement
 */
 
 static void
diff --git a/gcc/cobol/lexio.cc b/gcc/cobol/lexio.cc
index d6056d0634ab..e103303227ae 100644
--- a/gcc/cobol/lexio.cc
+++ b/gcc/cobol/lexio.cc
@@ -899,7 +899,7 @@ parse_replace_pairs( const char *stmt, const char *estmt, 
bool is_copy_stmt ) {
     gcc_assert(!before.has_nul());
     pairs.push_back( replace_t( output.before, output.after ) );
 
-    // COPY REPLACING matches end-of-statment here
+    // COPY REPLACING matches end-of-statement here
     // REPLACE matched end-of-statement in caller, and estmt[-1] == '.'
     if( is_copy_stmt && parsed.stmt.pend[-1] == '.' ) break;
   }
@@ -1864,7 +1864,7 @@ cdftext::free_form_reference_format( int input ) {
  * denoting the source filename.  As far as the lexer is concerned,
  * there's only ever one file: the name passed to lex_open() when we
  * kicked things off.  But messages and the debugger need to know
- * which file and line each statment appeared in.
+ * which file and line each statement appeared in.
  *
  * The lexer uses the input stack to keep track of names and
  * numbers. The top of the input file stack is the current file
diff --git a/gcc/combine.cc b/gcc/combine.cc
index 66963222efcd..ead4105fd053 100644
--- a/gcc/combine.cc
+++ b/gcc/combine.cc
@@ -7615,7 +7615,7 @@ make_extraction (machine_mode mode, rtx inner, 
HOST_WIDE_INT pos,
   if (GET_CODE (inner) == SUBREG
       && subreg_lowpart_p (inner)
       && (paradoxical_subreg_p (inner)
-         /* If trying or potentionally trying to extract
+         /* If trying or potentially trying to extract
             bits outside of is_mode, don't look through
             non-paradoxical SUBREGs.  See PR82192.  */
          || (pos_rtx == NULL_RTX
@@ -7664,7 +7664,7 @@ make_extraction (machine_mode mode, rtx inner, 
HOST_WIDE_INT pos,
        }
     }
   else if (GET_CODE (inner) == TRUNCATE
-          /* If trying or potentionally trying to extract
+          /* If trying or potentially trying to extract
              bits outside of is_mode, don't look through
              TRUNCATE.  See PR82192.  */
           && pos_rtx == NULL_RTX
@@ -7929,7 +7929,7 @@ make_extraction (machine_mode mode, rtx inner, 
HOST_WIDE_INT pos,
      mode.  */
   else if (!MEM_P (inner))
     {
-      /* On the LHS, don't create paradoxical subregs implicitely truncating
+      /* On the LHS, don't create paradoxical subregs implicitly truncating
         the register unless TARGET_TRULY_NOOP_TRUNCATION.  */
       if (in_dest
          && !TRULY_NOOP_TRUNCATION_MODES_P (GET_MODE (inner),
@@ -13131,7 +13131,7 @@ simplify_comparison (enum rtx_code code, rtx *pop0, rtx 
*pop1)
     }
 
   /* Now make any compound operations involved in this comparison.  Then,
-     check for an outmost SUBREG on OP0 that is not doing anything or is
+     check for an outermost SUBREG on OP0 that is not doing anything or is
      paradoxical.  The latter transformation must only be performed when
      it is known that the "extra" bits will be the same in op0 and op1 or
      that they don't matter.  There are three cases to consider:
@@ -13779,7 +13779,7 @@ record_truncated_value (rtx x)
 }
 
 /* Callback for note_uses.  Find hardregs and subregs of pseudos and
-   the modes they are used in.  This can help truning TRUNCATEs into
+   the modes they are used in.  This can help turning TRUNCATEs into
    SUBREGs.  */
 
 static void
@@ -14919,7 +14919,7 @@ distribute_notes (rtx notes, rtx_insn *from_insn, 
rtx_insn *i3, rtx_insn *i2,
                 that is unused, we must arrange for an appropriate REG_DEAD
                 note to be added for it.  However, we can't just emit a USE
                 and tag the note to it, since the register might actually
-                be dead; so we recourse, and the recursive call then finds
+                be dead; so we recurse, and the recursive call then finds
                 the previous insn that used this register.  */
 
              if (place && REG_NREGS (XEXP (note, 0)) > 1)
diff --git a/gcc/config/avr/avr.md b/gcc/config/avr/avr.md
index d73cf96be23c..5a59bcac18ca 100644
--- a/gcc/config/avr/avr.md
+++ b/gcc/config/avr/avr.md
@@ -2565,7 +2565,7 @@
 ;;       return aInt[3*z+2];
 ;;     }
 ;;
-;; because the constant +4 then is added explicitely instead of consuming it
+;; because the constant +4 then is added explicitly instead of consuming it
 ;; with the aInt symbol.  Therefore, we rely on insn combine which takes costs
 ;; into account more accurately and doesn't do burte-force multiply-add/sub.
 ;; The implementational effort is the same so we are fine with that approach.
@@ -3384,8 +3384,8 @@
    (set (match_dup 0)
         (reg:SI 22))]
   {
-    // Do the QI -> HI extension explicitely before the multiplication.
-    // Do the HI -> SI extension implicitely and after the multiplication.
+    // Do the QI -> HI extension explicitly before the multiplication.
+    // Do the HI -> SI extension implicitly and after the multiplication.
 
     if (QImode == <MODE>mode)
       operands[1] = gen_rtx_ZERO_EXTEND (HImode, operands[1]);
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index 05bf601ee440..80a4228bbb9a 100644
--- a/gcc/config/i386/i386.cc
+++ b/gcc/config/i386/i386.cc
@@ -8047,7 +8047,7 @@ static rtx
 ix86_get_drap_rtx (void)
 {
   /* We must use DRAP if there are outgoing arguments on stack or
-     the stack pointer register is clobbered by asm statment and
+     the stack pointer register is clobbered by asm statement and
      ACCUMULATE_OUTGOING_ARGS is false.  */
   if (ix86_force_drap
       || ((cfun->machine->outgoing_args_on_stack
diff --git a/gcc/config/rs6000/rs6000.h b/gcc/config/rs6000/rs6000.h
index db6112a09e11..0bfbc3935079 100644
--- a/gcc/config/rs6000/rs6000.h
+++ b/gcc/config/rs6000/rs6000.h
@@ -550,7 +550,7 @@ extern int rs6000_vector_align[];
                         && (TARGET_PPC_GFXOPT || VECTOR_UNIT_VSX_P (DFmode)))
 
 /* Macro to say whether we can do optimizations where we need to do parts of
-   the calculation in 64-bit GPRs and then is transfered to the vector
+   the calculation in 64-bit GPRs and then is transferred to the vector
    registers.  */
 #define TARGET_DIRECT_MOVE_64BIT       (TARGET_DIRECT_MOVE             \
                                         && TARGET_POWERPC64)
diff --git a/gcc/config/s390/s390.cc b/gcc/config/s390/s390.cc
index d2a7fa299786..25506038c128 100644
--- a/gcc/config/s390/s390.cc
+++ b/gcc/config/s390/s390.cc
@@ -14273,7 +14273,7 @@ s390_encode_section_info (tree decl, rtx rtl, int first)
         -munaligned-symbols switch.
         For all external symbols without explicit alignment
         DECL_ALIGN is already trimmed down to 8, however for weak
-        symbols this does not happen.  These cases are catched by the
+        symbols this does not happen.  These cases are caught by the
         type size check.  */
       const_tree size = TYPE_SIZE (TREE_TYPE (decl));
       unsigned HOST_WIDE_INT size_num = (tree_fits_uhwi_p (size)
diff --git a/gcc/dwarf2out.cc b/gcc/dwarf2out.cc
index 443c3f00523c..cf7322d3ef93 100644
--- a/gcc/dwarf2out.cc
+++ b/gcc/dwarf2out.cc
@@ -3618,7 +3618,7 @@ static GTY(()) vec<dw_die_ref, va_gc> *abbrev_die_table;
 
 /* A hash map to remember the stack usage for DWARF procedures.  The value
    stored is the stack size difference between before the DWARF procedure
-   invokation and after it returned.  In other words, for a DWARF procedure
+   invocation and after it returned.  In other words, for a DWARF procedure
    that consumes N stack slots and that pushes M ones, this stores M - N.  */
 static hash_map<dw_die_ref, int> *dwarf_proc_stack_usage_map;
 
@@ -6034,7 +6034,7 @@ equate_block_to_die (tree block, dw_die_ref die)
 
 
 /* For DECL which might have early dwarf output query a SYMBOL + OFFSET
-   style reference.  Return true if we found one refering to a DIE for
+   style reference.  Return true if we found one referring to a DIE for
    DECL, otherwise return false.  */
 
 static bool
@@ -19156,7 +19156,7 @@ loc_list_from_tree_1 (tree loc, int want_address,
     case PREDECREMENT_EXPR:
     case POSTINCREMENT_EXPR:
     case POSTDECREMENT_EXPR:
-      expansion_failed (loc, NULL_RTX, "PRE/POST INDCREMENT/DECREMENT");
+      expansion_failed (loc, NULL_RTX, "PRE/POST INCREMENT/DECREMENT");
       /* There are no opcodes for these operations.  */
       return 0;
 
@@ -20325,7 +20325,7 @@ field_byte_offset (const_tree decl, struct vlr_context 
*ctx,
     tree_result = fold_build2 (PLUS_EXPR, TREE_TYPE (tree_result),
                               ctx->variant_part_offset, tree_result);
 
-  /* If the byte offset is a constant, it's simplier to handle a native
+  /* If the byte offset is a constant, it's simpler to handle a native
      constant rather than a DWARF expression.  */
   if (TREE_CODE (tree_result) == INTEGER_CST)
     {
@@ -20506,7 +20506,7 @@ add_data_member_location_attribute (dw_die_ref die,
       /* While DW_AT_data_bit_offset has been added already in DWARF4,
         e.g. GDB only added support to it in November 2016.  For DWARF5
         we need newer debug info consumers anyway.  We might change this
-        to dwarf_version >= 4 once most consumers catched up.  */
+        to dwarf_version >= 4 once most consumers caught up.  */
       if (dwarf_version >= 5
          && TREE_CODE (decl) == FIELD_DECL
          && DECL_BIT_FIELD_TYPE (decl)
@@ -25479,7 +25479,7 @@ gen_lexical_block_die (tree stmt, dw_die_ref 
context_die)
 
   if (BLOCK_ABSTRACT_ORIGIN (stmt))
     {
-      /* If this is an inlined or conrecte instance, create a new lexical
+      /* If this is an inlined or concrete instance, create a new lexical
         die for anything below to attach DW_AT_abstract_origin to.  */
       if (old_die)
        stmt_die = new_die (DW_TAG_lexical_block, context_die, stmt);
@@ -26107,7 +26107,7 @@ analyze_variants_discr (tree variant_part_decl,
                goto abort;
 
              /* Extract the discriminant from the first operand and check it
-                is consistant with the same analysis in the second
+                is consistent with the same analysis in the second
                 operand.  */
              candidate_discr_1
                = analyze_discr_in_predicate (TREE_OPERAND (lower_op, 0),
@@ -26163,7 +26163,7 @@ analyze_variants_discr (tree variant_part_decl,
               matching discriminant values.  Abort everything.  */
            goto abort;
 
-         /* If the discriminant info is not consistant with what we saw so
+         /* If the discriminant info is not consistent with what we saw so
             far, consider the analysis failed and abort everything.  */
          if (candidate_discr == NULL_TREE
              || (*discr_decl != NULL_TREE && candidate_discr != *discr_decl))
@@ -27634,7 +27634,7 @@ gen_decl_die (tree decl, tree origin, struct 
vlr_context *ctx,
         DW_TAG_union_type, or DW_TAG_enumeration_type DIE here.  But nothing
         should be actually referencing those DIEs, as variable DIEs with that
         type would be emitted already in the abstract origin, so it was always
-        removed during unused type prunning.  Don't add anything in this
+        removed during unused type pruning.  Don't add anything in this
         case.  */
       if (TYPE_DECL_IS_STUB (decl) && decl_ultimate_origin (decl) != NULL_TREE)
        break;
@@ -33454,7 +33454,7 @@ resolve_variable_value (dw_die_ref die)
       }
 }
 
-/* Attempt to optimize DW_OP_GNU_variable_value refering to
+/* Attempt to optimize DW_OP_GNU_variable_value referring to
    temporaries in the current function.  */
 
 static void
diff --git a/gcc/fortran/gfortran.texi b/gcc/fortran/gfortran.texi
index e234afc269af..563bb6ed5a1d 100644
--- a/gcc/fortran/gfortran.texi
+++ b/gcc/fortran/gfortran.texi
@@ -4892,7 +4892,7 @@ then this needs to be set to the byte size of each 
character, i.e. @code{4} for
 a @code{CHARACTER (KIND=4)} string.  The length of the string is then given
 in @code{opt_src_charlen} and @code{opt_dst_charlen} (also for string arrays).
 @item @var{scalar_transfer} @tab intent(in)  Is set to true when the data to be
-transfered between the two images is not an array with a descriptor.
+transferred between the two images is not an array with a descriptor.
 @item @var{dst_stat} @tab intent(out) When non-@code{NULL} give the result of
 the operation on the receiving side, i.e., zero on success and non-zero on
 error.  When @code{NULL} and an error occurs, then an error message is printed
diff --git a/gcc/fortran/resolve.cc b/gcc/fortran/resolve.cc
index 153ff42f290e..c34fba7a0f5a 100644
--- a/gcc/fortran/resolve.cc
+++ b/gcc/fortran/resolve.cc
@@ -12173,7 +12173,7 @@ over:
 
 
 /* Check whether a WHERE assignment target or a WHERE mask expression
-   has the same shape as the outmost WHERE mask expression.  */
+   has the same shape as the outermost WHERE mask expression.  */
 
 static void
 resolve_where (gfc_code *code, gfc_expr *mask)
@@ -12185,8 +12185,8 @@ resolve_where (gfc_code *code, gfc_expr *mask)
   cblock = code->block;
 
   /* Store the first WHERE mask-expr of the WHERE statement or construct.
-     In case of nested WHERE, only the outmost one is stored.  */
-  if (mask == NULL) /* outmost WHERE */
+     In case of nested WHERE, only the outermost one is stored.  */
+  if (mask == NULL) /* outermost WHERE */
     e = cblock->expr1;
   else /* inner WHERE */
     e = mask;
@@ -12196,7 +12196,7 @@ resolve_where (gfc_code *code, gfc_expr *mask)
       if (cblock->expr1)
        {
          /* Check if the mask-expr has a consistent shape with the
-            outmost WHERE mask-expr.  */
+            outermost WHERE mask-expr.  */
          if (!resolve_where_shape (cblock->expr1, e))
            gfc_error ("WHERE mask at %L has inconsistent shape",
                       &cblock->expr1->where);
diff --git a/gcc/genmatch.cc b/gcc/genmatch.cc
index c6097cd722bf..d9eac43000dc 100644
--- a/gcc/genmatch.cc
+++ b/gcc/genmatch.cc
@@ -1520,7 +1520,7 @@ public:
   /* The operator and its operands.  */
   id_base *operation;
   vec<operand *> ops;
-  /* An explicitely specified type - used exclusively for conversions.  */
+  /* An explicitly specified type - used exclusively for conversions.  */
   const char *expr_type;
   /* Whether the operation is to be applied commutatively.  This is
      later lowered to two separate patterns.  */
diff --git a/gcc/gimple-range-phi.cc b/gcc/gimple-range-phi.cc
index 656d749d48d0..1396d7d40845 100644
--- a/gcc/gimple-range-phi.cc
+++ b/gcc/gimple-range-phi.cc
@@ -82,7 +82,7 @@ phi_group::phi_group (bitmap bm, irange &init_range, gimple 
*mod,
   m_vr.set_varying (init_range.type ());
 }
 
-// Return 0 if S is not a modifier statment for group members BM.
+// Return 0 if S is not a modifier statement for group members BM.
 // If it could be a modifier, return which operand position (1 or 2)
 // the phi member occurs in.
 unsigned
diff --git a/gcc/gimple-ssa-store-merging.cc b/gcc/gimple-ssa-store-merging.cc
index d8075ca315be..6a5d42914613 100644
--- a/gcc/gimple-ssa-store-merging.cc
+++ b/gcc/gimple-ssa-store-merging.cc
@@ -1534,8 +1534,8 @@ maybe_optimize_vector_constructor (gimple *cur_stmt)
 }
 
 /* Find manual byte swap implementations as well as load in a given
-   endianness. Byte swaps are turned into a bswap builtin invokation
-   while endian loads are converted to bswap builtin invokation or
+   endianness.  Byte swaps are turned into a bswap builtin invocation
+   while endian loads are converted to bswap builtin invocation or
    simple load according to the target endianness.  */
 
 unsigned int
diff --git a/gcc/gimple-walk.cc b/gcc/gimple-walk.cc
index b8b107789bb0..b7759dde945f 100644
--- a/gcc/gimple-walk.cc
+++ b/gcc/gimple-walk.cc
@@ -535,7 +535,7 @@ walk_gimple_op (gimple *stmt, walk_tree_fn callback_op,
       break;
 
     case GIMPLE_PHI:
-      /* PHIs are not GSS_WITH_OPS so we need to handle them explicitely.  */
+      /* PHIs are not GSS_WITH_OPS so we need to handle them explicitly.  */
       {
        gphi *phi = as_a <gphi *> (stmt);
        if (wi)
diff --git a/gcc/gimplify.cc b/gcc/gimplify.cc
index 751b46972714..95506f1682f6 100644
--- a/gcc/gimplify.cc
+++ b/gcc/gimplify.cc
@@ -901,7 +901,7 @@ gimple_add_tmp_var (tree tmp)
 /* This page contains routines to unshare tree nodes, i.e. to duplicate tree
    nodes that are referenced more than once in GENERIC functions.  This is
    necessary because gimplification (translation into GIMPLE) is performed
-   by modifying tree nodes in-place, so gimplication of a shared node in a
+   by modifying tree nodes in-place, so gimplification of a shared node in a
    first context could generate an invalid GIMPLE form in a second context.
 
    This is achieved with a simple mark/copy/unmark algorithm that walks the
@@ -2101,7 +2101,7 @@ gimple_add_padding_init_for_auto_var (tree decl, bool 
is_vla,
   gimplify_seq_add_stmt (seq_p, call);
 }
 
-/* Return true if the DECL need to be automaticly initialized by the
+/* Return true if the DECL need to be automatically initialized by the
    compiler.  */
 static bool
 var_needs_auto_init_p (tree decl)
@@ -2158,7 +2158,7 @@ gimplify_decl_expr (tree *stmt_p, gimple_seq *seq_p)
       /* Check whether a decl has FE created VALUE_EXPR here BEFORE
         gimplify_vla_decl creates VALUE_EXPR for a vla decl.
         If the decl has VALUE_EXPR that was created by FE (usually
-        C++FE), it's a proxy varaible, and FE already initialized
+        C++FE), it's a proxy variable, and FE already initialized
         the VALUE_EXPR of it, we should not initialize it anymore.  */
       bool decl_had_value_expr_p = DECL_HAS_VALUE_EXPR_P (decl);
 
@@ -2236,7 +2236,7 @@ gimplify_decl_expr (tree *stmt_p, gimple_seq *seq_p)
             pattern initialization.
             In order to make the paddings as zeroes for pattern init, We
             should add a call to __builtin_clear_padding to clear the
-            paddings to zero in compatiple with CLANG.
+            paddings to zero in compatible with CLANG.
             We cannot insert this call if the variable is a gimple register
             since __builtin_clear_padding will take the address of the
             variable.  As a result, if a long double/_Complex long double
@@ -2305,7 +2305,7 @@ gimplify_statement_list (tree *expr_p, gimple_seq *pre_p)
 }
 
 
-/* Emit warning for the unreachable statment STMT if needed.
+/* Emit warning for the unreachable statement STMT if needed.
    Return the gimple itself when the warning is emitted, otherwise
    return NULL.  */
 static gimple *
@@ -2711,7 +2711,7 @@ collect_fallthrough_labels (gimple_stmt_iterator *gsi_p,
   return prev;
 }
 
-/* Return true if the switch fallthough warning should occur.  LABEL is
+/* Return true if the switch fallthrough warning should occur.  LABEL is
    the label statement that we're falling through to.  */
 
 static bool
@@ -4095,7 +4095,7 @@ modify_call_for_omp_dispatch (tree expr, tree 
dispatch_clauses,
              }
 
          /* Initialize the arrays, generating temp vars and clobbers for
-            the interobject objects.  (The constructed array holding the
+            the interop objects.  (The constructed array holding the
             pointers to these objects shouldn't need clobbering as there's
             no reason for GOMP_interop to modify its contents.)  */
          for (j = ninterop, a = apparg; j < nappend; j++, a = TREE_CHAIN (a))
@@ -9181,7 +9181,7 @@ oacc_default_clause (struct gimplify_omp_ctx *ctx, tree 
decl, unsigned flags)
     type = TREE_TYPE (type);
 
   /* For Fortran COMMON blocks, only used variables in those blocks are
-     transfered and remapped.  The block itself will have a private clause to
+     transferred and remapped.  The block itself will have a private clause to
      avoid transfering the data twice.
      The hook evaluates to false by default.  For a variable in Fortran's 
COMMON
      or EQUIVALENCE block, returns 'true' (as we have shared=false) - as only
@@ -9303,8 +9303,8 @@ omp_notice_variable (struct gimplify_omp_ctx *ctx, tree 
decl, bool in_code)
        {
          if (ctx->region_type & ORT_ACC)
            /* For OpenACC, defer expansion of value to avoid transfering
-              privatized common block data instead of im-/explicitly transfered
-              variables which are in common blocks.  */
+              privatized common block data instead of im-/explicitly
+              transferred variables which are in common blocks.  */
            ;
          else
            {
diff --git a/gcc/graphite-isl-ast-to-gimple.cc 
b/gcc/graphite-isl-ast-to-gimple.cc
index 64cdf343999e..c54492671a81 100644
--- a/gcc/graphite-isl-ast-to-gimple.cc
+++ b/gcc/graphite-isl-ast-to-gimple.cc
@@ -319,7 +319,7 @@ binary_op_to_tree (tree type, __isl_take isl_ast_expr 
*expr, ivs_params &ip)
   isl_ast_expr_free (expr);
 
   /* From our constraint generation we may get modulo operations that
-     we cannot represent explicitely but that are no-ops for TYPE.
+     we cannot represent explicitly but that are no-ops for TYPE.
      Elide those.  */
   if ((expr_type == isl_ast_op_pdiv_r
        || expr_type == isl_ast_op_zdiv_r
diff --git a/gcc/ipa-param-manipulation.cc b/gcc/ipa-param-manipulation.cc
index 96ab125dee18..78013cc396d6 100644
--- a/gcc/ipa-param-manipulation.cc
+++ b/gcc/ipa-param-manipulation.cc
@@ -155,7 +155,7 @@ push_function_arg_decls (vec<tree> *args, tree fndecl)
 
   /* Safety check that we do not attempt to use the function in WPA, except
      when the function is a thunk and then we have DECL_ARGUMENTS or when we
-     have already explicitely loaded its body.  */
+     have already explicitly loaded its body.  */
   gcc_assert (!flag_wpa
              || DECL_ARGUMENTS (fndecl)
              || gimple_has_body_p (fndecl));
diff --git a/gcc/ipa-prop.cc b/gcc/ipa-prop.cc
index c2a1b518806d..0883816826b8 100644
--- a/gcc/ipa-prop.cc
+++ b/gcc/ipa-prop.cc
@@ -4032,7 +4032,7 @@ ipa_make_edge_direct_to_target (struct cgraph_edge *ie, 
tree target,
   else
     callee = cgraph_node::get (target);
 
-  /* Because may-edges are not explicitely represented and vtable may be 
external,
+  /* Because may-edges are not explicitly represented and vtable may be 
external,
      we may create the first reference to the object in the unit.  */
   if (!callee || callee->inlined_to)
     {
diff --git a/gcc/ipa-prop.h b/gcc/ipa-prop.h
index 6ebcb28b22d0..cd9c4e81084f 100644
--- a/gcc/ipa-prop.h
+++ b/gcc/ipa-prop.h
@@ -666,7 +666,7 @@ public:
   /* Node has been completely replaced by clones and will be removed after
      ipa-cp is finished.  */
   unsigned node_dead : 1;
-  /* Node is involved in a recursion, potentionally indirect.  */
+  /* Node is involved in a recursion, potentially indirect.  */
   unsigned node_within_scc : 1;
   /* Node contains only direct recursion.  */
   unsigned node_is_self_scc : 1;
diff --git a/gcc/loop-init.cc b/gcc/loop-init.cc
index 663b2de43573..190792022240 100644
--- a/gcc/loop-init.cc
+++ b/gcc/loop-init.cc
@@ -314,7 +314,7 @@ fix_loop_structure (bitmap changed_bbs)
        n_deleted++;
       }
 
-  /* If we deleted loops then the cached scalar evolutions refering to
+  /* If we deleted loops then the cached scalar evolutions referring to
      those loops become invalid.  */
   if (n_deleted > 0 && scev_initialized_p ())
     scev_reset_htab ();
diff --git a/gcc/lto/lto-common.cc b/gcc/lto/lto-common.cc
index 13aca2c9d2af..80e04268103d 100644
--- a/gcc/lto/lto-common.cc
+++ b/gcc/lto/lto-common.cc
@@ -2141,7 +2141,7 @@ lto_resolution_read (splay_tree file_ids, FILE 
*resolution, lto_file *file)
                 somewhat contradictionary (as the point of incremental linking
                 is to allow re-linking with more symbols later) but it is
                 used to build LTO kernel.  We want to hide all symbols that
-                are not explicitely marked as exported and thus turn
+                are not explicitly marked as exported and thus turn
                 LDPR_PREVAILING_DEF_IRONLY_EXP
                 to LDPR_PREVAILING_DEF_IRONLY.  */
              if (flag_whole_program
diff --git a/gcc/m2/gm2-compiler/FilterError.mod 
b/gcc/m2/gm2-compiler/FilterError.mod
index 6f2b2f3444a6..d8ecda304410 100644
--- a/gcc/m2/gm2-compiler/FilterError.mod
+++ b/gcc/m2/gm2-compiler/FilterError.mod
@@ -22,7 +22,7 @@ along with GNU Modula-2; see the file COPYING3.  If not see
 IMPLEMENTATION MODULE FilterError ;
 
 (* The purpose of this module is to be able to filter out multiple error
-   reports refering to the same symbol and token.  This is achieved by
+   reports referring to the same symbol and token.  This is achieved by
    maintaining a dictionary of symbols each pointing to a dictionary of
    tokens.  *)
 
diff --git a/gcc/m2/gm2-compiler/M2Batch.mod b/gcc/m2/gm2-compiler/M2Batch.mod
index f9a6274260ab..83bfb0ff1dbc 100644
--- a/gcc/m2/gm2-compiler/M2Batch.mod
+++ b/gcc/m2/gm2-compiler/M2Batch.mod
@@ -461,7 +461,7 @@ BEGIN
       END ;
       IF sym = NulSym
       THEN
-         (* not a local module, so it must be refering to a definition module. 
 *)
+         (* not a local module, so it must be referring to a definition 
module.  *)
          sym := MakeDefinitionSource (tok, n)
       END
    END ;
diff --git a/gcc/match.pd b/gcc/match.pd
index a52cef3e6266..45d968446736 100644
--- a/gcc/match.pd
+++ b/gcc/match.pd
@@ -598,7 +598,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
    But not for 1 / 0 so that we can get proper warnings and errors,
    and not for 1-bit integers as they are edge cases better handled
    elsewhere.  Delay the conversion of the signed division until late
-   because `1 / X` is simplier to handle than the resulting COND_EXPR.  */
+   because `1 / X` is simpler to handle than the resulting COND_EXPR.  */
 (simplify
  (trunc_div integer_onep@0 @1)
  (if (INTEGRAL_TYPE_P (type)
diff --git a/gcc/opts.cc b/gcc/opts.cc
index b9378a96dd2e..7f1a0351a6cf 100644
--- a/gcc/opts.cc
+++ b/gcc/opts.cc
@@ -190,7 +190,7 @@ bool dwarf_based_debuginfo_p ()
          || (write_symbols & CODEVIEW_DEBUG));
 }
 
-/* All flag uses below need to explicitely reference the option sets
+/* All flag uses below need to explicitly reference the option sets
    to operate on.  */
 #define global_options DO_NOT_USE
 #define global_options_set DO_NOT_USE
diff --git a/gcc/sanopt.cc b/gcc/sanopt.cc
index 33f62540747d..14256088eefd 100644
--- a/gcc/sanopt.cc
+++ b/gcc/sanopt.cc
@@ -814,7 +814,7 @@ sanopt_optimize_walker (basic_block bb, class sanopt_ctx 
*ctx)
       if (!is_gimple_call (stmt))
        {
          /* Handle asm volatile or asm with "memory" clobber
-            the same as potentionally freeing call.  */
+            the same as potentially freeing call.  */
          gasm *asm_stmt = dyn_cast <gasm *> (stmt);
          if (asm_stmt
              && asan_check_optimize
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr44706.C 
b/gcc/testsuite/g++.dg/tree-ssa/pr44706.C
index d59b049feccf..4c381f96570f 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr44706.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr44706.C
@@ -41,5 +41,5 @@ XMLExcepts::AttrList_BadIndex, getMemoryManager());
 }
 
 /* Mistake in branch prediction caused us to split away real body of the 
function keeping
-   only throw () invokation.   This is bad idea.  */
+   only throw () invocation.   This is bad idea.  */
 /* { dg-final { scan-tree-dump-not "Splitting function" "fnsplit"} } */
diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr87502.C 
b/gcc/testsuite/g++.dg/tree-ssa/pr87502.C
index ad3e9d254044..e8e0cd388fb0 100644
--- a/gcc/testsuite/g++.dg/tree-ssa/pr87502.C
+++ b/gcc/testsuite/g++.dg/tree-ssa/pr87502.C
@@ -11,5 +11,5 @@ bar ()
 {
   return foo ("abc") + foo (std::string("abc"));
 }
-// We used to add terminating zero explicitely instead of using fact
+// We used to add terminating zero explicitly instead of using fact
 // that memcpy source is already 0 terminated.
diff --git a/gcc/testsuite/gcc.c-torture/compile/20030323-1.c 
b/gcc/testsuite/gcc.c-torture/compile/20030323-1.c
index 8ea602deee35..8282ab19fcf4 100644
--- a/gcc/testsuite/gcc.c-torture/compile/20030323-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/20030323-1.c
@@ -1,5 +1,5 @@
 /* PR c/10178.  The following code would ICE because we didn't check for
-   overflow when computing the range of the switch-statment, and therefore
+   overflow when computing the range of the switch-statement, and therefore
    decided it could be implemented using bit-tests.  */
 
 int
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr96779-disabled.c 
b/gcc/testsuite/gcc.dg/tree-ssa/pr96779-disabled.c
index 968620582afc..264f9284971d 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr96779-disabled.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr96779-disabled.c
@@ -81,5 +81,5 @@ main (void)
   return 0;
 }
 
-/* Verify that we have *not* transfered "= -" pattern in any of those 
functions.  */
+/* Verify that we have *not* transferred "= -" pattern in any of those 
functions.  */
 /* { dg-final { scan-tree-dump-times "= -" 4 "optimized" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr96779.c 
b/gcc/testsuite/gcc.dg/tree-ssa/pr96779.c
index 03618bf81d27..29b7667eff1e 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/pr96779.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/pr96779.c
@@ -76,5 +76,5 @@ main (void)
   return 0;
 }
 
-/* Verify that we transfered to "= -" pattern from "_2 = -_1;".  */
+/* Verify that we transferred to "= -" pattern from "_2 = -_1;".  */
 /* { dg-final { scan-tree-dump-not "= -" "optimized" } } */
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-16.c 
b/gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-16.c
index f96170b073df..d89751cddb2a 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-16.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-thread-16.c
@@ -12,7 +12,7 @@ void foo (int a, int b, int c, int d, int e)
     res = 7;
   if (d < 2)
     res = 9;
-  /* Accounting whoes makes this not catched.  */
+  /* Accounting whoes makes this not caught.  */
 #if 0
   if (e != 37)
     res = 11;
diff --git a/gcc/testsuite/gcc.target/s390/larl-1.c 
b/gcc/testsuite/gcc.target/s390/larl-1.c
index 5ef2ef63f82f..e22975ba9601 100644
--- a/gcc/testsuite/gcc.target/s390/larl-1.c
+++ b/gcc/testsuite/gcc.target/s390/larl-1.c
@@ -3,7 +3,7 @@
 /* { dg-do compile { target { s390*-*-* } } } */
 /* { dg-options "-O2 -march=z10 -mzarch -fno-section-anchors" } */
 
-/* An explicitely misaligned symbol.  This symbol is NOT aligned as
+/* An explicitly misaligned symbol.  This symbol is NOT aligned as
    mandated by our ABI.  However, the back-end needs to handle that in
    order to make things like __attribute__((packed)) work.  The symbol
    address is expected to be loaded from literal pool.  */
diff --git a/gcc/testsuite/gfortran.dg/bound_8.f90 
b/gcc/testsuite/gfortran.dg/bound_8.f90
index 50345d173d6c..3e37ef3bb250 100644
--- a/gcc/testsuite/gfortran.dg/bound_8.f90
+++ b/gcc/testsuite/gfortran.dg/bound_8.f90
@@ -11,7 +11,7 @@
 PROGRAM main
   IMPLICIT NONE
 
-  ! Some explicitely shaped arrays and allocatable ones.
+  ! Some explicitly shaped arrays and allocatable ones.
   INTEGER :: a(2, 3), b(0:1, 4:6)
   INTEGER, ALLOCATABLE :: x(:, :), y(:, :)
 
diff --git a/gcc/testsuite/gfortran.dg/coarray_14.f90 
b/gcc/testsuite/gfortran.dg/coarray_14.f90
index d7eb6b6be02d..d9e3747d7e97 100644
--- a/gcc/testsuite/gfortran.dg/coarray_14.f90
+++ b/gcc/testsuite/gfortran.dg/coarray_14.f90
@@ -43,7 +43,7 @@ end subroutine test
 
 ! Check for C617: "... a data-ref shall not be a polymorphic subobject of a
 ! coindexed object or ..." 
-! Before, the second allocate statment was failing - though it is no subobject.
+! Before, the second allocate statement was failing - though it is no 
subobject.
 program myTest
 type t
 end type t
diff --git a/gcc/tree-cfg.cc b/gcc/tree-cfg.cc
index ec3be8125f06..425e8558e0a9 100644
--- a/gcc/tree-cfg.cc
+++ b/gcc/tree-cfg.cc
@@ -1795,7 +1795,7 @@ group_case_labels_stmt (gswitch *stmt)
                           but they will be moved to some neighbouring basic
                           block. If some later case label refers to one of
                           those labels, we should throw that case away rather
-                          than keeping it around and refering to some random
+                          than keeping it around and referring to some random
                           other basic block without an edge to it.  */
                        if (removed_labels == NULL)
                          removed_labels = new hash_set<tree>;
@@ -8413,7 +8413,7 @@ dump_function_to_file (tree fndecl, FILE *file, 
dump_flags_t flags)
          {
            if (!SSA_NAME_VAR (name)
                /* SSA name with decls without a name still get
-                  dumped as _N, list those explicitely as well even
+                  dumped as _N, list those explicitly as well even
                   though we've dumped the decl declaration as D.xxx
                   above.  */
                || !SSA_NAME_IDENTIFIER (name))
@@ -10277,7 +10277,7 @@ make_forwarders_with_degenerate_phis (function *fn, 
bool skip_ifcvtable)
        continue;
       /* Do not touch loop headers or blocks with abnormal predecessors.
         ???  This is to avoid creating valid loops here, see PR103458.
-        We might want to improve things to either explicitely add those
+        We might want to improve things to either explicitly add those
         loops or at least consider blocks with no backedges.  */
       if (bb->loop_father->header == bb
          || bb_has_abnormal_pred (bb))
diff --git a/gcc/tree-inline.cc b/gcc/tree-inline.cc
index 7fecf487af73..d45405962f79 100644
--- a/gcc/tree-inline.cc
+++ b/gcc/tree-inline.cc
@@ -5892,7 +5892,7 @@ replace_locals_op (tree *tp, int *walk_subtrees, void 
*data)
       /* Before the omplower pass completes, some OMP clauses can contain
         sequences that are neither copied by gimple_seq_copy nor walked by
         walk_gimple_seq.  To make copy_gimple_seq_and_replace_locals work even
-        in those situations, we have to copy and process them explicitely.  */
+        in those situations, we have to copy and process them explicitly.  */
 
       if (OMP_CLAUSE_CODE (expr) == OMP_CLAUSE_LASTPRIVATE)
        {
diff --git a/gcc/tree-loop-distribution.cc b/gcc/tree-loop-distribution.cc
index 73e5cab98292..daf268f9c9f1 100644
--- a/gcc/tree-loop-distribution.cc
+++ b/gcc/tree-loop-distribution.cc
@@ -3967,7 +3967,8 @@ loop_distribution::execute (function *fun)
   if (changed)
     {
       /* Destroy loop bodies that could not be reused.  Do this late as we
-        otherwise can end up refering to stale data in control dependences.  */
+        otherwise can end up referring to stale data in control
+        dependences.  */
       unsigned i;
       class loop *loop;
       FOR_EACH_VEC_ELT (loops_to_be_destroyed, i, loop)
diff --git a/gcc/tree-sra.cc b/gcc/tree-sra.cc
index cb0f518ff038..41d420e72369 100644
--- a/gcc/tree-sra.cc
+++ b/gcc/tree-sra.cc
@@ -4614,7 +4614,7 @@ generate_subtree_deferred_init (struct access *access,
    there is one, also replace the RHS call to a call to .DEFERRED_INIT of
    the corresponding scalar relacement variable.  Examine the subtree and
    do the scalar replacements in the subtree too.  STMT is the call, GSI is
-   the statment iterator to place newly created statement.  */
+   the statement iterator to place newly created statement.  */
 
 static enum assignment_mod_result
 sra_modify_deferred_init (gimple *stmt, gimple_stmt_iterator *gsi)
diff --git a/gcc/tree-ssa-alias.cc b/gcc/tree-ssa-alias.cc
index 76aac6f1c032..01864646658b 100644
--- a/gcc/tree-ssa-alias.cc
+++ b/gcc/tree-ssa-alias.cc
@@ -423,7 +423,7 @@ bool
 ptrs_compare_unequal (tree ptr1, tree ptr2)
 {
   /* First resolve the pointers down to a SSA name pointer base or
-     a VAR_DECL, PARM_DECL or RESULT_DECL.  This explicitely does
+     a VAR_DECL, PARM_DECL or RESULT_DECL.  This explicitly does
      not yet try to handle LABEL_DECLs, FUNCTION_DECLs, CONST_DECLs
      or STRING_CSTs which needs points-to adjustments to track them
      in the points-to sets.  */
diff --git a/gcc/tree-ssa-forwprop.cc b/gcc/tree-ssa-forwprop.cc
index 17bfa2a99dc4..d00f7b9004ea 100644
--- a/gcc/tree-ssa-forwprop.cc
+++ b/gcc/tree-ssa-forwprop.cc
@@ -195,7 +195,7 @@ struct _vec_perm_simplify_seq
   gassign *v_2_stmt;
   gassign *v_x_stmt;
   gassign *v_y_stmt;
-  /* Final permute statment.  */
+  /* Final permute statement.  */
   gassign *stmt;
   /* New selector indices for stmt.  */
   tree new_sel;
@@ -4721,7 +4721,7 @@ narrow_vec_perm_simplify_seq (const vec_perm_simplify_seq 
&seq)
   gassign *stmt = seq->stmt;
   if (dump_file && (dump_flags & TDF_DETAILS))
     {
-      fprintf (dump_file, "Updating VEC_PERM statment:\n");
+      fprintf (dump_file, "Updating VEC_PERM statement:\n");
       fprintf (dump_file, "Old stmt: ");
       print_gimple_stmt (dump_file, stmt, 0);
     }
@@ -4967,7 +4967,7 @@ blend_vec_perm_simplify_seqs (vec_perm_simplify_seq seq1,
   /* Adjust seq2->stmt: copy RHS1/RHS2 from seq1->stmt and set new sel.  */
   if (dump_file && (dump_flags & TDF_DETAILS))
     {
-      fprintf (dump_file, "Updating VEC_PERM statment:\n");
+      fprintf (dump_file, "Updating VEC_PERM statement:\n");
       fprintf (dump_file, "Old stmt: ");
       print_gimple_stmt (dump_file, seq2->stmt, 0);
     }
@@ -4988,7 +4988,7 @@ blend_vec_perm_simplify_seqs (vec_perm_simplify_seq seq1,
   /* Adjust seq1->v_1_stmt: copy RHS2 from seq2->v_1_stmt and set new sel.  */
   if (dump_file && (dump_flags & TDF_DETAILS))
     {
-      fprintf (dump_file, "Updating VEC_PERM statment:\n");
+      fprintf (dump_file, "Updating VEC_PERM statement:\n");
       fprintf (dump_file, "Old stmt: ");
       print_gimple_stmt (dump_file, seq1->v_1_stmt, 0);
     }
@@ -5008,7 +5008,7 @@ blend_vec_perm_simplify_seqs (vec_perm_simplify_seq seq1,
   /* Adjust seq1->v_2_stmt: copy RHS2 from seq2->v_2_stmt and set new sel.  */
   if (dump_file && (dump_flags & TDF_DETAILS))
     {
-      fprintf (dump_file, "Updating VEC_PERM statment:\n");
+      fprintf (dump_file, "Updating VEC_PERM statement:\n");
       fprintf (dump_file, "Old stmt: ");
       print_gimple_stmt (dump_file, seq1->v_2_stmt, 0);
     }
diff --git a/gcc/tree-ssa-pre.cc b/gcc/tree-ssa-pre.cc
index 2a7dcbee52ce..b6906cfec411 100644
--- a/gcc/tree-ssa-pre.cc
+++ b/gcc/tree-ssa-pre.cc
@@ -2131,7 +2131,7 @@ compute_antic_aux (basic_block block, bool 
block_has_abnormal_pred_edge)
              /* Unvisited successors get their ANTIC_IN replaced by the
                 maximal set to arrive at a maximum ANTIC_IN solution.
                 We can ignore them in the intersection operation and thus
-                need not explicitely represent that maximum solution.  */
+                need not explicitly represent that maximum solution.  */
              any_max_on_edge = true;
              if (dump_file && (dump_flags & TDF_DETAILS))
                fprintf (dump_file, "ANTIC_IN is MAX on %d->%d\n",
diff --git a/gcc/tree-vect-loop-manip.cc b/gcc/tree-vect-loop-manip.cc
index e2ea0426050e..624d289156c2 100644
--- a/gcc/tree-vect-loop-manip.cc
+++ b/gcc/tree-vect-loop-manip.cc
@@ -3267,7 +3267,7 @@ vect_do_peeling (loop_vec_info loop_vinfo, tree niters, 
tree nitersm1,
     return NULL;
 
   /* Before doing any peeling make sure to reset debug binds outside of
-     the loop refering to defs not in LC SSA.  */
+     the loop referring to defs not in LC SSA.  */
   class loop *loop = LOOP_VINFO_LOOP (loop_vinfo);
   for (unsigned i = 0; i < loop->num_nodes; ++i)
     {
diff --git a/gcc/tree-vect-patterns.cc b/gcc/tree-vect-patterns.cc
index af64cb84e418..f49e53a7f3e7 100644
--- a/gcc/tree-vect-patterns.cc
+++ b/gcc/tree-vect-patterns.cc
@@ -59,7 +59,7 @@ along with GCC; see the file COPYING3.  If not see
 
 /* TODO:  Note the vectorizer still builds COND_EXPRs with GENERIC compares
    in the first operand.  Disentangling this is future work, the
-   IL is properly transfered to VEC_COND_EXPRs with separate compares.  */
+   IL is properly transferred to VEC_COND_EXPRs with separate compares.  */
 
 
 /* Return true if we have a useful VR_RANGE range for VAR, storing it
diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc
index a0fd43b22fba..704706124116 100644
--- a/gcc/tree-vect-slp.cc
+++ b/gcc/tree-vect-slp.cc
@@ -2037,7 +2037,7 @@ vect_build_slp_tree_2 (vec_info *vinfo, slp_tree node,
                  all_same = false;
              }
            class loop *loop = LOOP_VINFO_LOOP (loop_vinfo);
-           /* Reduction initial values are not explicitely represented.  */
+           /* Reduction initial values are not explicitly represented.  */
            if (def_type != vect_first_order_recurrence
                && gimple_bb (stmt_info->stmt) == loop->header)
              skip_args[loop_preheader_edge (loop)->dest_idx] = true;
@@ -4068,7 +4068,7 @@ vect_build_slp_store_interleaving (vec<slp_tree> 
&rhs_nodes,
 
 /* Analyze an SLP instance starting from SCALAR_STMTS which are a group
    of KIND.  Return true if successful.  SCALAR_STMTS is owned by this
-   function, REMAIN and ROOT_STMT_INFOS ownership is transfered back to
+   function, REMAIN and ROOT_STMT_INFOS ownership is transferred back to
    the caller upon failure.  */
 
 static bool
@@ -6555,7 +6555,7 @@ vect_optimize_slp_pass::build_vertices 
(hash_set<slp_tree> &visited,
       force_leaf = true;
   /* Since SLP discovery works along use-def edges all cycles have an
      entry - but there's the exception of cycles where we do not handle
-     the entry explicitely (but with a NULL SLP node), like some reductions
+     the entry explicitly (but with a NULL SLP node), like some reductions
      and inductions.  Force those SLP PHIs to act as leafs to make them
      backwards reachable.  */
   if (leaf || force_leaf)
@@ -8819,7 +8819,7 @@ vect_slp_analyze_node_operations (vec_info *vinfo, 
slp_tree node,
     }
 
   /* When the node can be vectorized cost invariant nodes it references.
-     This is not done in DFS order to allow the refering node
+     This is not done in DFS order to allow the referring node
      vectorizable_* calls to nail down the invariant nodes vector type
      and possibly unshare it if it needs a different vector type than
      other referrers.  */
@@ -8854,7 +8854,7 @@ vect_slp_analyze_node_operations (vec_info *vinfo, 
slp_tree node,
 
              /* For shifts with a scalar argument we don't need
                 to cost or code-generate anything.
-                ???  Represent this more explicitely.  */
+                ???  Represent this more explicitly.  */
              gcc_assert (SLP_TREE_TYPE (node) == shift_vec_info_type
                          && j == 1);
              continue;
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc
index 56ff1c846d1e..d5a50a39409b 100644
--- a/gcc/tree-vect-stmts.cc
+++ b/gcc/tree-vect-stmts.cc
@@ -8875,7 +8875,7 @@ vectorizable_store (vec_info *vinfo,
              vec_oprnd = (*gvec_oprnds[0])[j];
              if (mask_node)
                vec_mask = vec_masks[j];
-             /* We should have catched mismatched types earlier.  */
+             /* We should have caught mismatched types earlier.  */
              gcc_assert (ls.ls_type
                          || useless_type_conversion_p
                          (vectype, TREE_TYPE (vec_oprnd)));
@@ -9230,7 +9230,7 @@ vectorizable_store (vec_info *vinfo,
        }
     }
 
-  /* We should have catched mismatched types earlier.  */
+  /* We should have caught mismatched types earlier.  */
   gcc_assert (costing_p
              || useless_type_conversion_p (vectype, TREE_TYPE (vec_oprnd)));
   bool simd_lane_access_p
diff --git a/gcc/tree.cc b/gcc/tree.cc
index 8dcb59dc8758..75608c18986d 100644
--- a/gcc/tree.cc
+++ b/gcc/tree.cc
@@ -8605,7 +8605,7 @@ variably_modified_type_p (tree type, tree fn)
     case POINTER_TYPE:
     case REFERENCE_TYPE:
     case VECTOR_TYPE:
-      /* Ada can have pointer types refering to themselves indirectly.  */
+      /* Ada can have pointer types referring to themselves indirectly.  */
       if (TREE_VISITED (type))
        return false;
       TREE_VISITED (type) = true;
diff --git a/gcc/vec.h b/gcc/vec.h
index 0ea7a4957340..346929ad5817 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -1670,7 +1670,7 @@ public:
   {
     m_auto.embedded_init (N, 0, 1);
     /* ???  Instead of initializing m_vec from &m_auto directly use an
-       expression that avoids refering to a specific member of 'this'
+       expression that avoids referring to a specific member of 'this'
        to derail the -Wstringop-overflow diagnostic code, avoiding
        the impression that data accesses are supposed to be to the
        m_auto member storage.  */

Reply via email to