lkml.org 
[lkml]   [2000]   [Feb]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.063 / U:0.868 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site