[Patch] Make atomics work on FreeBSD+arm

John McCall rjmccall at apple.com
Tue Jun 4 10:55:21 PDT 2013


On May 31, 2013, at 12:04 PM, Ed Schouten <ed at 80386.nl> wrote:
> 2013/5/31 Rafael EspĂ­ndola <rafael.espindola at gmail.com>:
>> With this the user would get an undefined reference instead of a
>> compiler error, no?
> 
> Well, yes/no. The __atomic_fetch_* functions can only be applied to
> integer types. Poorly constructed example:

Addition and subtraction can be applied to e.g. _Atomic(int*).

John.



More information about the cfe-commits mailing list