New atomics not mentioned in /gcc-4.7/changes.html
Andrew MacLeod
amacleod@redhat.com
Wed Feb 8 16:59:00 GMT 2012
On 02/08/2012 10:38 AM, Andrew MacLeod wrote:
> OSure. There are 2 benefits for c++ now
>
> - We can compile atomic objects of any arbitrary size/type now.
> Previously there was a compiler error if it was not an integer class
> that mapped to a supported size of lock-free __sync call. Now a user
> POD that is the same size as a supported integer will use the lock
> free instructions.
>
> - If there is not a lock free sequence it becomes a library call.
> Although this release does not include an atomic library, I have made
> a sample source file available on the wiki which can be compiled and
> linked with code to resolve those library calls (using a locked
> implementation) Its located in external library section of the wiki:
> http://gcc.gnu.org/wiki/Atomic/GCCMM
>
Apparently thunderbird crashed *after* it sent my original email and I
didn't have to recompose it :-P
Andrew
More information about the Gcc
mailing list