This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/80487] redundant memset/strncpy calls not eliminated


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80487

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
Author: glisse
Date: Sat Apr 29 14:39:25 2017
New Revision: 247408

URL: https://gcc.gnu.org/viewcvs?rev=247408&root=gcc&view=rev
Log:
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.

Added:
    trunk/gcc/testsuite/gcc.dg/tree-ssa/strncpy-1.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-alias.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]