aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-02-28 11:10:44 +0100
committerJakub Jelinek <jakub@redhat.com>2021-02-28 11:12:57 +0100
commitd3805e6d575752141888dc29af7f0337df8a2f72 (patch)
treedbf285b05dd478a7094e9e81c57bd6e87179efca /gcc/c-family
parentec9dc4fa0803cb85ae0b981ca0d6a406e8f6669c (diff)
downloadgcc-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/c-family')
-rw-r--r--gcc/c-family/c-attribs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-family/c-attribs.c b/gcc/c-family/c-attribs.c
index ae31e4c..c1f652d 100644
--- a/gcc/c-family/c-attribs.c
+++ b/gcc/c-family/c-attribs.c
@@ -3343,7 +3343,7 @@ handle_malloc_attribute (tree *node, tree name, tree args, int flags,
error ("%qE attribute argument 1 must take a pointer "
"type as its first argument", name);
inform (DECL_SOURCE_LOCATION (dealloc),
- "refernced symbol declared here" );
+ "referenced symbol declared here");
*no_add_attrs = true;
return NULL_TREE;
}
@@ -3356,7 +3356,7 @@ handle_malloc_attribute (tree *node, tree name, tree args, int flags,
error ("%qE attribute argument 1 must take a pointer type "
"as its first argument; have %qT", name, argtype);
inform (DECL_SOURCE_LOCATION (dealloc),
- "referenced symbol declared here" );
+ "referenced symbol declared here");
*no_add_attrs = true;
return NULL_TREE;
}