PR middle-end/80669 - Bad -Wstringop-overflow warnings for stpncpy
commitaca1a787dfd2093c691e6bf173ac708e94a88013
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 May 2017 16:06:41 +0000 (14 16:06 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 14 May 2017 16:06:41 +0000 (14 16:06 +0000)
treeff47219f310b04fdb7a37f135586d1f14bfd0c82
parente67d3d383449dc4680615e44098577f45944e4dc
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@248034 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtin-stpncpy.c [new file with mode: 0644]