Re: [PATCH 06/21] ARC: Atomics and Locking primitives

2019-01-14 Thread Vineet Gupta
On 12/18/18 3:15 PM, Joseph Myers wrote: > On Tue, 18 Dec 2018, Vineet Gupta wrote: > >> +#define USE_ATOMIC_COMPILER_BUILTINS 0 > > There is a strong preference for new ports to use 1 for this rather than 0 > (and not to have any asms in their atomic-machine.h unless there's some > reason use

Re: [PATCH 06/21] ARC: Atomics and Locking primitives

2018-12-18 Thread Joseph Myers
On Tue, 18 Dec 2018, Vineet Gupta wrote: > +#define USE_ATOMIC_COMPILER_BUILTINS 0 There is a strong preference for new ports to use 1 for this rather than 0 (and not to have any asms in their atomic-machine.h unless there's some reason use of built-in functions is unsuitable) - see the

[PATCH 06/21] ARC: Atomics and Locking primitives

2018-12-18 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- ChangeLog | 3 ++ sysdeps/arc/atomic-machine.h | 89 +++ sysdeps/arc/nptl/bits/pthreadtypes-arch.h | 72 + sysdeps/arc/nptl/bits/semaphore.h | 32 +++