@@ -7,6 +7,20 @@
* sysdeps/sparc/fpu/libm-test-ulps: Update.
+ * sysdeps/sparc/nptl/internaltypes.h: Delete.
+ * sysdeps/sparc/nptl/sparc-nptl.h: New file.
+ * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
+ * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
+ * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
+ * sysdeps/sparc/nptl/sem_init.c: Likewise.
+ * sysdeps/sparc/nptl/sem_post.c: Likewise.
+ * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
+ * sysdeps/sparc/nptl/sem_wait.c: Likewise.
+ * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
+ * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
+ * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
+ * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
+
2014-07-09 Andreas Schwab <schwab@suse.de>
* sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
deleted file mode 100644
@@ -1,35 +0,0 @@
-#ifndef _INTERNALTYPES_H
-
-#include_next <internaltypes.h>
-
-union sparc_pthread_barrier
-{
- struct pthread_barrier b;
- struct sparc_pthread_barrier_s
- {
- unsigned int curr_event;
- int lock;
- unsigned int left;
- unsigned int init_count;
- unsigned char left_lock;
- unsigned char pshared;
- } s;
-};
-
-struct sparc_new_sem
-{
- unsigned int value;
- unsigned char lock;
- unsigned char private;
- unsigned char pad[2];
- unsigned long int nwaiters;
-};
-
-struct sparc_old_sem
-{
- unsigned int value;
- unsigned char lock;
- unsigned char private;
-};
-
-#endif
@@ -19,6 +19,7 @@
#include <errno.h>
#include "pthreadP.h"
#include <lowlevellock.h>
+#include <sparc-nptl.h>
int
pthread_barrier_destroy (barrier)
@@ -19,6 +19,7 @@
#include <errno.h>
#include "pthreadP.h"
#include <lowlevellock.h>
+#include <sparc-nptl.h>
int
pthread_barrier_init (barrier, attr, count)
@@ -20,6 +20,7 @@
#include <sysdep.h>
#include <lowlevellock.h>
#include <pthreadP.h>
+#include <sparc-nptl.h>
/* Wait on barrier. */
int
@@ -23,7 +23,7 @@
#include <shlib-compat.h>
#include "semaphoreP.h"
#include <kernel-features.h>
-
+#include <sparc-nptl.h>
int
__new_sem_init (sem, pshared, value)
@@ -24,6 +24,7 @@
#include <semaphore.h>
#include <shlib-compat.h>
+#include <sparc-nptl.h>
int
__new_sem_post (sem_t *sem)
@@ -25,7 +25,7 @@
#include <pthreadP.h>
#include <shlib-compat.h>
-
+#include <sparc-nptl.h>
extern void __sem_wait_cleanup (void *arg) attribute_hidden;
@@ -25,7 +25,7 @@
#include <pthreadP.h>
#include <shlib-compat.h>
-
+#include <sparc-nptl.h>
void
attribute_hidden
new file mode 100644
@@ -0,0 +1,33 @@
+#ifndef _SPARC_NPTL_H
+
+union sparc_pthread_barrier
+{
+ struct pthread_barrier b;
+ struct sparc_pthread_barrier_s
+ {
+ unsigned int curr_event;
+ int lock;
+ unsigned int left;
+ unsigned int init_count;
+ unsigned char left_lock;
+ unsigned char pshared;
+ } s;
+};
+
+struct sparc_new_sem
+{
+ unsigned int value;
+ unsigned char lock;
+ unsigned char private;
+ unsigned char pad[2];
+ unsigned long int nwaiters;
+};
+
+struct sparc_old_sem
+{
+ unsigned int value;
+ unsigned char lock;
+ unsigned char private;
+};
+
+#endif
@@ -20,6 +20,7 @@
#include <sysdep.h>
#include <lowlevellock.h>
#include <pthreadP.h>
+#include <sparc-nptl.h>
/* Wait on barrier. */
int
@@ -24,6 +24,7 @@
#include <semaphore.h>
#include <shlib-compat.h>
+#include <sparc-nptl.h>
int
__new_sem_post (sem_t *sem)
@@ -25,7 +25,7 @@
#include <pthreadP.h>
#include <shlib-compat.h>
-
+#include <sparc-nptl.h>
extern void __sem_wait_cleanup (void *arg) attribute_hidden;
@@ -25,7 +25,7 @@
#include <pthreadP.h>
#include <shlib-compat.h>
-
+#include <sparc-nptl.h>
void
attribute_hidden