This is the mail archive of the gcc-help@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: Are arrays guaranteed to be affected by a "memory" clobber?


On 11 June 2015 at 22:38, Sebastian wrote:
> On Thu, 11 Jun 2015 12:21:23 +0100 Andrew Haley wrote:
>> or one of the __atomic fences.
> As far as I can see, you can only use them on integers or pointers, but not on arrays.

You don't use a fence on anything, an atomic fence is a
synchronization operation without any associated memory location.

It provides the memory ordering guarantees without being used on a variable.


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