diff options
author | Martin Sebor <msebor@redhat.com> | 2018-01-26 16:47:22 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-01-26 09:47:22 -0700 |
commit | a011292a9e0c4fc64738237f01a0fd03ff07a6ae (patch) | |
tree | ef201c6dce0f918f5e1e748439aec5cc4cf0f004 /gcc/loop-init.c | |
parent | f91edfc4e593505431d975b3e8512cde5bb63b9e (diff) | |
download | gcc-a011292a9e0c4fc64738237f01a0fd03ff07a6ae.zip gcc-a011292a9e0c4fc64738237f01a0fd03ff07a6ae.tar.gz gcc-a011292a9e0c4fc64738237f01a0fd03ff07a6ae.tar.bz2 |
PR tree-optimization/83896 - ice in get_string_len on a call to strlen with
PR tree-optimization/83896 - ice in get_string_len on a call to strlen with
non-constant length
gcc/ChangeLog:
PR tree-optimization/83896
* tree-ssa-strlen.c (get_string_len): Rename...
(get_string_cst_length): ...to this. Return HOST_WIDE_INT.
Avoid assuming length is constant.
(handle_char_store): Use HOST_WIDE_INT for string length.
gcc/testsuite/ChangeLog:
PR tree-optimization/83896
* gcc.dg/strlenopt-43.c: New test.
From-SVN: r257100
Diffstat (limited to 'gcc/loop-init.c')
0 files changed, 0 insertions, 0 deletions