resurrect __attribute__((atomic)) work

Sandra Loosemore sandra@codesourcery.com
Wed May 6 22:42:00 GMT 2015


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 object is passed by address
> 	at an __atomic function, cast the atomic-ness away for processing.
> 	* c-family/c-pretty-print.c (pp_c_cv_qualifiers): Print attribute
> 	when not ISO c11.
>
> 	libstdc++-v3
> 	* include/bits/atomic_base.h (struct __atomic_base): Make template type
> 	use attribute__((atomic)).
> 	(template __atomic_base<_PTp*>): Likewise.
> 	* include/std/atomic (template atomic<_Tp>): Likewise.
> 	* testsuite/29_atomics/atomic/60695.cc: Adjust error line number.

I see no documentation here....

-Sandra



More information about the Gcc-patches mailing list