Re: PPC should not use -fno-builtin (was Re: 2.3.47 imac build?)

From: David S. Miller (davem@redhat.com)
Date: Sun Feb 27 2000 - 20:46:20 EST


   From: Paul Mackerras <paulus@linuxcare.com>
   Date: Mon, 28 Feb 2000 11:20:25 +1100

   On Mon, 28 Feb 2000, Jeff Garzik wrote:

> So... you are choosing to lose extremely valuable optimizations because
> of a few prototype warnings? This logic seems bogus to me... it also

   OK, the problem is that gcc expects size_t to be an unsigned int. We use
   unsigned long for size_t in the kernel because we want it to be 64 bits on
   64-bit PPCs (like it is on the other 64-bit platforms). Gcc doesn't like a
   prototype for memcpy which has an unsigned long for the 3rd argument
   (unless you use -fno-builtin).

So conditionalize the size_t type in the asm/types.h header based
upon __ppc64__ or whatever.

This argument you make is sort of non-sensical to me :-)

Later,
David S. Miller
davem@redhat.com

-
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:18 EST