__sync_lock_test_and_set on ARM
Phil Endecott
spam_from_gcc_help_2@chezphil.org
Thu Sep 13 17:05:00 GMT 2007
Andrew Haley wrote:
> David Daney writes:
> > There is nothing that says that __sync_compar_and_swap() cannot expand
> > to a libcall.
>
> Err, if a port doen't have an implementation, that's what gcc does
> anyway. :-)
That's what the docs say, but actually if you try to use __sync_* on
ARM you'll get a linker error. A library implementation would need to
be OS-specific.
Phil.
More information about the Gcc-help
mailing list