[PATCH] shut up warnings in bits/string2.h
Ulrich Drepper
drepper@cygnus.com
Wed Dec 8 00:34:00 GMT 1999
Jakub Jelinek <jakub@redhat.com> writes:
> All the inlines where I changed this are invoked from macros which guard it
> by something like this:
> __builtin_constant_p (n) && (n) <= 16
Yep.
> gets compiled with -O2 -m32 by gcc 2.96 (but similarly by egcs 1.1.2) into:
> foo: save %sp, -224, %sp
> sethi %hi(.LLC0+1), %o0
> or %o0, %lo(.LLC0+1), %o0
> add %o0, -1, %o5
> sub %o0, %o5, %o0
> cmp %o0, 1
> bne .LL145
> mov %i0, %o0
> mov 115, %o1
> [...]
This certainly is a SPARC problem. Maybe some other platform, but not
x86 and presumably not m68k.
--
---------------. 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