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

2017-04-29 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80487 Marc Glisse changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

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

2017-04-29 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80487 --- Comment #3 from Marc Glisse --- 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 PR t

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

2017-04-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80487 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

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

2017-04-22 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80487 --- Comment #1 from Marc Glisse --- In tree-ssa-alias.c, stmt_kills_ref_p knows about memcpy but not about strncpy (I had no idea until I read the man page just now that strncpy filled the buffer with 0s). Since the 2 arguments of strncpy are not