2014-04-09 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
+ * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
+ Remove macro usage.
+ (__PTHREAD_SPINS): Move definition to ...
+ * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
+ (__PTHREAD_SPINS): ... here.
+ * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+ * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Likewise.
+
+2014-04-09 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
+
* sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
* sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
* sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
#endif
-/* Mutex initializers. */
-#if __PTHREAD_MUTEX_HAVE_ELISION == 1 /* 64bit layout. */
-#define __PTHREAD_SPINS 0, 0
-#elif __PTHREAD_MUTEX_HAVE_ELISION == 2 /* 32bit layout. */
-#define __PTHREAD_SPINS { 0, 0 }
-#else
-#define __PTHREAD_SPINS 0
-#endif
-
#ifdef __PTHREAD_MUTEX_HAVE_PREV
# define PTHREAD_MUTEX_INITIALIZER \
{ { 0, 0, 0, 0, 0, __PTHREAD_SPINS, { 0, 0 } } }
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
#include <bits/wordsize.h>
-# define __PTHREAD_MUTEX_HAVE_ELISION 0
-
#if __WORDSIZE == 64
# define __SIZEOF_PTHREAD_ATTR_T 56
# define __SIZEOF_PTHREAD_MUTEX_T 40
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
short __elision;
__pthread_list_t __list;
# define __PTHREAD_MUTEX_HAVE_PREV 1
-# define __PTHREAD_MUTEX_HAVE_ELISION 1
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+# define __PTHREAD_SPINS 0, 0
#else
unsigned int __nusers;
__extension__ union
short __elision;
# define __spins d.__espins
# define __elision d.__elision
-# define __PTHREAD_MUTEX_HAVE_ELISION 2
+# define __PTHREAD_SPINS { 0, 0 }
} d;
__pthread_slist_t __list;
};
+2014-04-09 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
+
+ * ports/sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
+ (__PTHREAD_SPIN): Moved defintion from pthread.h.
+
2014-03-18 Roland McGrath <roland@hack.frob.com>
* sysdeps/hppa/dl-fptr.c: Include <dl-unmap-segments.h>.
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
long int __align;
} pthread_mutex_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
typedef union
{
char __size[__SIZEOF_PTHREAD_MUTEXATTR_T];
int __align;
} pthread_mutexattr_t;
+/* Mutex __spins initializer used by PTHREAD_MUTEX_INITIALIZER. */
+#define __PTHREAD_SPINS 0
+
/* Data structure for conditional variable handling. The structure of
the attribute type is not exposed on purpose. */