Re: [PATCH] Fix the cpumask rewrite

From: James Bottomley
Date: Sat Jun 26 2004 - 14:35:43 EST


On Sat, 2004-06-26 at 14:11, Linus Torvalds wrote:
> It seems the pa-risc optimizer for gcc is somehow broken. I just checked
> on x86:
>
> #define test_bit(x,y) \
> (!!((1ul << x) & *(y)))
>
> int test(unsigned long *a)
> {
> while (test_bit(0, a));
> }

OK, this one definitely compiles to a non reaload loop on parisc. I
concede we need the volatile.

James


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/