diff options
author | Jakub Jelinek <jakub@redhat.com> | 2021-02-28 11:10:44 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2021-02-28 11:12:57 +0100 |
commit | d3805e6d575752141888dc29af7f0337df8a2f72 (patch) | |
tree | dbf285b05dd478a7094e9e81c57bd6e87179efca /gcc/tree-ssa-alias.c | |
parent | ec9dc4fa0803cb85ae0b981ca0d6a406e8f6669c (diff) | |
download | gcc-d3805e6d575752141888dc29af7f0337df8a2f72.zip gcc-d3805e6d575752141888dc29af7f0337df8a2f72.tar.gz gcc-d3805e6d575752141888dc29af7f0337df8a2f72.tar.bz2 |
typos: Fix various typos - mainly misspelled reference* [PR99304]
The PR is about a typo in handle_malloc_attribute diagnostic message,
but grepping around I found many other cases and while fixing those I've
noticed a couple of other typos.
2021-02-28 Jakub Jelinek <jakub@redhat.com>
PR c/99304
* ipa.c (symbol_table::remove_unreachable_nodes): Fix a comment
typo - referneced -> referenced.
* tree.c (component_ref_size): Fix comment typo -
refernce -> reference.
* tree-ssa-alias.c (access_path_may_continue_p): Fix comment typo -
traling -> trailing.
(aliasing_component_refs_p): Fix comment typos -
refernce -> reference and refernece -> reference and
traling -> trailing.
(nonoverlapping_refs_since_match_p): Fix comment typo -
referneces -> references.
* doc/invoke.texi (--param modref-max-bases): Fix a typo -
referneces -> references.
gcc/c-family/
* c-attribs.c (handle_malloc_attribute): Fix a typo in inform
message - refernced -> referenced. Remove superfluous space before
closing paren of function calls.
gcc/lto/
* lto-symtab.c (lto_symtab_prevailing_virtual_decl): Fix comment
typos - refernced -> referenced and
devirtualizaiton -> devirtualization.
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r-- | gcc/tree-ssa-alias.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index f2adf4c..ebb3f49 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -1111,7 +1111,7 @@ aliasing_component_refs_walk (tree ref1, tree type1, tree base1, REF1_ALIAS_SET is the alias set of REF1. BASE_TYPE2 is type of base2. END_STRUCT_REF2 is non-NULL if there is - a traling array access in the TBAA part of access path2. + a trailing array access in the TBAA part of access path2. BASE2_ALIAS_SET is the alias set of base2. */ bool @@ -1183,8 +1183,8 @@ aliasing_component_refs_p (tree ref1, trailing array. We generally discard the segment after end_of_tbaa_ref however - we need to be careful in case it contains zero sized or traling array. - These may happen after refernce to union and in this case we need to + we need to be careful in case it contains zero sized or trailing array. + These may happen after reference to union and in this case we need to not disambiguate type puning scenarios. We set: @@ -1195,7 +1195,7 @@ aliasing_component_refs_p (tree ref1, end_struct_ref1 to point the trailing reference (if it exists in range base....end_of_tbaa_ref - end_struct_past_end1 is true if this traling refernece occurs in + end_struct_past_end1 is true if this trailing reference occurs in end_of_tbaa_ref...actual_ref. */ base1 = ref1; while (handled_component_p (base1)) @@ -1674,7 +1674,7 @@ nonoverlapping_refs_since_match_p (tree match1, tree ref1, seen_unmatched_ref_p = true; /* We can not maintain the invariant that bases are either same or completely disjoint. However we can still recover - from type based alias analysis if we reach referneces to + from type based alias analysis if we reach references to same sizes. We do not attempt to match array sizes, so just finish array walking and look for component refs. */ if (ntbaa1 < 0 || ntbaa2 < 0) |