From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulrich Drepper To: Jakub Jelinek Cc: libc-hacker@sourceware.cygnus.com Subject: Re: [PATCH] shut up warnings in bits/string2.h Date: Wed, 08 Dec 1999 00:34:00 -0000 Message-id: References: <19991207220811.M515@mff.cuni.cz> <19991208092350.A545@mff.cuni.cz> X-SW-Source: 1999-12/msg00020.html Jakub Jelinek 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 `------------------------