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: [PATCH] genmodes: remove misleading use of strncpy


On Thu, Apr 19, 2012 at 02:31:37PM +0200, Richard Guenther wrote:
> That's better.  Or even cache the strlen result and use memcpy here
> as Jakub suggested.

tree-ssa-strlen.c will do that for you when optimizing in this case ;)

	Jakub


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