[PATCH] shut up warnings in bits/string2.h
Ulrich Drepper
drepper@cygnus.com
Tue Dec 7 23:41:00 GMT 1999
Jakub Jelinek <jakub@redhat.com> writes:
> This patch shuts up gcc 2.96 warnings about long switch expressions not
> converted to int.
Well, rth commented that this might fail for long strings. But those
strings must be string constants, not actual strings. And gcc (nor
any other compiler) will have support for strings of more than 2^32
character in length. So it should be possible to apply the patch.
> How does it work on other architectures?
Which functions? The generic functions should perform quite good.
The copying of constant strings work by moving immedate values which
is much faster.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
More information about the Libc-hacker
mailing list