aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/sparc/sparc64
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-07-15 15:22:48 -0700
committerDavid S. Miller <davem@davemloft.net>2015-07-15 16:07:32 -0700
commitc59f721c7377106888bff47064bf7da5a082e129 (patch)
tree5017b2c9b1c177613dc40dd515a367bff09b8e96 /sysdeps/sparc/sparc64
parentc9328a5c4c5d87f007d115754d55b4b2857d1542 (diff)
downloadglibc-c59f721c7377106888bff47064bf7da5a082e129.tar
glibc-c59f721c7377106888bff47064bf7da5a082e129.tar.gz
glibc-c59f721c7377106888bff47064bf7da5a082e129.tar.bz2
glibc-c59f721c7377106888bff47064bf7da5a082e129.zip
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.
Diffstat (limited to 'sysdeps/sparc/sparc64')
-rw-r--r--sysdeps/sparc/sparc64/Makefile5
-rw-r--r--sysdeps/sparc/sparc64/bits/atomic.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/sparc/sparc64/Makefile b/sysdeps/sparc/sparc64/Makefile
index dfc118cfef..3a12510307 100644
--- a/sysdeps/sparc/sparc64/Makefile
+++ b/sysdeps/sparc/sparc64/Makefile
@@ -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
diff --git a/sysdeps/sparc/sparc64/bits/atomic.h b/sysdeps/sparc/sparc64/bits/atomic.h
index 48b7fd6216..79f4a1d9be 100644
--- a/sysdeps/sparc/sparc64/bits/atomic.h
+++ b/sysdeps/sparc/sparc64/bits/atomic.h
@@ -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 ()