aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.h
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2018-09-14 01:49:38 +0000
committerJeff Law <law@gcc.gnu.org>2018-09-13 19:49:38 -0600
commitd01b568a78351beb6b693b613e6b48bcb2475eae (patch)
treebd7da348cd6459bb6656e42300e83dcf9f2ac2c2 /gcc/fold-const.h
parent9a9f692b6c0c8b93b7fda00c60c6e30c2e6551ce (diff)
downloadgcc-d01b568a78351beb6b693b613e6b48bcb2475eae.zip
gcc-d01b568a78351beb6b693b613e6b48bcb2475eae.tar.gz
gcc-d01b568a78351beb6b693b613e6b48bcb2475eae.tar.bz2
builtins.c (c_strlen): Handle not zero terminated STRING_CSTs correctly.
* builtins.c (c_strlen): Handle not zero terminated STRING_CSTs correctly. * fold-const.c (c_getstr): Fix function comment. Remove unused third argument. Fix range checks. * fold-const.h (c_getstr): Adjust protoype. * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid folding when string is constant but contains no NUL byte. From-SVN: r264301
Diffstat (limited to 'gcc/fold-const.h')
-rw-r--r--gcc/fold-const.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fold-const.h b/gcc/fold-const.h
index 1b9ccc0..ca6d47b 100644
--- a/gcc/fold-const.h
+++ b/gcc/fold-const.h
@@ -187,8 +187,7 @@ extern bool expr_not_equal_to (tree t, const wide_int &);
extern tree const_unop (enum tree_code, tree, tree);
extern tree const_binop (enum tree_code, tree, tree, tree);
extern bool negate_mathfn_p (combined_fn);
-extern const char *c_getstr (tree, unsigned HOST_WIDE_INT * = NULL,
- unsigned HOST_WIDE_INT * = NULL);
+extern const char *c_getstr (tree, unsigned HOST_WIDE_INT * = NULL);
extern wide_int tree_nonzero_bits (const_tree);
/* Return OFF converted to a pointer offset type suitable as offset for