Skip to content

Commit 6e62483

Browse files
committed
Fix various comment typos
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.
1 parent ab015c2 commit 6e62483

File tree

15 files changed

+28
-27
lines changed

15 files changed

+28
-27
lines changed

gcc/auto-profile.cc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ along with GCC; see the file COPYING3. If not see
100100
significantly form one inline instance to another and from the
101101
offline version.
102102
103-
This is controlled by -fauto-profile-inlinig and is independent
103+
This is controlled by -fauto-profile-inlining and is independent
104104
of -fearly-inlining.
105105
106106
Phase 4: In AFDO pass.
@@ -128,7 +128,7 @@ along with GCC; see the file COPYING3. If not see
128128
considered cols. */
129129
gcov_type afdo_hot_bb_threshod = -1;
130130

131-
/* Return ture if COUNT is possiby hot. */
131+
/* Return true if COUNT is possibly hot. */
132132
bool
133133
maybe_hot_afdo_count_p (profile_count count)
134134
{
@@ -372,7 +372,7 @@ class function_instance
372372
removed_icall_target_ = true;
373373
}
374374

375-
/* Reutrn true if function is removed from indir target list. */
375+
/* Return true if function is removed from indir target list. */
376376
bool
377377
removed_icall_target ()
378378
{
@@ -506,7 +506,7 @@ class function_instance
506506
to it. */
507507
bool realized_;
508508

509-
/* Ture if function is in worklist for merging/offlining. */
509+
/* True if function is in worklist for merging/offlining. */
510510
bool in_worklist_;
511511

512512
/* Pointer to outer function instance or NULL if this
@@ -1090,7 +1090,7 @@ function_instance::merge (function_instance *other,
10901090
}
10911091

10921092
/* Make inline function FN offline.
1093-
If tolevel function of same name already exists, then merge profiles.
1093+
If toplevel function of same name already exists, then merge profiles.
10941094
Otherwise turn FN toplevel. Return true if new toplevel function
10951095
was introduced.
10961096
If new toplevel functions are created and NEW_FUNCTIONS != NULL,
@@ -1641,7 +1641,7 @@ function_instance::match (cgraph_node *node,
16411641
unsigned int start_location = get_combined_location
16421642
(DECL_STRUCT_FUNCTION (node->decl)->function_start_locus, node->decl);
16431643
/* When outputting code to builtins location we use line number 0.
1644-
craeate_gcov is stupid and hapilly computes offsets across files.
1644+
create_gcov is stupid and happily computes offsets across files.
16451645
Silently ignore it. */
16461646
unsigned int zero_location
16471647
= ((unsigned)(1-DECL_SOURCE_LINE (node->decl))) << 16;
@@ -2093,11 +2093,11 @@ autofdo_source_profile::offline_external_functions ()
20932093
seen.add (iter.first);
20942094
}
20952095

2096-
/* Now process all tolevel (offline) function instances.
2096+
/* Now process all toplevel (offline) function instances.
20972097
20982098
If instance has no definition in this translation unit,
20992099
first offline all inlined functions which are defined here
2100-
(so we do not lose porfile due to cross-module inlining
2100+
(so we do not lose profile due to cross-module inlining
21012101
done by link-time optimizers).
21022102
21032103
If instance has a definition, look into all inlined functions
@@ -2697,7 +2697,7 @@ autofdo_source_profile::get_function_instance_by_inline_stack (
26972697
if (s == NULL)
26982698
{
26992699
/* afdo inliner extends the stack by last entry with unknown
2700-
location while chekcing if function was inlined during train run.
2700+
location while checking if function was inlined during train run.
27012701
We do not want to print diagnostics about every function
27022702
which is not inlined. */
27032703
if (s && dump_enabled_p () && stack[i].location != UNKNOWN_LOCATION)
@@ -3441,7 +3441,7 @@ cmp (const void *a, const void *b)
34413441
return 0;
34423442
}
34433443

3444-
/* To scalle a connected component of graph we collect desired scales of
3444+
/* To scale a connected component of graph we collect desired scales of
34453445
basic blocks on the boundary and then compute a robust average. */
34463446

34473447
struct scale

gcc/auto-profile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ extern void remove_afdo_speculative_target (cgraph_edge *);
3939
considered cols. */
4040
extern gcov_type afdo_hot_bb_threshold;
4141

42-
/* Return ture if COUNT is possiby hot. */
42+
/* Return true if COUNT is possibly hot. */
4343
extern bool maybe_hot_afdo_count_p (profile_count count);
4444

4545
#endif /* AUTO_PROFILE_H */

gcc/cfgexpand.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ along with GCC; see the file COPYING3. If not see
9090
struct ssaexpand SA;
9191

9292
/* This variable holds the currently expanded gimple statement for purposes
93-
of comminucating the profile info to the builtin expanders. */
93+
of communicating the profile info to the builtin expanders. */
9494
gimple *currently_expanding_gimple_stmt;
9595

9696
static rtx expand_debug_expr (tree);
@@ -834,8 +834,8 @@ add_scope_conflicts_2 (vars_ssa_cache &cache, tree name,
834834
{
835835
gcc_assert (TREE_CODE (name) == SSA_NAME);
836836

837-
/* Querry the cache for the mapping of addresses that are referendd by
838-
ssa name NAME. Querrying it will fill in it. */
837+
/* Query the cache for the mapping of addresses that are referenced by
838+
ssa name NAME. Querying it will fill in it. */
839839
bitmap_iterator bi;
840840
unsigned i;
841841
const_bitmap bmap = cache (name);

gcc/fold-const.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see
2525
@@ This would also make life easier when this technology is used
2626
@@ for cross-compilers. */
2727

28-
/* The entry points in this file are fold, size_int_wide and size_binop.
28+
/* The entry points in this file are fold, size_int and size_binop.
2929

3030
fold takes a tree as argument and returns a simplified tree.
3131

gcc/gimple.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ extern size_t const gimple_ops_offset_[];
15451545
extern enum gimple_statement_structure_enum const gss_for_code_[];
15461546

15471547
/* This variable holds the currently expanded gimple statement for purposes
1548-
of comminucating the profile info to the builtin expanders. */
1548+
of communicating the profile info to the builtin expanders. */
15491549
extern gimple *currently_expanding_gimple_stmt;
15501550

15511551
size_t gimple_size (enum gimple_code code, unsigned num_ops = 0);

gcc/gimplify.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1280,7 +1280,8 @@ build_stack_save_restore (gcall **save, gcall **restore)
12801280
1, tmp_var);
12811281
}
12821282

1283-
/* Generate IFN_ASAN_MARK call that poisons shadow of a for DECL variable. */
1283+
/* Generate IFN_ASAN_MARK call that poisons shadow memory of the DECL
1284+
variable. */
12841285

12851286
static tree
12861287
build_asan_poison_call_expr (tree decl)

gcc/ipa-devirt.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1801,7 +1801,7 @@ add_type_duplicate (odr_type val, tree type)
18011801
before we can pass them to odr_types_equivalent_p (PR lto/83121). */
18021802
if (lto_location_cache::current_cache)
18031803
lto_location_cache::current_cache->apply_location_cache ();
1804-
/* As a special case we stream mangles names of integer types so we can see
1804+
/* As a special case we stream mangled names of integer types so we can see
18051805
if they are believed to be same even though they have different
18061806
representation. Avoid bogus warning on mismatches in these. */
18071807
if (TREE_CODE (type) != INTEGER_TYPE

gcc/ipa-param-manipulation.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1672,7 +1672,7 @@ ::ipa_param_body_adjustments (ipa_param_adjustments *adjustments,
16721672
in ADJUSTMENTS. FNDECL designates the new function clone which is being
16731673
modified. OLD_FNDECL is the function of which FNDECL is a clone (and which
16741674
at the time of invocation still share DECL_ARGUMENTS). ID is the
1675-
copy_body_data structure driving the wholy body copying process. VARS is a
1675+
copy_body_data structure driving the whole body copying process. VARS is a
16761676
pointer to the head of the list of new local variables, TREE_MAP is the map
16771677
that drives tree substitution in the cloning process. */
16781678

gcc/ipa-profile.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ ipa_propagate_frequency_1 (struct cgraph_node *node, void *data)
625625
return edge != NULL;
626626
}
627627

628-
/* Return ture if NODE contains hot calls. */
628+
/* Return true if NODE contains hot calls. */
629629

630630
bool
631631
contains_hot_call_p (struct cgraph_node *node)

gcc/ipa-prop.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ struct ipa_cst_ref_desc
130130
/* Linked list of duplicates created when call graph edges are cloned. */
131131
struct ipa_cst_ref_desc *next_duplicate;
132132
/* Number of references in IPA structures, IPA_UNDESCRIBED_USE if the value
133-
if out of control. */
133+
is out of control. */
134134
int refcount;
135135
};
136136

0 commit comments

Comments
 (0)