aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.h
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2018-08-16 22:38:04 +0000
committerJeff Law <law@gcc.gnu.org>2018-08-16 16:38:04 -0600
commit4148b00dbc46a461915602b2b3489d69fd211c22 (patch)
tree6824c0132908bd3df28f7e8852acad2c0f4eaafd /gcc/gimple-fold.h
parent5c6a2bf2720fd6412a2d63a3a82da5af0c18f824 (diff)
downloadgcc-4148b00dbc46a461915602b2b3489d69fd211c22.zip
gcc-4148b00dbc46a461915602b2b3489d69fd211c22.tar.gz
gcc-4148b00dbc46a461915602b2b3489d69fd211c22.tar.bz2
builtins.c (c_strlen): Add new parameter eltsize.
* builtins.c (c_strlen): Add new parameter eltsize. Use it for determining how to count the elements. * builtins.h (c_strlen): Adjust prototype. * expr.c (string_constant): Add new parameter mem_size. Set *mem_size appropriately. * expr.h (string_constant): Adjust protoype. * gimple-fold.c (get_range_strlen): Add new parameter eltsize. * gimple-fold.h (get_range_strlen): Adjust prototype. * gimple-ssa-sprintf.c (get_string_length): Add new parameter eltsize. (format_string): Call get_string_length with eltsize. From-SVN: r263607
Diffstat (limited to 'gcc/gimple-fold.h')
-rw-r--r--gcc/gimple-fold.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-fold.h b/gcc/gimple-fold.h
index 04e9bfa..e3fad83 100644
--- a/gcc/gimple-fold.h
+++ b/gcc/gimple-fold.h
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see
extern tree create_tmp_reg_or_ssa_name (tree, gimple *stmt = NULL);
extern tree canonicalize_constructor_val (tree, tree);
extern tree get_symbol_constant_value (tree);
-extern bool get_range_strlen (tree, tree[2], bool = false);
+extern bool get_range_strlen (tree, tree[2], unsigned = 1, bool = false);
extern tree get_maxval_strlen (tree, int);
extern void gimplify_and_update_call_from_tree (gimple_stmt_iterator *, tree);
extern bool fold_stmt (gimple_stmt_iterator *);