PR middle-end/85369 - no -Wstringop-overflow for a strcpy / stpcpy call with a nonstr...
authorMartin Sebor <msebor@redhat.com>
Wed, 30 May 2018 22:24:43 +0000 (22:24 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Wed, 30 May 2018 22:24:43 +0000 (16:24 -0600)
commit3ce4cdb2f7ea5dfe464e2d5ddfe6b29c7411b104
tree2e32fd6836340af4986b31910a2a79d18e676a48
parent1ba9c854bb7031d8fd7e135ad89a49f7861edb81
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.

From-SVN: r260976
gcc/ChangeLog
gcc/builtins.c