Hum, saw this as a question on stackoverflow.com. For what it's worth, the volatile and memory clobber are used because all the atomic functions must imply barriers. The stack pointer is clobbered to prevent GCC from using variables as a offset from it. Clobbering flags is not necessary, already implied.
Hum, saw this as a question on stackoverflow.com. For what it's worth, the volatile and memory clobber are used because all the atomic functions must imply barriers. The stack pointer is clobbered to prevent GCC from using variables as a offset from it. Clobbering flags is not necessary, already implied.