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:

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

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