diff options
author | Jeff Law <law@redhat.com> | 2018-09-29 10:06:09 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2018-09-29 10:06:09 -0600 |
commit | 7d583f4259a56c9054c28e883c375f9c57f8755d (patch) | |
tree | 797b7466a6780a7072c673f67d18031bf368e779 /gcc/ada/gcc-interface/misc.c | |
parent | 23bce99cbe7016a04e14c2163ed3fe6a5a64f4e2 (diff) | |
download | gcc-7d583f4259a56c9054c28e883c375f9c57f8755d.zip gcc-7d583f4259a56c9054c28e883c375f9c57f8755d.tar.gz gcc-7d583f4259a56c9054c28e883c375f9c57f8755d.tar.bz2 |
builtins.c (unterminated_array): Pass in c_strlen_data * to c_strlen rather than just a tree *.
* builtins.c (unterminated_array): Pass in c_strlen_data * to
c_strlen rather than just a tree *.
(c_strlen): Change NONSTR argument to a c_strlen_data pointer.
Update recursive calls appropriately. If caller did not provide a
suitable data pointer, create a local one. When a non-terminated
string is discovered, bubble up information about the string via the
c_strlen_data object.
* builtins.h (c_strlen): Update prototype.
(c_strlen_data): New structure.
* gimple-fold.c (get_range_strlen): Update calls to c_strlen.
For a type 2 call, if c_strlen indicates a non-terminated string
use the length of the non-terminated string.
(gimple_fold_builtin_stpcpy): Update calls to c_strlen.
From-SVN: r264712
Diffstat (limited to 'gcc/ada/gcc-interface/misc.c')
0 files changed, 0 insertions, 0 deletions