"memory" clobber in synchronization primitives
Ulrich Drepper
drepper@cygnus.com
Mon Aug 31 16:29:00 GMT 1998
Roland McGrath <roland@frob.com> writes:
> In the linuxthreads pt-machine.h file, the alpha, powerpc, and mips
> definitions of `testandset' use a "memory" clobber in addition to their
> output specs in their GCC `asm', but the i386 definition does not.
I agree that it makes sense to add the clobber and I did so. If
somebody disagrees let me know.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
More information about the Libc-hacker
mailing list