On Mon, Feb 28, 2000 at 11:20:25AM +1100, Paul Mackerras wrote:
> 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).
Given that the System V Abi for the PowerPC (on page 6-38, figure 6-39)
mandates that size_t be an unsigned int, it is not terribly surprising. Of
course considering that the committee that came up with the System V ABI is
long since dead, it is kind of hard to change for 32-bit land (obviously 64 bit
land will have an different ABI).
-- Michael Meissner, Cygnus Solutions, a Red Hat company. PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA Work: meissner@redhat.com phone: +1 978-486-9304 Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482- 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:20 EST