PR middle-end/85369 - no -Wstringop-overflow for a strcpy / stpcpy call with a nonstr...
commitdf6e8b42569f96e2533d09c8a3d0b6f6c047def0
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 May 2018 22:24:43 +0000 (30 22:24 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 30 May 2018 22:24:43 +0000 (30 22:24 +0000)
tree2e32fd6836340af4986b31910a2a79d18e676a48
parentc7a12c913e8c85eed995e4f77345bb8b66d8125d
PR middle-end/85369 - no -Wstringop-overflow for a strcpy / stpcpy call with a nonstring pointer when providing movstr pattern

gcc/ChangeLog:

PR middle-end/85369
* builtins.c (expand_builtin_stpcpy_1): New function.
(expand_builtin_stpcpy): Call it, and call maybe_warn_nonstring_arg
only if the former succeeds.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260976 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c