This is the mail archive of the gcc-patches@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]

Re: Add st[pr]ncpy to stmt_kills_ref_p


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 around
too, so the dead str{,n}cpy calls is eliminated:

I think I've seen related patches on the list, Prathamesh Kulkarni seems to be working on it.

--
Marc Glisse


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