Indeed. I was just discussing compiler issues, not asm atomicity
issues.
> If volatile causes asm "m" constraints to always use the original memory
> location, that would be quite useful but it is not documented to do so.
As far as I know, it doesn't and isn't.
However, the volatile qualifier is defined in the ISO C standard. If
gcc breaks the restrictions on what it is allowed to do with volatile
objects implied by that definition, then it has a bug. If the same
restrictions don't also apply for the C expressions in inline asm
constraints, then that would also be a bug, since it would be
worthless as a feature. But I haven't noticed any problems in this
area with recent versions of gcc/egcs.
David Wragg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/