This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3 RFC] PATCH to memory asm ops in atomicity.h


On Tue, Dec 16, 2003 at 06:41:05PM -0500, Jason Merrill wrote:
> This patch is a followup to
> 
>   http://gcc.gnu.org/ml/gcc-patches/2003-01/msg00108.html
> 
> which has been sitting in my tree for months.  It makes memory I/O explicit
> by adding input/output operands for *__mem to the patterns that don't have
> them yet and removing the memory clobbers, which are thereby no longer
> necessary.

Why are you doing this?  If these operations are used as 
synchronization primitives, then a memory clobber *is*
necessary as a barrier to memory read/write movement.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]