diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-11-23 12:44:51 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-11-23 12:44:51 +0100 |
commit | 956d615d66d06a9810000a5b7941be3ee1da7f8e (patch) | |
tree | c83ab08bf31cd219c19b4ce43217b5a462726223 /gcc/ipa-devirt.c | |
parent | 8d0d7a63019a7d67943d1867348673e3ca3dc824 (diff) | |
download | gcc-956d615d66d06a9810000a5b7941be3ee1da7f8e.zip gcc-956d615d66d06a9810000a5b7941be3ee1da7f8e.tar.gz gcc-956d615d66d06a9810000a5b7941be3ee1da7f8e.tar.bz2 |
ipa-fnsummary.c: Fix comment typos.
* ipa-fnsummary.c: Fix comment typos.
* ipa-ref.h: Likewise.
* ipa-predicate.h: Likewise.
* ipa-split.c: Likewise.
* ipa-inline-analysis.c: Likewise.
* ipa-predicate.c: Likewise.
* ipa-devirt.c: Likewise.
* ipa-icf.h: Likewise.
* profile-count.c: Likewise.
* ipa-icf.c: Likewise.
(sem_function::equals_wpa): Fix typos in dump messages.
* ipa-icf-gimple.h: Fix comment typos.
* ipa-inline-transform.c: Likewise.
* ipa-polymorphic-call.c: Likewise.
* ipa-fnsummary.h: Likewise.
* ipa-inline.c: Likewise.
(dump_inline_stats): Fix typo in debug dump message.
* profile-count.h: Fix comment typos.
From-SVN: r278643
Diffstat (limited to 'gcc/ipa-devirt.c')
-rw-r--r-- | gcc/ipa-devirt.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/gcc/ipa-devirt.c b/gcc/ipa-devirt.c index d1c462a..c158d3c9 100644 --- a/gcc/ipa-devirt.c +++ b/gcc/ipa-devirt.c @@ -216,7 +216,7 @@ struct GTY(()) odr_type_d bool all_derivations_known; /* Did we report ODR violation here? */ bool odr_violated; - /* Set when virtual table without RTTI previaled table with. */ + /* Set when virtual table without RTTI prevailed table with. */ bool rtti_broken; /* Set when the canonical type is determined using the type name. */ bool tbaa_enabled; @@ -655,7 +655,7 @@ compare_virtual_tables (varpool_node *prevailing, varpool_node *vtable) end2 = !vtable->iterate_reference (n2, ref2); /* !DECL_VIRTUAL_P means RTTI entry; - We warn when RTTI is lost because non-RTTI previals; we silently + We warn when RTTI is lost because non-RTTI prevails; we silently accept the other case. */ while (!end2 && (end1 @@ -767,7 +767,7 @@ compare_virtual_tables (varpool_node *prevailing, varpool_node *vtable) class_type->odr_violated = true; - /* Complain about size mismatch. Either we have too many virutal + /* Complain about size mismatch. Either we have too many virtual functions or too many virtual table pointers. */ if (end1 || end2) { @@ -861,7 +861,7 @@ warn_odr (tree t1, tree t2, tree st1, tree st2, if (!warn || !TYPE_NAME(TYPE_MAIN_VARIANT (t1))) return; - /* ODR warnings are output druing LTO streaming; we must apply location + /* ODR warnings are output during LTO streaming; we must apply location cache for potential warnings to be output correctly. */ if (lto_location_cache::current_cache) lto_location_cache::current_cache->apply_location_cache (); @@ -920,7 +920,7 @@ warn_odr (tree t1, tree t2, tree st1, tree st2, *warned = true; } -/* Return ture if T1 and T2 are incompatible and we want to recusively +/* Return true if T1 and T2 are incompatible and we want to recursively dive into them from warn_type_mismatch to give sensible answer. */ static bool @@ -941,7 +941,7 @@ type_mismatch_p (tree t1, tree t2) This is hard to do in general. We basically handle the common cases. If LOC1 and LOC2 are meaningful locations, use it in the case the types - themselves do no thave one.*/ + themselves do not have one. */ void warn_types_mismatch (tree t1, tree t2, location_t loc1, location_t loc2) @@ -1006,7 +1006,7 @@ warn_types_mismatch (tree t1, tree t2, location_t loc1, location_t loc2) n1 = DECL_NAME (n1); if (n2 && TREE_CODE (n2) == TYPE_DECL) n2 = DECL_NAME (n2); - /* Most of the time, the type names will match, do not be unnecesarily + /* Most of the time, the type names will match, do not be unnecessarily verbose. */ if (n1 != n2) inform (loc_t1, @@ -1132,7 +1132,7 @@ warn_types_mismatch (tree t1, tree t2, location_t loc1, location_t loc2) if (types_odr_comparable (t1, t2) /* We make assign integers mangled names to be able to handle signed/unsigned chars. Accepting them here would however lead to - confussing message like + confusing message like "type ‘const int’ itself violates the C++ One Definition Rule" */ && TREE_CODE (t1) != INTEGER_TYPE && types_same_for_odr (t1, t2)) @@ -1149,7 +1149,7 @@ warn_types_mismatch (tree t1, tree t2, location_t loc1, location_t loc2) inform (loc_t2, "the incompatible type is defined here"); } -/* Return true if T should be ignored in TYPE_FIELDS for ODR comparsion. */ +/* Return true if T should be ignored in TYPE_FIELDS for ODR comparison. */ static bool skip_in_fields_list_p (tree t) @@ -2047,7 +2047,7 @@ odr_type_violation_reported_p (tree type) return get_odr_type (type, false)->odr_violated; } -/* Add TYPE od ODR type hash. */ +/* Add TYPE of ODR type hash. */ void register_odr_type (tree type) @@ -2056,7 +2056,7 @@ register_odr_type (tree type) odr_hash = new odr_hash_type (23); if (type == TYPE_MAIN_VARIANT (type)) { - /* To get ODR warings right, first register all sub-types. */ + /* To get ODR warnings right, first register all sub-types. */ if (RECORD_OR_UNION_TYPE_P (type) && COMPLETE_TYPE_P (type)) { @@ -2157,7 +2157,7 @@ dump_type_inheritance_graph (FILE *f) continue; /* To aid ODR warnings we also mangle integer constants but do - not consinder duplicates there. */ + not consider duplicates there. */ if (TREE_CODE (odr_types[i]->type) == INTEGER_TYPE) continue; @@ -2987,7 +2987,7 @@ class final_warning_record *final_warning_records; If INCLUDE_BASES is true, walk also base types of OUTER_TYPES containing OTR_TYPE and include their virtual method. This is useful for types possibly in construction or destruction where the virtual table may - temporarily change to one of base types. INCLUDE_DERIVER_TYPES make + temporarily change to one of base types. INCLUDE_DERIVED_TYPES make us to walk the inheritance graph for all derivations. If COMPLETEP is non-NULL, store true if the list is complete. @@ -3672,7 +3672,7 @@ ipa_devirt (void) itself. This may need to be revisited once we add further ways to use - the may edges, but it is a resonable thing to do right now. */ + the may edges, but it is a reasonable thing to do right now. */ if ((e->indirect_info->param_index == -1 || (!opt_for_fn (n->decl, flag_devirtualize_speculatively) |