Add st[pr]ncpy to stmt_kills_ref_p
authorMarc Glisse <marc.glisse@inria.fr>
Sat, 29 Apr 2017 14:39:25 +0000 (16:39 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Sat, 29 Apr 2017 14:39:25 +0000 (14:39 +0000)
commit4212aecdf8c4bd99b681fcfc2396844303bab39d
tree003459e0c47e58a983513c0fb523ccb389c52f19
parentfe75f73248425f0f4c0d2196811ce1d7afb9c09f
Add st[pr]ncpy to stmt_kills_ref_p

2017-04-29  Marc Glisse  <marc.glisse@inria.fr>

PR tree-optimization/80487
gcc/
* tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.

gcc/testsuite/
* gcc.dg/tree-ssa/strncpy-1.c: New file.

From-SVN: r247408
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/strncpy-1.c [new file with mode: 0644]
gcc/tree-ssa-alias.c