diff options
author | Martin Sebor <msebor@redhat.com> | 2019-03-19 17:45:34 +0000 |
---|---|---|
committer | Martin Sebor <msebor@gcc.gnu.org> | 2019-03-19 11:45:34 -0600 |
commit | e3ba46bd52f9bd6db8788384dd186c9ba5963129 (patch) | |
tree | 5f4bc3c12380a6768864bf49672216e0763845a4 /gcc/go | |
parent | 2214085affb80feb19e79882ee769e28c2a85a5a (diff) | |
download | gcc-e3ba46bd52f9bd6db8788384dd186c9ba5963129.zip gcc-e3ba46bd52f9bd6db8788384dd186c9ba5963129.tar.gz gcc-e3ba46bd52f9bd6db8788384dd186c9ba5963129.tar.bz2 |
PR tree-optimization/89644 - False-positive -Warray-bounds diagnostic on strncpy
gcc/ChangeLog:
PR tree-optimization/89644
* tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
arrays in determining sequence sizes in strncpy and stpncpy.
gcc/testsuite/ChangeLog:
PR tree-optimization/89644
* gcc.dg/Wstringop-truncation-8.c: New test.
From-SVN: r269807
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions