[Gc] Re: [libatomic_ops] bug with gcc/x86_64/CAS

Ludovic Courtès ludo at gnu.org
Thu Feb 18 14:37:50 PST 2010

Andrew Haley <aph at redhat.com> writes:

> On 02/18/2010 04:23 PM, John Plevyak wrote:
>> FYI: GCC has supported the __sync_ primitives from 4.1
>> https://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Atomic-Builtins.html
>> It looks like the major targets are supported by the end of 4.1.X,
>> PowerPC, Alpha, ARM, SPARC, MIPS, etc.
> Be very, very careful when you say things like this: I recently [1] fixed
> __sync_synchronize on ARM, which didn't generate any code!
> Andrew.
> [1] https://gcc.gnu.org/ml/gcc-patches/2009-08/msg00600.html

Not to mention x86_64 [2]...


[2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36793

More information about the Gc mailing list