Re: [PATCH 6/8] i386: bitops: Don't mark memory as clobbered unnecessarily

From: Andi Kleen
Date: Tue Jul 24 2007 - 15:43:14 EST


Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> writes:
>
> (Yes, the "asm volatile" may do so too, but it's very unclear what the
> "volatile" on the asm actually does, so ..)

Without the volatile they get completely optimized away :/
[tried that, cost a lot of debugging time -- empty string functions
cause a lot of strange side effects]

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