Re: 2.3.47 imac build?

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Sun Feb 27 2000 - 13:13:18 EST


Paul Mackerras <paulus@linuxcare.com> said:

[...]

> In general there's no particular reason why a function named `memcpy' in
> the kernel should have the same prototype (or even the same behaviour) as
> a function named `memcpy' in a userland program, which is why we use
> -fno-builtin.

The C standard specifically includes memcpy, and standard functions
certainly are fair game for the compiler to implement as builtins by the
same standard.

And then there is the minor issue of programmers seeing "memcpy" and
expecting it to work as they are accustomed to. Not honoring that behaviour
is a excelent way of inviting all kind of nasty, hard to find bugs.

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

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



This archive was generated by hypermail 2b29 : Tue Feb 29 2000 - 21:00:17 EST