https://gcc.gnu.org/g:5c3b44e0044050148e763fd2d1ca044a621430b7

commit r16-6037-g5c3b44e0044050148e763fd2d1ca044a621430b7
Author: Jakub Jelinek <[email protected]>
Date:   Thu Dec 11 19:34:20 2025 +0100

    Some typo fixes (mostly comment but some messages too)
    
    There is one issue I haven't touched in auto-profile.cc,
                    fprintf (dump_file,
                             "  Annotating edge %i->%i with count 0;"
                             " static profile aggress",
                             e->src->index, e->dest->index);
    Not sure if the last word should be agrees or something completely
    different.
    
    2025-12-11  Jakub Jelinek  <[email protected]>
    
    gcc/
            * config/arc/arc.cc (hwloop_optimize): Fix comment typo,
            begining -> beginning.
            * config/nds32/nds32-utils.cc (nds32::extract_pattern_from_insn):
            Fix comment typo, funciton -> function.
            * ipa-inline.cc (speculation_useful_p): Fix comment typo,
            calll -> call.
            * auto-profile.cc: Fix comment typos, implements -> implement,
            inlning -> inlining, passe -> passes, form -> from, ambigous
            -> ambiguous.
            (afdo_hot_bb_threshod): Rename to ...
            (afdo_hot_bb_threshold): ... this.
            (maybe_hot_afdo_count_p): Adjust for the above change.
            (function_instance::merge): Fix comment typo, hasnt -> hasn't.
            (function_instance::offline_if_not_realized): Fix comment typo,
            instancs -> instances.
            (afdo_count_scale): Fix comment typo, reudce -> reduce.
            (get_original_name): Fix comment typos, generetad -> generated,
            sufix -> suffix.
            (function_instance::get_function_instance): Fix dump message
            typo, insteed -> instead.
            (function_instance::merge): Fix comment typos, hasnt -> hasn't,
            acounting -> accounting, calll -> call, begining -> beginning.
            (function_instance::offline_if_in_set): Fix comment typo,
            begining -> beginning.
            (match_with_target): Fix comment typo, correspons -> corresponds.
            (function_instance::match): Fix diagnostic typo, discrimnator
            -> discriminator.
            (autofdo_source_profile::offline_external_functions): Fix comment
            typos, Doint -> Doing, distingush -> distinguish, shold -> should,
            Poppulate -> Populate.  Fix dump message typo, suffxes -> suffixes.
            (autofdo_source_profile::offline_unrealized_inlines): Fix comment
            typo, Poppulate -> Populate.
            (autofdo_source_profile::update_inlined_ind_target): Fix dump 
message
            typo, funciton -> function.
            (autofdo_source_profile::read): Fix comment typos, function_instace
            -> function_instance, exixts -> exits.  Use afdo_hot_bb_threshold
            instead of afdo_hot_bb_threshod.
            (autofdo_source_profile::get_function_instance_by_inline_stack):
            Fix dump message typo, locaction -> location.
            (afdo_propagate_edge): Fix dump message typo, succesors -> 
successors.
            (afdo_propagate): Fix comment typo, stablize -> stabilize.
            (struct scale): Fix comment typo, descired -> desired.
            (afdo_adjust_guessed_profile): Fix dump message typos, predecesor
            -> predecessor, sucessor -> successor.  Fix comment typo, inprecise
            -> imprecise.
            (auto_profile): Fix comment typo, annoate -> annotate.
            * tree-vect-slp.cc (vectorizable_slp_permutation_1): Fix comment 
typo,
            cylical -> cyclical.
            * except.cc (maybe_add_nop_after_section_switch): Fix comment typo,
            begining -> beginning.
            * tree-ssa-loop-ivcanon.cc (tree_unroll_loops_completely): Fix 
comment
            typo, begining -> beginning.
            * gcc.cc (insert_comments): Likewise.
    gcc/cobol/
            * util.cc (class temp_loc_t): Fix comment typo, paramters
            -> parameters.
            * lexio.cc (valid_sequence_area): Fix comment typo, begining
            -> beginning.
    gcc/m2/
            * gm2-compiler/M2Check.mod (buildError4): Fix comment typo,
            paramters -> parameters.
    gcc/fortran/
            * trans-expr.cc (gfc_conv_procedure_call): Fix comment typo, passe
            -> pass.
    gcc/jit/
            * docs/_build/texinfo/libgccjit.texi: Fix comment typo, shold -> 
should.
            * docs/internals/index.rst: Likewise.
    gcc/rust/
            * backend/rust-tree.cc (fold_builtin_source_location): Fix string 
literal
            typo, funciton -> function.
            * resolve/rust-late-name-resolver-2.0.cc (Late::visit): Fix comment 
typo,
            begining -> beginning.
    gcc/testsuite/
            * gfortran.dg/interface_16.f90: Fix comment typo,calll -> call.

Diff:
---
 gcc/auto-profile.cc                             | 84 ++++++++++++-------------
 gcc/cobol/lexio.cc                              |  6 +-
 gcc/cobol/util.cc                               |  2 +-
 gcc/config/arc/arc.cc                           |  2 +-
 gcc/config/nds32/nds32-utils.cc                 |  2 +-
 gcc/except.cc                                   |  2 +-
 gcc/fortran/trans-expr.cc                       |  2 +-
 gcc/gcc.cc                                      |  2 +-
 gcc/ipa-inline.cc                               |  2 +-
 gcc/jit/docs/_build/texinfo/libgccjit.texi      |  2 +-
 gcc/jit/docs/internals/index.rst                |  2 +-
 gcc/m2/gm2-compiler/M2Check.mod                 |  2 +-
 gcc/rust/backend/rust-tree.cc                   |  2 +-
 gcc/rust/resolve/rust-late-name-resolver-2.0.cc |  2 +-
 gcc/testsuite/gfortran.dg/interface_16.f90      |  2 +-
 gcc/tree-ssa-loop-ivcanon.cc                    |  2 +-
 gcc/tree-vect-slp.cc                            |  2 +-
 17 files changed, 60 insertions(+), 60 deletions(-)

diff --git a/gcc/auto-profile.cc b/gcc/auto-profile.cc
index cf7a21913361..5f97f2e7de1b 100644
--- a/gcc/auto-profile.cc
+++ b/gcc/auto-profile.cc
@@ -55,7 +55,7 @@ along with GCC; see the file COPYING3.  If not see
 #include "gimple-pretty-print.h"
 #include "output.h"
 
-/* The following routines implements AutoFDO optimization.
+/* The following routines implement AutoFDO optimization.
 
    This optimization uses sampling profiles to annotate basic block counts
    and uses heuristics to estimate branch probabilities.
@@ -87,7 +87,7 @@ along with GCC; see the file COPYING3.  If not see
    Phase 3: During early optimization.
      AFDO inline + value profile transformation.
      This happens during early optimization.
-     During early inlning AFDO inliner is executed which
+     During early inlining AFDO inliner is executed which
      uses autofdo_source_profile to find if a callsite is:
         * inlined in the profiled binary.
         * callee body is hot in the profiling run.
@@ -95,9 +95,9 @@ along with GCC; see the file COPYING3.  If not see
      regardless of the code growth.
 
      Performing this early has benefit of doing early optimizations
-     before read IPA passe and getting more "context sensitivity" of
+     before read IPA passes and getting more "context sensitivity" of
      the profile read.  Profile of inlined functions may differ
-     significantly form one inline instance to another and from the
+     significantly from one inline instance to another and from the
      offline version.
 
      This is controlled by -fauto-profile-inlining and is independent
@@ -113,7 +113,7 @@ along with GCC; see the file COPYING3.  If not see
         * Annotate basic block count
         * Estimate branch probability
        * Use earlier static profile to fill in the gaps
-         if AFDO profile is ambigous
+         if AFDO profile is ambiguous
 
    After the above 5 phases, all profile is readily annotated on the GCC IR.
    AutoFDO tries to reuse all FDO infrastructure as much as possible to make
@@ -126,14 +126,14 @@ along with GCC; see the file COPYING3.  If not see
 
 /* profile counts determined by AFDO smaller than afdo_hot_bb_threshold are
    considered cols.  */
-gcov_type afdo_hot_bb_threshod = -1;
+gcov_type afdo_hot_bb_threshold = -1;
 
 /* Return true if COUNT is possibly hot.  */
 bool
 maybe_hot_afdo_count_p (profile_count count)
 {
   gcc_checking_assert (count.ipa ().initialized_p ());
-  return count.ipa ().to_gcov_type () >= afdo_hot_bb_threshod;
+  return count.ipa ().to_gcov_type () >= afdo_hot_bb_threshold;
 }
 
 /* Return true if location of STMT may be expressed by debug info.  */
@@ -319,12 +319,12 @@ public:
                                                    tree decl,
                                                    location_t location) const;
 
-  /* Merge profile of clones.  Note that cloning hasnt been performed when
+  /* Merge profile of clones.  Note that cloning hasn't been performed when
      we annotate the CFG (at this stage).  */
   void merge (function_instance *other,
              vec <function_instance *> &new_functions);
 
-  /* Look for inline instancs that was not realized and
+  /* Look for inline instances that was not realized and
      remove them while possibly merging them to offline variants.  */
   void offline_if_not_realized (vec <function_instance *> &new_functions);
 
@@ -603,7 +603,7 @@ static gcov_summary *afdo_profile_info;
 
 /* Scaling factor for afdo data.  Compared to normal profile
    AFDO profile counts are much lower, depending on sampling
-   frequency.  We scale data up to reudce effects of roundoff
+   frequency.  We scale data up to reduce effects of roundoff
    errors.  */
 
 static gcov_type afdo_count_scale = 1;
@@ -612,9 +612,9 @@ static gcov_type afdo_count_scale = 1;
 
 
 /* Return the original name of NAME: strip the suffix that starts
-   with '.' for names that are generetad after auto-profile pass.
+   with '.' for names that are generated after auto-profile pass.
    This is to match profiled names with the names in the IR at this stage.
-   Note that we only have to strip sufix and not in the middle.
+   Note that we only have to strip suffix and not in the middle.
    Caller is responsible for freeing RET.  */
 
 static char *
@@ -973,7 +973,7 @@ function_instance::get_function_instance_by_decl (unsigned 
lineno,
          dump_printf_loc (MSG_NOTE | MSG_PRIORITY_INTERNALS,
                           dump_user_location_t::from_location_t (location),
                           "auto-profile has mismatched function name %s"
-                          " insteed of %s at loc %i:%i",
+                          " instead of %s at loc %i:%i",
                           afdo_string_table->get_name (iter.first.second),
                           raw_symbol_name (decl),
                           lineno >> 16,
@@ -983,8 +983,8 @@ function_instance::get_function_instance_by_decl (unsigned 
lineno,
   return NULL;
 }
 
-/* Merge profile of OTHER to THIS.  Note that cloning hasnt been performed when
-   we annotate the CFG (at this stage).  */
+/* Merge profile of OTHER to THIS.  Note that cloning hasn't been performed
+   when we annotate the CFG (at this stage).  */
 
 void
 function_instance::merge (function_instance *other,
@@ -1017,8 +1017,8 @@ function_instance::merge (function_instance *other,
                f->dump_inline_stack (dump_file);
                fprintf (dump_file, "\n");
              }
-           /* We already merged outer part of the function acounting
-              the inlined calll; compensate.  */
+           /* We already merged outer part of the function accounting
+              the inlined call; compensate.  */
            for (function_instance *s = this; s; s = s->inlined_to ())
              {
                s->total_count_ -= f->total_count ();
@@ -1026,7 +1026,7 @@ function_instance::merge (function_instance *other,
              }
            other->callsites.erase (iter);
            function_instance::offline (f, new_functions);
-           /* Start from begining as merging might have offlined
+           /* Start from beginning as merging might have offlined
               some functions in the case of recursive inlining.  */
            iter = other->callsites.begin ();
          }
@@ -1164,7 +1164,7 @@ function_instance::offline_if_in_set (name_index_set 
&seen,
          }
        iter = callsites.erase (iter);
        function_instance::offline (f, new_functions);
-       /* Start from begining as merging might have offlined
+       /* Start from beginning as merging might have offlined
           some functions in the case of recursive inlining.  */
        iter = callsites.begin ();
       }
@@ -1176,7 +1176,7 @@ function_instance::offline_if_in_set (name_index_set 
&seen,
 }
 
 /* Try to check if inlined_fn can correspond to a call of function N.
-   Return non-zero if it correspons and 2 if renaming was done.  */
+   Return non-zero if it corresponds and 2 if renaming was done.  */
 
 static int
 match_with_target (cgraph_node *n,
@@ -1554,7 +1554,7 @@ function_instance::match (cgraph_node *node,
                          if (warning (OPT_Wauto_profile,
                                       "function contains two calls of the same"
                                       " relative location +%i,"
-                                      " discrimnator %i,"
+                                      " discriminator %i,"
                                       " that leads to lost auto-profile",
                                       loc >> 16,
                                       loc & 65535))
@@ -1980,7 +1980,7 @@ function_instance::remove_icall_target (tree fn, gcall 
*stmt)
 
 /* Offline all functions not defined in the current unit.
    We will not be able to early inline them.
-   Doint so early will get VPT decisions more realistic.  */
+   Doing so early will get VPT decisions more realistic.  */
 
 void
 autofdo_source_profile::offline_external_functions ()
@@ -2002,7 +2002,7 @@ autofdo_source_profile::offline_external_functions ()
        {
          free (n2);
          /* Watch for duplicate entries.
-            This seems to happen in practice and may be useful to distingush
+            This seems to happen in practice and may be useful to distinguish
             multiple static symbols of the same name, but we do not realy
             have a way to differentiate them in get_name lookup.  */
          int index = afdo_string_table->get_index (n1);
@@ -2017,7 +2017,7 @@ autofdo_source_profile::offline_external_functions ()
          continue;
        }
       if (dump_file)
-       fprintf (dump_file, "Adding rename removing clone suffxes %s -> %s\n",
+       fprintf (dump_file, "Adding rename removing clone suffixes %s -> %s\n",
                 n1, n2);
       int index = afdo_string_table->get_index (n2);
       if (index != -1)
@@ -2084,7 +2084,7 @@ autofdo_source_profile::offline_external_functions ()
   for (auto iter : to_symbol_name)
     {
       /* In case dwarf name was duplicated and later renamed,
-        handle both.  No more than one hop shold be needed.  */
+        handle both.  No more than one hop should be needed.  */
       int *newn = to_symbol_name.get (iter.second);
       if (newn)
        iter.second = *newn;
@@ -2107,7 +2107,7 @@ autofdo_source_profile::offline_external_functions ()
      that were not inlined.  */
   vec <function_instance *>&fns = duplicate_functions_;
   auto_vec <function_instance *, 20>fns2;
-  /* Poppulate worklist with all functions to process.  Processing
+  /* Populate worklist with all functions to process.  Processing
      may introduce new functions by offlining.  */
   for (auto const &iter : map_)
     {
@@ -2257,7 +2257,7 @@ void
 autofdo_source_profile::offline_unrealized_inlines ()
 {
   auto_vec <function_instance *>fns;
-  /* Poppulate worklist with all functions to process.  Processing
+  /* Populate worklist with all functions to process.  Processing
      may introduce new functions by offlining.  */
   for (auto const &iter : map_)
     {
@@ -2477,7 +2477,7 @@ autofdo_source_profile::update_inlined_ind_target (gcall 
*stmt,
   if (LOCATION_LOCUS (gimple_location (stmt)) == cfun->function_end_locus)
     {
       if (dump_file)
-       fprintf (dump_file, " bad locus (funciton end)\n");
+       fprintf (dump_file, " bad locus (function end)\n");
       return false;
     }
 
@@ -2635,8 +2635,8 @@ autofdo_source_profile::read ()
       function_instance *s = function_instance::read_function_instance (
           &stack, gcov_read_counter ());
       int fun_id = s->name ();
-      /* If function_instace with get_original_name (without the clone
-        suffix) exixts, merge the function instances.  */
+      /* If function_instance with get_original_name (without the clone
+        suffix) exits, merge the function instances.  */
       if (map_.count (fun_id) == 0)
        map_[fun_id] = s;
       else
@@ -2652,11 +2652,11 @@ autofdo_source_profile::read ()
       = MAX (((gcov_type)1 << (profile_count::n_bits - 10))
             / afdo_profile_info->sum_max, 1);
   afdo_profile_info->cutoff *= afdo_count_scale;
-  afdo_hot_bb_threshod
+  afdo_hot_bb_threshold
     = hot_frac
       ? afdo_profile_info->sum_max * afdo_count_scale / hot_frac
       : (gcov_type)profile_count::max_count;
-  set_hot_bb_threshold (afdo_hot_bb_threshod);
+  set_hot_bb_threshold (afdo_hot_bb_threshold);
   if (dump_file)
     fprintf (dump_file, "Max count in profile %" PRIu64 "\n"
                        "Setting scale %" PRIu64 "\n"
@@ -2667,7 +2667,7 @@ autofdo_source_profile::read ()
             (int64_t)afdo_count_scale,
             (int64_t)(afdo_profile_info->sum_max * afdo_count_scale),
             (int64_t)afdo_profile_info->cutoff,
-            (int64_t)afdo_hot_bb_threshod);
+            (int64_t)afdo_hot_bb_threshold);
   afdo_profile_info->sum_max *= afdo_count_scale;
   return true;
 }
@@ -2706,7 +2706,7 @@ 
autofdo_source_profile::get_function_instance_by_inline_stack (
                               (stack[i].location),
                              "auto-profile has no inlined function instance "
                              "for inlined call of %s at relative "
-                             " locaction +%i, discriminator %i\n",
+                             " location +%i, discriminator %i\n",
                             raw_symbol_name (stack[i - 1].decl),
                             stack[i].afdo_loc >> 16,
                             stack[i].afdo_loc & 65535);
@@ -3187,7 +3187,7 @@ afdo_propagate_edge (bool is_succ, bb_set *annotated_bb)
                 "unknown edges %i, known count ",
                 bb->index,
                 is_bb_annotated (bb, *annotated_bb) ? "(annotated)" : "",
-                is_succ ? "succesors" : "predecessors", num_edges,
+                is_succ ? "successors" : "predecessors", num_edges,
                 num_unknown_edges);
        total_known_count.dump (dump_file);
        fprintf (dump_file, " bb count ");
@@ -3396,7 +3396,7 @@ afdo_propagate_circuit (const bb_set &annotated_bb)
 }
 
 /* Propagate the basic block count and edge count on the control flow
-   graph. We do the propagation iteratively until stablize.  */
+   graph.  We do the propagation iteratively until stabilize.  */
 
 static void
 afdo_propagate (bb_set *annotated_bb)
@@ -3453,7 +3453,7 @@ cmp (const void *a, const void *b)
 
 struct scale
 {
-  /* Scale descired.  */
+  /* Scale desired.  */
   sreal scale;
   /* Weight for averaging computed from execution count of the edge
      scale originates from.  */
@@ -3739,7 +3739,7 @@ afdo_adjust_guessed_profile (bb_set *annotated_bb)
                 boundary = true;
                 if (dump_file)
                   {
-                    fprintf (dump_file, "    Annotated predecesor %i "
+                    fprintf (dump_file, "    Annotated predecessor %i "
                              "with count ", e->src->index);
                     e->src->count.dump (dump_file);
                     fprintf (dump_file, " edge count using static profile ");
@@ -3791,7 +3791,7 @@ afdo_adjust_guessed_profile (bb_set *annotated_bb)
                   continue;
                 if (dump_file)
                   fprintf (dump_file,
-                           "    edge %i->%i has annotated sucessor; count ",
+                           "    edge %i->%i has annotated successor; count ",
                            b->index, e->dest->index);
                 add_scale (&scales, annotated_count, e->count ());
               }
@@ -3800,7 +3800,7 @@ afdo_adjust_guessed_profile (bb_set *annotated_bb)
 
        /* If we failed to find annotated entry or exit edge,
          look for exit edges and scale profile so the dest
-         BB get all flow it needs.  This is inprecise because
+         BB get all flow it needs.  This is imprecise because
          the edge is not annotated and thus BB has more than
          one such predecessor.  */
        if (!scales.length ())
@@ -3815,7 +3815,7 @@ afdo_adjust_guessed_profile (bb_set *annotated_bb)
                       annotated_count -= AFDO_EINFO (e2)->get_count ();
                   if (dump_file)
                     fprintf (dump_file,
-                             "    edge %i->%i has annotated sucessor;"
+                             "    edge %i->%i has annotated successor;"
                              " upper bound count ",
                              b->index, e->dest->index);
                   add_scale (&scales, annotated_count, e->count ());
@@ -4138,7 +4138,7 @@ afdo_annotate_cfg (void)
   free_dominance_info (CDI_POST_DOMINATORS);
 }
 
-/* Use AutoFDO profile to annoate the control flow graph.
+/* Use AutoFDO profile to annotate the control flow graph.
    Return the todo flag.  */
 
 static unsigned int
diff --git a/gcc/cobol/lexio.cc b/gcc/cobol/lexio.cc
index 58cd3ff2d97b..d6056d0634ab 100644
--- a/gcc/cobol/lexio.cc
+++ b/gcc/cobol/lexio.cc
@@ -1682,9 +1682,9 @@ cdftext::map_file( int fd ) {
 bool lexio_dialect_mf();
 
 /*
- * A valid sequence area is 6 digits or blanks at the begining of the line that
- * contains PROGRAM-ID. Return NULL if no valid sequence area, else return
- * pointer to BOL.
+ * A valid sequence area is 6 digits or blanks at the beginning of the line
+ * that contains PROGRAM-ID. Return NULL if no valid sequence area, else
+ * return pointer to BOL.
  */
 static const char *
 valid_sequence_area( const char *data, const char *eodata ) {
diff --git a/gcc/cobol/util.cc b/gcc/cobol/util.cc
index 32add9f99544..3a01e867aa73 100644
--- a/gcc/cobol/util.cc
+++ b/gcc/cobol/util.cc
@@ -2288,7 +2288,7 @@ class temp_loc_t {
  * this is where we are.
  *
  * Because we can't reliably instantiate it as a forward-declared template
- * function, and because the paramters are variadic, we can't use a template
+ * function, and because the parameters are variadic, we can't use a template
  * function or call one.  So, a macro.
  */
 
diff --git a/gcc/config/arc/arc.cc b/gcc/config/arc/arc.cc
index 5c34d9c78907..258d10acacb5 100644
--- a/gcc/config/arc/arc.cc
+++ b/gcc/config/arc/arc.cc
@@ -8278,7 +8278,7 @@ hwloop_optimize (hwloop_info loop)
   /* Insert the loop end label before the last instruction of the
      loop.  */
   emit_label_after (end_label, loop->last_insn);
-  /* Make sure we mark the begining and end label as used.  */
+  /* Make sure we mark the beginning and end label as used.  */
   LABEL_NUSES (loop->end_label)++;
   LABEL_NUSES (loop->start_label)++;
 
diff --git a/gcc/config/nds32/nds32-utils.cc b/gcc/config/nds32/nds32-utils.cc
index bbd9dfaba812..e31b44c53477 100644
--- a/gcc/config/nds32/nds32-utils.cc
+++ b/gcc/config/nds32/nds32-utils.cc
@@ -41,7 +41,7 @@
 namespace nds32 {
 
 /* Get the rtx in the PATTERN field of an insn.  If INSN is not an insn,
-   the funciton doesn't change anything and returns it directly.  */
+   the function doesn't change anything and returns it directly.  */
 rtx
 extract_pattern_from_insn (rtx insn)
 {
diff --git a/gcc/except.cc b/gcc/except.cc
index 518095ca572e..646928764998 100644
--- a/gcc/except.cc
+++ b/gcc/except.cc
@@ -2566,7 +2566,7 @@ maybe_add_nop_after_section_switch (void)
                }
 
              /* We visit only labels from cold section.  We should never hit
-                begining of the insn stream here.  */
+                beginning of the insn stream here.  */
              insn = PREV_INSN (insn);
            }
        }
diff --git a/gcc/fortran/trans-expr.cc b/gcc/fortran/trans-expr.cc
index ac85b762c7fe..b549a62880e2 100644
--- a/gcc/fortran/trans-expr.cc
+++ b/gcc/fortran/trans-expr.cc
@@ -8347,7 +8347,7 @@ gfc_conv_procedure_call (gfc_se * se, gfc_symbol * sym,
        }
 
       /* Character strings are passed as two parameters, a length and a
-        pointer - except for Bind(c) and c_ptrs which only passe the pointer.
+        pointer - except for Bind(c) and c_ptrs which only pass the pointer.
         An unlimited polymorphic formal argument likewise does not
         need the length.  */
       if (parmse.string_length != NULL_TREE
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index b5d0f759f144..39e9fde93002 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -7887,7 +7887,7 @@ out:
 }
 
 /* This routine reads lines from IN file, adds C++ style comments
-   at the begining of each line and writes result into OUT.  */
+   at the beginning of each line and writes result into OUT.  */
 
 static void
 insert_comments (const char *file_in, const char *file_out)
diff --git a/gcc/ipa-inline.cc b/gcc/ipa-inline.cc
index 1f2287da8967..a9da0b571dbb 100644
--- a/gcc/ipa-inline.cc
+++ b/gcc/ipa-inline.cc
@@ -1971,7 +1971,7 @@ speculation_useful_p (struct cgraph_edge *e, bool 
anticipate_inlining)
 
   gcc_assert (e->speculative && !e->indirect_unknown_callee);
 
-  /* Even if calll statement is not hot, we can still have useful speculation
+  /* Even if call statement is not hot, we can still have useful speculation
      in cases where a lot of time is spent is callee.
      Do not check maybe_hot_p.  */
   if (!e->count.nonzero_p ())
diff --git a/gcc/jit/docs/_build/texinfo/libgccjit.texi 
b/gcc/jit/docs/_build/texinfo/libgccjit.texi
index 5852070153a5..0d172b36574c 100644
--- a/gcc/jit/docs/_build/texinfo/libgccjit.texi
+++ b/gcc/jit/docs/_build/texinfo/libgccjit.texi
@@ -16418,7 +16418,7 @@ in your email (along with the host triple that the 
tests were run on).
 
 A good patch should contain the information listed in the
 gcc contribution guide linked to above; for a @code{jit} patch, the patch
-shold contain:
+should contain:
 
 @quotation
 
diff --git a/gcc/jit/docs/internals/index.rst b/gcc/jit/docs/internals/index.rst
index 50efebda13b4..e6311000cec8 100644
--- a/gcc/jit/docs/internals/index.rst
+++ b/gcc/jit/docs/internals/index.rst
@@ -358,7 +358,7 @@ in your email (along with the host triple that the tests 
were run on).
 
 A good patch should contain the information listed in the
 gcc contribution guide linked to above; for a ``jit`` patch, the patch
-shold contain:
+should contain:
 
   * the code itself (for example, a new API entrypoint will typically
     touch ``libgccjit.h`` and ``.c``, along with support code in
diff --git a/gcc/m2/gm2-compiler/M2Check.mod b/gcc/m2/gm2-compiler/M2Check.mod
index a717147039bf..5b3970f044ab 100644
--- a/gcc/m2/gm2-compiler/M2Check.mod
+++ b/gcc/m2/gm2-compiler/M2Check.mod
@@ -615,7 +615,7 @@ BEGIN
          (* We need to create top level error message first.  *)
          tinfo^.error := NewError (tinfo^.token) ;
          (* The parameters to MetaString4 in buildError4 must match the order
-            of paramters passed to ParameterTypeCompatible.  *)
+            of parameters passed to ParameterTypeCompatible.  *)
          s := MetaString4 (tinfo^.format,
                            tinfo^.procedure,
                            tinfo^.formal, tinfo^.actual,
diff --git a/gcc/rust/backend/rust-tree.cc b/gcc/rust/backend/rust-tree.cc
index b86c3c81125b..797ae959f624 100644
--- a/gcc/rust/backend/rust-tree.cc
+++ b/gcc/rust/backend/rust-tree.cc
@@ -4882,7 +4882,7 @@ fold_builtin_source_location (location_t loc)
            }
          else if (strcmp (n, "_M_function_name") == 0)
            {
-             const char *name = "todo: add funciton name here";
+             const char *name = "todo: add function name here";
 
              // if (current_function_decl)
              // name = cxx_printable_name (current_function_decl, 2);
diff --git a/gcc/rust/resolve/rust-late-name-resolver-2.0.cc 
b/gcc/rust/resolve/rust-late-name-resolver-2.0.cc
index 96b38f48e4e4..3a1ff475fae7 100644
--- a/gcc/rust/resolve/rust-late-name-resolver-2.0.cc
+++ b/gcc/rust/resolve/rust-late-name-resolver-2.0.cc
@@ -252,7 +252,7 @@ Late::visit (AST::SelfParam &param)
 
   DefaultResolver::visit (param);
   // FIXME: this location should be a bit off
-  // ex: would point to the begining of "mut self" instead of the "self"
+  // ex: would point to the beginning of "mut self" instead of the "self"
   std::ignore = ctx.values.insert (Identifier ("self", param.get_locus ()),
                                   param.get_node_id ());
 }
diff --git a/gcc/testsuite/gfortran.dg/interface_16.f90 
b/gcc/testsuite/gfortran.dg/interface_16.f90
index 1cad75f3c43e..fe456866c212 100644
--- a/gcc/testsuite/gfortran.dg/interface_16.f90
+++ b/gcc/testsuite/gfortran.dg/interface_16.f90
@@ -1,7 +1,7 @@
 ! { dg-do compile }
 ! This tests the fix for PR32634, in which the generic interface
 ! in foo_pr_mod was given the original rather than the local name.
-! This meant that the original name had to be used in the calll
+! This meant that the original name had to be used in the call
 ! in foo_sub.
 !
 ! Contributed by Salvatore Filippone <[email protected]>
diff --git a/gcc/tree-ssa-loop-ivcanon.cc b/gcc/tree-ssa-loop-ivcanon.cc
index ca6295c7de2f..cc9c99abb5df 100644
--- a/gcc/tree-ssa-loop-ivcanon.cc
+++ b/gcc/tree-ssa-loop-ivcanon.cc
@@ -1539,7 +1539,7 @@ tree_unroll_loops_completely (bool may_increase_size, 
bool unroll_outer, bool cu
 
   estimate_numbers_of_iterations (cfun);
 
-  /* Mark all innermost loop at the begining.  */
+  /* Mark all innermost loop at the beginning.  */
   for (auto loop : loops_list (cfun, LI_FROM_INNERMOST))
     {
       if (!loop->inner)
diff --git a/gcc/tree-vect-slp.cc b/gcc/tree-vect-slp.cc
index 658ad6dc2579..a0fd43b22fba 100644
--- a/gcc/tree-vect-slp.cc
+++ b/gcc/tree-vect-slp.cc
@@ -11548,7 +11548,7 @@ vectorizable_slp_permutation_1 (vec_info *vinfo, 
gimple_stmt_iterator *gsi,
       return 0;
     }
 
-  /* Set REPEATING_P to true if the permutations are cylical wrt UNPACK_FACTOR
+  /* Set REPEATING_P to true if the permutations are cyclical wrt UNPACK_FACTOR
      and if we can generate the vectors in a vector-length agnostic way.
      This requires UNPACK_STEP == NUNITS / UNPACK_FACTOR to be known at
      compile time.

Reply via email to