PR middle-end/80669 - Bad -Wstringop-overflow warnings for stpncpy
authorMartin Sebor <msebor@redhat.com>
Sun, 14 May 2017 16:06:41 +0000 (16:06 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Sun, 14 May 2017 16:06:41 +0000 (10:06 -0600)
commitc6c0251911ac280500d939cdeae87536727e5971
treeff47219f310b04fdb7a37f135586d1f14bfd0c82
parentd6d4d7701a4c40f4c46904292456b76502e1ae63
PR middle-end/80669 - Bad -Wstringop-overflow warnings for stpncpy

gcc/ChangeLog:

PR middle-end/80669
* builtins.c (expand_builtin_stpncpy): Simplify.

gcc/testsuite/ChangeLog:

PR middle-end/80669
* gcc.dg/builtin-stpncpy.c: New test.

From-SVN: r248034
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtin-stpncpy.c [new file with mode: 0644]