diff options
author | Martin Sebor <msebor@redhat.com> | 2018-06-25 20:46:45 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2018-06-25 14:46:45 -0600 |
commit | b36bc89e32a52ac41b6b68d834c7692b890741e6 (patch) | |
tree | 5b89ff8ce0de4a470d9653841c70fa1d0d32d042 /gcc/go | |
parent | 03cd7d3fa2d756cb4fb7d62d4aba277893932ace (diff) | |
download | gcc-b36bc89e32a52ac41b6b68d834c7692b890741e6.zip gcc-b36bc89e32a52ac41b6b68d834c7692b890741e6.tar.gz gcc-b36bc89e32a52ac41b6b68d834c7692b890741e6.tar.bz2 |
PR tree-optimization/86204 - wrong strlen result after prior strnlen
gcc/ChangeLog:
PR tree-optimization/86204
* tree-ssa-strlen.c (handle_builtin_strlen): Avoid storing
a strnlen result if it's less than the length of the string.
gcc/testsuite/ChangeLog:
PR tree-optimization/86204
* gcc.dg/strlenopt-46.c: New test.
From-SVN: r262114
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions