Purpose of USE_ATOMIC_COMPILER_BUILTINS
Torvald Riegel
triegel@redhat.com
Fri Nov 27 11:00:00 GMT 2015
On Tue, 2015-11-17 at 10:49 +0000, Joseph Myers wrote:
> I think the first priorities regarding USE_ATOMIC_COMPILER_BUILTINS should
> be converting more architectures to use it at least in the cases where the
> code will be expanded inline, and reducing the amount of code present in
> architecture-specific atomic-machine.h files when
> USE_ATOMIC_COMPILER_BUILTINS is defined (why should they need anything
> more than USE_ATOMIC_COMPILER_BUILTINS and __HAVE_64B_ATOMICS?).
Yes.
If you are just a user of the atomics, use the C11-like atomics and
you're good. If you want to improve the implementation of glibc's
atomics, what Joseph says is a good thing to work on.
More information about the Libc-alpha
mailing list