On Wed, 2005-01-26 at 12:26 -0800, David S. Miller wrote:
> On Wed, 26 Jan 2005 22:47:48 +1100
> Nick Piggin <[EMAIL PROTECTED]> wrote:
> 
> > So you shouldn't even need that runtime check there I think.
> > The #if was just a small space saving, but you could simply
> > remove that and be done with it I think. Or have I missed
> > something?
> 
> For the architectures where it is a constant "1", keeping
> the check there makes GCC not output any code more than
> a NULL pointer return.  I figured that would be desirable :)

True, and those with a constant something else should get that
runtime if optimized away. However this is still penalising sparc64,
if only by an imperceptible amount!

It looks like the following condition may do the trick, do you think?
Seems to do the right thing in a simple test file, anyway.

#if !defined(PTRS_PER_XXX) || (PTRS_PER_XXX != 1)





Reply via email to