This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: add strnlen to libiberty (was Re: Assembly output optimisations)
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