[PATCH] Remove some string2.h optimizations for gcc 3.0+
Ulrich Drepper
drepper@redhat.com
Mon Jan 28 19:32:00 GMT 2002
Jakub Jelinek <jakub@redhat.com> writes:
> 2002-01-23 Jakub Jelinek <jakub@redhat.com>
>
> * string/bits/string2.h (__mempcpy): For gcc 3.0+, don't use
> __mempcpy_small but instead use __builtin_memcpy ( , , n) + n for
> short lengths and constant src.
> (strcpy): Don't optimize for gcc 3.0+.
> * (__stpcpy): For gcc 3.0+, don't use
> __stpcpy_small but instead use __builtin_strcpy (, src) + strlen (src)
> for short string literal src.
I've applied this now. Thanks,
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list