Re: [PATCH] c/68868 - atomic_init emits an unnecessary fence

2015-12-15 Thread Jeff Law
On 12/14/2015 05:53 PM, Martin Sebor wrote: The C atomic_init macro is implemented in terms of simple assignment to the atomic variable pointed to by its first argument. That's inefficient since the variable under initialization must not be accessed by other threads and assignment provides seque

[PATCH] c/68868 - atomic_init emits an unnecessary fence

2015-12-14 Thread Martin Sebor
The C atomic_init macro is implemented in terms of simple assignment to the atomic variable pointed to by its first argument. That's inefficient since the variable under initialization must not be accessed by other threads and assignment provides sequentially consistent semantics. The inefficien