]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix various comment typos
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 Sep 2025 14:11:56 +0000 (16:11 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 Sep 2025 14:12:46 +0000 (16:12 +0200)
The following patch fixes various comment typos.

2025-09-30  Jakub Jelinek  <jakub@redhat.com>

gcc/
* auto-profile.h (maybe_hot_afdo_count_p): Fix comment typos,
possiby -> possibly and ture -> true.
* gimplify.cc (build_asan_poison_call_expr): Change "of a for"
to "memory of the" in a comment.
* ipa-devirt.cc (add_type_duplicate): Fix comment typo,
mangles -> mangled.
* auto-profile.cc: Fix comment typo, -fauto-profile-inlinig
-> -fauto-profile-inlining.
(maybe_hot_afdo_count_p): Fix comment typos, possiby -> possibly
and ture -> true.
(function_instance::removed_icall_target): Fix comment typo,
Reutrn -> Return.
(function_instance::in_worklist_): Fix comment typo, Ture -> True.
(function_instance::offline): Fix comment typo, tolevel -> toplevel.
(function_instance::match): Fix comment typo, craeate_gcov ->
create_gcov.
(autofdo_source_profile::offline_external_functions): Fix comment
typos, tolevel -> toplevel and porfile -> profile.
(autofdo_source_profile::get_function_instance_by_inline_stack): Fix
comment typo, chekcing -> checking.
(struct scale): Fix comment typo, scalle -> scale.
* gimple.h (currently_expanding_gimple_stmt): Fix comment typo,
comminucating -> communicating.
* tree.h (canonical_type_used_p): Fix comment typo, ture -> true.
* tree-ssa-alias.cc (types_equal_for_same_type_for_tbaa_p): Likewise.
* ipa-profile.cc (contains_hot_call_p): Likewise.
* cfgexpand.cc (add_scope_conflicts_2): Fix comment typos,
Querry -> Query, referendd -> referenced and Querrying -> Querying.
* ipa-param-manipulation.cc (currently_expanding_gimple_stmt): Fix
comment typo, comminucating -> communicating.
* ipa-prop.cc (ipa_cst_ref_desc::refcount): Fix comment typo,
if -> is.
* tree-if-conv.cc (version_loop_for_if_conversion): Fix comment typos,
porfile -> profile and confistency -> consistency.
* fold-const.cc: Change size_int_wide in comment to size_int as
size_int_wide doesn't exit for 21 years.
gcc/testsuite/
* gcc.dg/vect/tsvc/vect-tsvc-s1244.c (s1244): Fix comment typo,
ture -> true.
* gcc.dg/vect/tsvc/vect-tsvc-s2244.c (s2244): Likewise.

15 files changed:
gcc/auto-profile.cc
gcc/auto-profile.h
gcc/cfgexpand.cc
gcc/fold-const.cc
gcc/gimple.h
gcc/gimplify.cc
gcc/ipa-devirt.cc
gcc/ipa-param-manipulation.cc
gcc/ipa-profile.cc
gcc/ipa-prop.cc
gcc/testsuite/gcc.dg/vect/tsvc/vect-tsvc-s1244.c
gcc/testsuite/gcc.dg/vect/tsvc/vect-tsvc-s2244.c
gcc/tree-if-conv.cc
gcc/tree-ssa-alias.cc
gcc/tree.h

index 0b0ab4a99f56cc17d29e9afb0dbe24c1a68aa2e0..8c8d9bed8c519856ee0df5bf5b709dd9fd148163 100644 (file)
@@ -100,7 +100,7 @@ along with GCC; see the file COPYING3.  If not see
      significantly form one inline instance to another and from the
      offline version.
 
-     This is controlled by -fauto-profile-inlinig and is independent
+     This is controlled by -fauto-profile-inlining and is independent
      of -fearly-inlining.
 
    Phase 4: In AFDO pass.
@@ -128,7 +128,7 @@ along with GCC; see the file COPYING3.  If not see
    considered cols.  */
 gcov_type afdo_hot_bb_threshod = -1;
 
-/* Return ture if COUNT is possiby hot.  */
+/* Return true if COUNT is possibly hot.  */
 bool
 maybe_hot_afdo_count_p (profile_count count)
 {
@@ -372,7 +372,7 @@ public:
     removed_icall_target_ = true;
   }
 
-  /* Reutrn true if function is removed from indir target list.  */
+  /* Return true if function is removed from indir target list.  */
   bool
   removed_icall_target ()
   {
@@ -506,7 +506,7 @@ private:
      to it.  */
   bool realized_;
 
-  /* Ture if function is in worklist for merging/offlining.  */
+  /* True if function is in worklist for merging/offlining.  */
   bool in_worklist_;
 
   /* Pointer to outer function instance or NULL if this
@@ -1090,7 +1090,7 @@ function_instance::merge (function_instance *other,
 }
 
 /* Make inline function FN offline.
-   If tolevel function of same name already exists, then merge profiles.
+   If toplevel function of same name already exists, then merge profiles.
    Otherwise turn FN toplevel.  Return true if new toplevel function
    was introduced.
    If new toplevel functions are created and NEW_FUNCTIONS != NULL,
@@ -1641,7 +1641,7 @@ function_instance::match (cgraph_node *node,
   unsigned int start_location = get_combined_location
     (DECL_STRUCT_FUNCTION (node->decl)->function_start_locus, node->decl);
   /* When outputting code to builtins location we use line number 0.
-     craeate_gcov is stupid and hapilly computes offsets across files.
+     create_gcov is stupid and happily computes offsets across files.
      Silently ignore it.  */
   unsigned int zero_location
          = ((unsigned)(1-DECL_SOURCE_LINE (node->decl))) << 16;
@@ -2093,11 +2093,11 @@ autofdo_source_profile::offline_external_functions ()
        seen.add (iter.first);
     }
 
-  /* Now process all tolevel (offline) function instances.
+  /* Now process all toplevel (offline) function instances.
 
      If instance has no definition in this translation unit,
      first offline all inlined functions which are defined here
-     (so we do not lose porfile due to cross-module inlining
+     (so we do not lose profile due to cross-module inlining
      done by link-time optimizers).
 
      If instance has a definition, look into all inlined functions
@@ -2697,7 +2697,7 @@ autofdo_source_profile::get_function_instance_by_inline_stack (
       if (s == NULL)
        {
          /* afdo inliner extends the stack by last entry with unknown
-            location while chekcing if function was inlined during train run.
+            location while checking if function was inlined during train run.
             We do not want to print diagnostics about every function
             which is not inlined.  */
          if (s && dump_enabled_p () && stack[i].location != UNKNOWN_LOCATION)
@@ -3441,7 +3441,7 @@ cmp (const void *a, const void *b)
   return 0;
 }
 
-/* To scalle a connected component of graph we collect desired scales of
+/* To scale a connected component of graph we collect desired scales of
    basic blocks on the boundary and then compute a robust average.  */
 
 struct scale
index 639e263ef7a916aa2e3b83b30b2f9041ec5cb49a..3cce5f2152ca39305c1257ad44c40f1c1cecfb27 100644 (file)
@@ -39,7 +39,7 @@ extern void remove_afdo_speculative_target (cgraph_edge *);
    considered cols.  */
 extern gcov_type afdo_hot_bb_threshold;
 
-/* Return ture if COUNT is possiby hot.  */
+/* Return true if COUNT is possibly hot.  */
 extern bool maybe_hot_afdo_count_p (profile_count count);
 
 #endif /* AUTO_PROFILE_H */
index 8950294abb6004777fd8c8e126b29d91ec4f6a7f..5c3ba50862e9eb6f31e7f5a574d397e4d1d78f6e 100644 (file)
@@ -90,7 +90,7 @@ along with GCC; see the file COPYING3.  If not see
 struct ssaexpand SA;
 
 /* This variable holds the currently expanded gimple statement for purposes
-   of comminucating the profile info to the builtin expanders.  */
+   of communicating the profile info to the builtin expanders.  */
 gimple *currently_expanding_gimple_stmt;
 
 static rtx expand_debug_expr (tree);
@@ -834,8 +834,8 @@ add_scope_conflicts_2 (vars_ssa_cache &cache, tree name,
 {
   gcc_assert (TREE_CODE (name) == SSA_NAME);
 
-  /* Querry the cache for the mapping of addresses that are referendd by
-     ssa name NAME. Querrying it will fill in it.  */
+  /* Query the cache for the mapping of addresses that are referenced by
+     ssa name NAME.  Querying it will fill in it.  */
   bitmap_iterator bi;
   unsigned i;
   const_bitmap bmap = cache (name);
index fe7a5fee5e254bf9a9e088322b30f946a34cbb56..e8cfee81553e89e930bf40b1a123983a297d31e1 100644 (file)
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3.  If not see
   @@ This would also make life easier when this technology is used
   @@ for cross-compilers.  */
 
-/* The entry points in this file are fold, size_int_wide and size_binop.
+/* The entry points in this file are fold, size_int and size_binop.
 
    fold takes a tree as argument and returns a simplified tree.
 
index da32651ea0179ebb1c3fa2a2bd5968414bc9776b..0356bc52a5ba991c0eb7b76ac9a6dae925db685c 100644 (file)
@@ -1545,7 +1545,7 @@ extern size_t const gimple_ops_offset_[];
 extern enum gimple_statement_structure_enum const gss_for_code_[];
 
 /* This variable holds the currently expanded gimple statement for purposes
-   of comminucating the profile info to the builtin expanders.  */
+   of communicating the profile info to the builtin expanders.  */
 extern gimple *currently_expanding_gimple_stmt;
 
 size_t gimple_size (enum gimple_code code, unsigned num_ops = 0);
index 90096835665186e162e8dd928c764259a0762ddc..9c5aa0638b73fb9fde930e11ec75e23063759ba2 100644 (file)
@@ -1280,7 +1280,8 @@ build_stack_save_restore (gcall **save, gcall **restore)
                         1, tmp_var);
 }
 
-/* Generate IFN_ASAN_MARK call that poisons shadow of a for DECL variable.  */
+/* Generate IFN_ASAN_MARK call that poisons shadow memory of the DECL
+   variable.  */
 
 static tree
 build_asan_poison_call_expr (tree decl)
index 9953833e9247a722557a0e5c1be2242ec6ce89a7..c10d67f1e67405846d21ae10ac31dc69b4c1c59d 100644 (file)
@@ -1801,7 +1801,7 @@ add_type_duplicate (odr_type val, tree type)
      before we can pass them to odr_types_equivalent_p (PR lto/83121).  */
   if (lto_location_cache::current_cache)
     lto_location_cache::current_cache->apply_location_cache ();
-  /* As a special case we stream mangles names of integer types so we can see
+  /* As a special case we stream mangled names of integer types so we can see
      if they are believed to be same even though they have different
      representation.  Avoid bogus warning on mismatches in these.  */
   if (TREE_CODE (type) != INTEGER_TYPE
index 9b74fe24cc4d7e0a6b4177afc6c9fea7016a41b6..48788671903952d23061ec053c0c7b497ba2fc17 100644 (file)
@@ -1672,7 +1672,7 @@ ipa_param_body_adjustments
    in ADJUSTMENTS.  FNDECL designates the new function clone which is being
    modified.  OLD_FNDECL is the function of which FNDECL is a clone (and which
    at the time of invocation still share DECL_ARGUMENTS).  ID is the
-   copy_body_data structure driving the wholy body copying process.  VARS is a
+   copy_body_data structure driving the whole body copying process.  VARS is a
    pointer to the head of the list of new local variables, TREE_MAP is the map
    that drives tree substitution in the cloning process.  */
 
index 4d0a8c98fbdf41e0189911fb008aa3b548ac47fb..e4c0ff5fe3103d905681d8aad1808fcc16ba6df4 100644 (file)
@@ -625,7 +625,7 @@ ipa_propagate_frequency_1 (struct cgraph_node *node, void *data)
   return edge != NULL;
 }
 
-/* Return ture if NODE contains hot calls.  */
+/* Return true if NODE contains hot calls.  */
 
 bool
 contains_hot_call_p (struct cgraph_node *node)
index 84d4fb5db6748ae8adff3d6ff515cb94e9fa3d71..bf52ffe173812f187b975734020313aca684c887 100644 (file)
@@ -130,7 +130,7 @@ struct ipa_cst_ref_desc
   /* Linked list of duplicates created when call graph edges are cloned.  */
   struct ipa_cst_ref_desc *next_duplicate;
   /* Number of references in IPA structures, IPA_UNDESCRIBED_USE if the value
-     if out of control.  */
+     is out of control.  */
   int refcount;
 };
 
index 94a30412df81b9ace9718060c69efab4610b740c..3b76bb347828bb461c9c447249ac9d4e13d6419d 100644 (file)
@@ -9,7 +9,7 @@
 real_t s1244(struct args_t * func_args)
 {
 //    node splitting
-//    cycle with ture and anti dependency
+//    cycle with true and anti dependency
 
     initialise_arrays(__func__);
 
index 9b0ca7447dd3283de59207a7f820f0e712411095..277ebb83c60b70e8ac76e8ca8b940261d36dc465 100644 (file)
@@ -9,7 +9,7 @@
 real_t s2244(struct args_t * func_args)
 {
 //    node splitting
-//    cycle with ture and anti dependency
+//    cycle with true and anti dependency
 
     initialise_arrays(__func__);
 
index e96c89ea7918ff5c233d3b70962b0ecba5cf42cd..0bb3de9b13762d0424456616d18f56427d2fd1f4 100644 (file)
@@ -3444,7 +3444,7 @@ version_loop_for_if_conversion (class loop *loop, vec<gimple *> *preds)
     }
 
   initialize_original_copy_tables ();
-  /* At this point we invalidate porfile confistency until IFN_LOOP_VECTORIZED
+  /* At this point we invalidate profile consistency until IFN_LOOP_VECTORIZED
      is re-merged in the vectorizer.  */
   new_loop = loop_version (loop, cond, &cond_bb,
                           profile_probability::always (),
index 9b028e0404600fe1c9cf2d69f4fb49e8d5860f7e..76aac6f1c03246be24c5f10baaaaa02fa39c8010 100644 (file)
@@ -4167,7 +4167,7 @@ attr_fnspec::verify ()
     }
 }
 
-/* Return ture if TYPE1 and TYPE2 will always give the same answer
+/* Return true if TYPE1 and TYPE2 will always give the same answer
    when compared with other types using same_type_for_tbaa.  */
 
 static bool
@@ -4191,7 +4191,7 @@ types_equal_for_same_type_for_tbaa_p (tree type1, tree type2,
     return TYPE_CANONICAL (type1) == TYPE_CANONICAL (type2);
 }
 
-/* Return ture if TYPE1 and TYPE2 will always give the same answer
+/* Return true if TYPE1 and TYPE2 will always give the same answer
    when compared with other types using same_type_for_tbaa.  */
 
 bool
index b1d143416666a0c1d781c0d3ef586971133a0dde..4c8ad9842ff03dd0d8ddcf9eb72e6282a7133d8d 100644 (file)
@@ -5960,7 +5960,7 @@ tree_code_for_canonical_type_merging (enum tree_code code)
   return code;
 }
 
-/* Return ture if get_alias_set care about TYPE_CANONICAL of given type.
+/* Return true if get_alias_set care about TYPE_CANONICAL of given type.
    We don't define the types for pointers, arrays and vectors.  The reason is
    that pointers are handled specially: ptr_type_node accesses conflict with
    accesses to all other pointers.  This is done by alias.cc.