aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2016-10-14 11:54:32 +0200
committerMartin Liska <marxin@gcc.gnu.org>2016-10-14 09:54:32 +0000
commita766d4d74da96bb308f22fd5c9a607740f76c2b9 (patch)
tree648929aa753753d3f27c6630f7000ed2b5d5e34d /gcc/fold-const.h
parent57c4fbc64b6c15c43b60a7943422c9ff7010694d (diff)
downloadgcc-a766d4d74da96bb308f22fd5c9a607740f76c2b9.zip
gcc-a766d4d74da96bb308f22fd5c9a607740f76c2b9.tar.gz
gcc-a766d4d74da96bb308f22fd5c9a607740f76c2b9.tar.bz2
Support only \0-terminated string in c_getstr and return
* fold-const.c (c_getstr): Support of properly \0-terminated string constants. New argument is added. * fold-const.h: New argument is added. From-SVN: r241152
Diffstat (limited to 'gcc/fold-const.h')
-rw-r--r--gcc/fold-const.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.h b/gcc/fold-const.h
index 637e46b..bc22c88 100644
--- a/gcc/fold-const.h
+++ b/gcc/fold-const.h
@@ -182,7 +182,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);
+extern const char *c_getstr (tree, unsigned HOST_WIDE_INT *strlen = NULL);
/* Return OFF converted to a pointer offset type suitable as offset for
POINTER_PLUS_EXPR. Use location LOC for this conversion. */