Re: Add st[pr]ncpy to stmt_kills_ref_p

2017-04-30 Thread Marc Glisse
On Sun, 30 Apr 2017, Martin Sebor wrote: On 04/29/2017 01:17 AM, Marc Glisse wrote: Hello, this patch seems rather trivial, once one knows that those functions always write exactly n characters (they fill with 0 as needed at the end). Nice! Now it just needs to be made to work the other way

Re: Add st[pr]ncpy to stmt_kills_ref_p

2017-04-30 Thread Martin Sebor
On 04/29/2017 01:17 AM, Marc Glisse wrote: Hello, this patch seems rather trivial, once one knows that those functions always write exactly n characters (they fill with 0 as needed at the end). Nice! Now it just needs to be made to work the other way around too, so the dead str{,n}cpy calls i

Re: Add st[pr]ncpy to stmt_kills_ref_p

2017-04-29 Thread Richard Biener
On April 29, 2017 9:17:12 AM GMT+02:00, Marc Glisse wrote: >Hello, > >this patch seems rather trivial, once one knows that those functions >always write exactly n characters (they fill with 0 as needed at the >end). > >Bootstrap+regtest on powerpc64le-unknown-linux-gnu. OK. Richard. >2017-05-

Add st[pr]ncpy to stmt_kills_ref_p

2017-04-29 Thread Marc Glisse
Hello, this patch seems rather trivial, once one knows that those functions always write exactly n characters (they fill with 0 as needed at the end). Bootstrap+regtest on powerpc64le-unknown-linux-gnu. 2017-05-02 Marc Glisse PR tree-optimization/80487 gcc/ * tree-ssa-alia