]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Some typo fixes (mostly comment but some messages too)
authorJakub Jelinek <jakub@redhat.com>
Thu, 11 Dec 2025 18:34:20 +0000 (19:34 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 11 Dec 2025 18:34:20 +0000 (19:34 +0100)
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  <jakub@redhat.com>

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.

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

index cf7a219133617dcd63330d3c06a3c6ac6b1e05a4..5f97f2e7de1b4ea48401e0e961433b6f88fe058d 100644 (file)
@@ -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
index 58cd3ff2d97b168f4804c278f6320ab70eaf0889..d6056d0634abef555480549c1a11d329eca4f287 100644 (file)
@@ -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 ) {
index 32add9f99544983fb7684d134d85bb394107c165..3a01e867aa7385402b39737dae6dc3389edc197c 100644 (file)
@@ -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.
  */
 
index 5c34d9c789075e93adda3569bb4544f54d079176..258d10acacb50e563cb4c2206d15ced54a8a774d 100644 (file)
@@ -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)++;
 
index bbd9dfaba812c62bbad87af298c795d994dcf357..e31b44c534770a9d3be034e4336db97cd4466d52 100644 (file)
@@ -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)
 {
index 518095ca572eac85b4365a0bbc4faf5f2cd42b44..6469287649980c739f0ebc2b2e779a5e32083a63 100644 (file)
@@ -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);
            }
        }
index ac85b762c7fecc1731c7721007eaf0885ea7e219..b549a62880e2be6912497ab50f5feb70703c8b24 100644 (file)
@@ -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
index b5d0f759f1449e4c894b80be9a34b9b2834af9ae..39e9fde93002031654cca366349de96490a5c864 100644 (file)
@@ -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)
index 1f2287da8967ab33d73f161a8814c62681ee36d0..a9da0b571dbbc3cbdc3a2940501f0f9f5f2f3ded 100644 (file)
@@ -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 ())
index 5852070153a536a690225c7b3d931899361f2f83..0d172b36574c04ce57904ed436219ab2279068d3 100644 (file)
@@ -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
 
index 50efebda13b4f0e4e6af6792a62dfb3707f68ce2..e6311000cec825018619c6561fd8c0db51f243eb 100644 (file)
@@ -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
index a717147039bffd355590ce57d825179f962a82e4..5b3970f044ab4f3df665b64dd5ff2249471b5f4c 100644 (file)
@@ -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,
index b86c3c81125b3ab8b54cd955bed42ef4582911fb..797ae959f6241d18b12a6b12d4e72f59a20fd20a 100644 (file)
@@ -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);
index 96b38f48e4e4b46520b08aaba384a466efff1260..3a1ff475fae79d4575caad4e10d9ad98b13c9328 100644 (file)
@@ -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 ());
 }
index 1cad75f3c43e798602fa361e621c16f8b99057e4..fe456866c212d4a6e63e9fdac1dd915ff4172221 100644 (file)
@@ -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 <salvatore.filippone@uniroma2.it>
index ca6295c7de2f5e82c32d429bb501d3e8394b56eb..cc9c99abb5dfa351061ebaddb23e9beadf5d302e 100644 (file)
@@ -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)
index 658ad6dc25798da2464bd91ac6194d4b711e6612..a0fd43b22fbabb0063fc2a77e4e2c0f173dfc10c 100644 (file)
@@ -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.