This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Purpose of USE_ATOMIC_COMPILER_BUILTINS


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]