Re: resurrect __attribute__((atomic)) work

2015-05-06 Thread Andrew MacLeod
On 05/06/2015 06:41 PM, Sandra Loosemore wrote: On 05/06/2015 03:22 PM, Andrew MacLeod wrote: gcc * c-family/c-common.c (const struct attribute_spec c_common_att): Add "atomic" attribute. (handle_atomic_attribute): New. Deal with __attribute__((atomic)). (resolve_overloaded

Re: resurrect __attribute__((atomic)) work

2015-05-06 Thread Sandra Loosemore
On 05/06/2015 03:22 PM, Andrew MacLeod wrote: gcc * c-family/c-common.c (const struct attribute_spec c_common_att): Add "atomic" attribute. (handle_atomic_attribute): New. Deal with __attribute__((atomic)). (resolve_overloaded_builtin): If an atomic objec

resurrect __attribute__((atomic)) work

2015-05-06 Thread Andrew MacLeod
This patch resurrects the __attribute__((atomic)) bits from the old C11 atomic branch that were never included in trunk. Motivation was for C++ to be able to use the attribute in the atomic templates giving c++ exact compatibility with C11 _Atomic. Alignment has been an issue, and jwakley had