On 05/19, Nick Piggin wrote: > > On Tue, May 18, 2010 at 08:47:53PM +0100, Jamie Lokier wrote: > > > > So there is probably no point putting the const attribute back, unless > > GCC has changed at this. > > > > It might be able to eliminate some duplicates if the asm inside > > current_thread_info() is consty enough, and duplicate ->task > > dereferences might be eliminated by strict-aliasing in some cases. > > I don't think it hurts to give more information even if the compiler > does not use it yet. Completely agreed. Personally, I think this patch makes sense even as documentation. And hopefully some time later gcc will be improved. Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html