Re: [PATCH] rcu: avoid checking for constant

From: Eric Dumazet
Date: Thu Jan 12 2012 - 11:14:37 EST


Le jeudi 12 janvier 2012 Ã 17:08 +0100, Jan Engelhardt a Ãcrit :

> Maybe, maybe naah. The kernel relying on gcc's -O2 mode to do constant
> value analysis through and into inline functions does not sound too
> great. The compiler could change on the next moonphase. In fact, one
> can't use clang -O2 because of this. With my patch, one can again use
> clang -O2 [with respect to kfree_rcu].

Unless whole kernel can be compiled with -O0, its really some noise.



--
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/