diff options
author | Bernd Edlinger <bernd.edlinger@hotmail.de> | 2018-08-16 22:38:04 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-08-16 16:38:04 -0600 |
commit | 4148b00dbc46a461915602b2b3489d69fd211c22 (patch) | |
tree | 6824c0132908bd3df28f7e8852acad2c0f4eaafd /gcc/expr.h | |
parent | 5c6a2bf2720fd6412a2d63a3a82da5af0c18f824 (diff) | |
download | gcc-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/expr.h')
-rw-r--r-- | gcc/expr.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -288,7 +288,7 @@ expand_normal (tree exp) /* Return the tree node and offset if a given argument corresponds to a string constant. */ -extern tree string_constant (tree, tree *); +extern tree string_constant (tree, tree *, tree * = NULL); /* Two different ways of generating switch statements. */ extern int try_casesi (tree, tree, tree, tree, rtx, rtx, rtx, profile_probability); |