Messages in this thread | | | Date | Sun, 27 Feb 2000 17:46:20 -0800 | From | "David S. Miller" <> | Subject | Re: PPC should not use -fno-builtin (was Re: 2.3.47 imac build?) |
| |
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/
| |