diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-11-09 00:56:37 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-11-09 00:56:37 +0100 |
commit | dfea3d6fde2b62e76d06c5ab78db7931b5f4ba13 (patch) | |
tree | eb9d1a51051c51c7112160cd56f63b6a1956fe03 /gcc/tree-ssa-strlen.c | |
parent | a63d6356bebcf96c8931cad1dae50ce553db0df3 (diff) | |
download | gcc-dfea3d6fde2b62e76d06c5ab78db7931b5f4ba13.zip gcc-dfea3d6fde2b62e76d06c5ab78db7931b5f4ba13.tar.gz gcc-dfea3d6fde2b62e76d06c5ab78db7931b5f4ba13.tar.bz2 |
symtab.c: Fix comment typos.
* symtab.c: Fix comment typos.
* cgraphunit.c: Likewise.
* cgraph.h: Likewise.
* cgraphclones.c: Likewise.
* cgraph.c: Likewise.
* varpool.c: Likewise.
* tree-ssa-strlen.c: Likewise.
* ipa-sra.c: Likewise.
(scan_expr_access, check_all_callers_for_issues): Fix typo
in a dump message.
From-SVN: r277995
Diffstat (limited to 'gcc/tree-ssa-strlen.c')
-rw-r--r-- | gcc/tree-ssa-strlen.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/tree-ssa-strlen.c b/gcc/tree-ssa-strlen.c index 163be2d..15c0c45 100644 --- a/gcc/tree-ssa-strlen.c +++ b/gcc/tree-ssa-strlen.c @@ -1882,7 +1882,7 @@ handle_builtin_strlen (gimple_stmt_iterator *gsi) tree adj = fold_build2_loc (loc, MINUS_EXPR, TREE_TYPE (lhs), lhs, old); adjust_related_strinfos (loc, si, adj); - /* Use the constant minimim length as the lower bound + /* Use the constant minimum length as the lower bound of the non-constant length. */ wide_int min = wi::to_wide (old); wide_int max @@ -2145,7 +2145,7 @@ handle_builtin_strcpy (enum built_in_function bcode, gimple_stmt_iterator *gsi) strinfo *chainsi; /* If string length of src is unknown, use delayed length - computation. If string lenth of dst will be needed, it + computation. If string length of dst will be needed, it can be computed by transforming this strcpy call into stpcpy and subtracting dst from the return value. */ @@ -2665,7 +2665,7 @@ maybe_diag_stxncpy_trunc (gimple_stmt_iterator gsi, tree src, tree cnt) if (tree dstsize = compute_objsize (dst, 1)) { - /* The source length is uknown. Try to determine the destination + /* The source length is unknown. Try to determine the destination size and see if it matches the specified bound. If not, bail. Otherwise go on to see if it should be diagnosed for possible truncation. */ @@ -2764,7 +2764,7 @@ handle_builtin_stxncpy (built_in_function, gimple_stmt_iterator *gsi) } /* If the length argument was computed from strlen(S) for some string - S retrieve the strinfo index for the string (PSS->FIRST) alonng with + S retrieve the strinfo index for the string (PSS->FIRST) along with the location of the strlen() call (PSS->SECOND). */ stridx_strlenloc *pss = strlen_to_stridx->get (len); if (!pss || pss->first <= 0) @@ -3267,7 +3267,7 @@ handle_builtin_malloc (enum built_in_function bcode, gimple_stmt_iterator *gsi) /* Handle a call to memset. After a call to calloc, memset(,0,) is unnecessary. memset(malloc(n),0,n) is calloc(n,1). - return true when the call is transfomred, false otherwise. */ + return true when the call is transformed, false otherwise. */ static bool handle_builtin_memset (gimple_stmt_iterator *gsi, bool *zero_write) @@ -4463,7 +4463,7 @@ handle_store (gimple_stmt_iterator *gsi, bool *zero_write, const vr_values *rval statement and return to signal the caller that it shouldn't invalidate anything. - This is benefical for cases like: + This is beneficial for cases like: char p[20]; void foo (char *q) |