This is the mail archive of the
libc-hacker@sourceware.cygnus.com
mailing list for the glibc project.
Re: "memory" clobber in synchronization primitives
- To: Roland McGrath <roland@frob.com>
- Subject: Re: "memory" clobber in synchronization primitives
- From: Ulrich Drepper <drepper@cygnus.com>
- Date: 31 Aug 1998 16:28:51 -0700
- Cc: GNU libc hacker <libc-hacker@gnu.org>
- References: <199808311904.PAA12326@baalperazim.frob.com>
- Reply-To: drepper@cygnus.com (Ulrich Drepper)
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 `------------------------