Are arrays guaranteed to be affected by a "memory" clobber?

Jonathan Wakely jwakely.gcc@gmail.com
Thu Jun 11 22:53:00 GMT 2015


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.



More information about the Gcc-help mailing list