mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Fix sparc build.
* sysdeps/sparc/nptl/pthread_barrier_init.c: Include futex-intenal.h * sysdeps/sparc/sparc32/sparcv9/Makefile (nscd): Add cpu_relax. * sysdeps/sparc/sparc64/Makefile: Likewise. * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_spin_nop): Remove space from macro define. * sysdeps/sparc/sparc64/bits/atomic.h (atomic_spin_nop): Likewise.
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#include <errno.h>
|
||||
#include "pthreadP.h"
|
||||
#include <lowlevellock.h>
|
||||
#include <futex-internal.h>
|
||||
#include <sparc-nptl.h>
|
||||
|
||||
int
|
||||
|
@ -14,6 +14,11 @@ ASFLAGS-.og += -Wa,-Av9a
|
||||
ASFLAGS-.oS += -Wa,-Av9a
|
||||
endif
|
||||
|
||||
# nscd uses atomic_spin_nop which in turn requires cpu_relax
|
||||
ifeq ($(subdir),nscd)
|
||||
routines += cpu_relax
|
||||
endif
|
||||
|
||||
ifeq ($(subdir), nptl)
|
||||
libpthread-routines += cpu_relax
|
||||
endif
|
||||
|
@ -102,4 +102,4 @@ typedef uintmax_t uatomic_max_t;
|
||||
__asm __volatile ("membar #LoadStore | #StoreStore" : : : "memory")
|
||||
|
||||
extern void __cpu_relax (void);
|
||||
#define atomic_spin_nop () __cpu_relax ()
|
||||
#define atomic_spin_nop() __cpu_relax ()
|
||||
|
@ -10,6 +10,11 @@ ASFLAGS-.og += -Wa,-Av9d
|
||||
ASFLAGS-.oS += -Wa,-Av9d
|
||||
endif
|
||||
|
||||
# nscd uses atomic_spin_nop which in turn requires cpu_relax
|
||||
ifeq ($(subdir),nscd)
|
||||
routines += cpu_relax
|
||||
endif
|
||||
|
||||
ifeq ($(subdir),nptl)
|
||||
libpthread-routines += cpu_relax
|
||||
endif
|
||||
|
@ -123,4 +123,4 @@ typedef uintmax_t uatomic_max_t;
|
||||
__asm __volatile ("membar #LoadStore | #StoreStore" : : : "memory")
|
||||
|
||||
extern void __cpu_relax (void);
|
||||
#define atomic_spin_nop () __cpu_relax ()
|
||||
#define atomic_spin_nop() __cpu_relax ()
|
||||
|
Reference in New Issue
Block a user