Re: ilog2() problems with gcc-3.4.5

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 15, 2009 at 01:30:37PM -0800, Andrew Morton wrote:
> 
> My sparc64 gcc-3.4.5 cross-compiler has decided to start emitting calls
> to ____ilog2_NaN, due to
> 
>         eq_context->log_eq_size   = ilog2(eq->nent);
> 
> in drivers/net/mlx4/eq.c.  There's another reference coming out of
> drivers/net/mlx4/srq.s.
> 
> I guess this is a gcc bug - it's gone and decided that
> __builtin_constant_p(eq->nent) is true :(
> 
> We've had this __builtin_constant_p() bogon occur before now - it
> happened with one or two kmalloc() callsites on x86 for some gcc
> versions, but we seemed to make it go away by some means.

Googled a bit.
Seems to be influenced by use of -Os versus -O2.

	Sam
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux