Re: Possible GCC contamination of Linux

Horst von Brand (vonbrand@inf.utfsm.cl)
Wed, 22 Sep 1999 15:22:54 -0400


"Richard B. Johnson" <root@chaos.analogic.com> said:
> On Tue, 21 Sep 1999, Kurt Garloff wrote:
> > On Mon, Sep 20, 1999 at 02:43:07PM -0400, Richard B. Johnson wrote:
> > > I compiled with -fno-builtins, in addition to what you advise, and found
> > > that abs() was an indefined symbol. I added an abs() macro to
> > > ../linux/include/stddef.h, i.e.,

[...]

> > Wait: What about the speed of builtin memcpy and the routines provided by
> > the kernel? I think I remember a discussion about his. Anybody?

> memcpy() and other routines that can be optimized for certain CPUs are
> in the architecture-specific directories. The only built-in being used
> that I found was abs().

If the kernel really has better implementations of those than the compiler,
why not port them into the compiler as builtins and be done with it? Having
them around twice sounds like a waste to me...

-- 
Dr. Horst H. von Brand                       mailto:vonbrand@inf.utfsm.cl
Departamento de Informatica                     Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria              +56 32 654239
Casilla 110-V, Valparaiso, Chile                Fax:  +56 32 797513

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/