re PR tree-optimization/83075 (Invalid strncpy optimization)
authorJakub Jelinek <jakub@redhat.com>
Thu, 7 Dec 2017 23:55:18 +0000 (00:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 7 Dec 2017 23:55:18 +0000 (00:55 +0100)
commit9b6c97373a0ca04b5888a1c4ca6519c94388da50
tree3df943309df2540a9af1e2dc0cd7ef3408202d85
parent38b28c6eb28463feadfc7e18d553f8f2327a2219
re PR tree-optimization/83075 (Invalid strncpy optimization)

PR tree-optimization/83075
* gcc.dg/tree-ssa/strncpy-2.c: Use size_t instead of unsigned, add
separate function with noipa attribute to also verify behavior when
optimizers don't know the sizes and aliasing, verify resulting sizes
and array content.  Add -Wstringop-overflow to dg-options.
* gcc.dg/tree-ssa/strncat.c: Likewise.

From-SVN: r255485
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/strncat.c
gcc/testsuite/gcc.dg/tree-ssa/strncpy-2.c