This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Gcc builtin functions used by glibc not available on mips
On Thu, Feb 07, 2002 at 01:37:13PM -0800, Richard Henderson wrote:
> On Wed, Feb 06, 2002 at 11:38:26PM -0800, H . J . Lu wrote:
> > +void zero (void *x)
> > +{
> > + __builtin_memset (x, 0, 4);
>
> This test isn't interesting at all. __builtin_memset is *always*
> built in, but depending on the characteristics of the target we
> will decide whether or not to inline this based on how many insns
> we need to generate in order to inline any particular invocation.
Yes. IMHO the right test is:
#ifndef DO_VERSIONING -> must use loop
if architecture doesn't needs relocation to be done before it can call
local functions -> must be loop (mips, anything else?)
otherwise use memset
Jakub