This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: [PATCH] shut up warnings in bits/string2.h


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   `------------------------

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