add strnlen to libiberty (was Re: Assembly output optimisations)

Ian Lance Taylor iant@google.com
Tue Aug 7 06:25:00 GMT 2012


On Mon, Aug 6, 2012 at 10:44 PM, Dimitrios Apostolou <jimis@gmx.net> wrote:
>
> What else is missing to make this patch appropriate for libiberty? Should I
> change the prolog in strnlen.c, since I only copied it intact from gnulib?

We generally try to avoid straight GPL source code without runtime
exception in libiberty, and I don't see a reason to bend that rule for
this trivial function.  I recommend that you write your own version
rather than copying it from elsewhere.

Ian



More information about the Gcc-patches mailing list