]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nptl: Remove rwlock elision definitions
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 4 Nov 2019 16:14:04 +0000 (16:14 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 26 Nov 2019 13:53:36 +0000 (13:53 +0000)
The new rwlock implementation added by cc25c8b4c1196 (2.25) removed
support for lock-elision.  This patch removes remaining the
arch-specific unused definitions.

Checked with a build against all affected ABIs.

Change-Id: I5dec8af50e3cd56d7351c52ceff4aa3771b53cd6

17 files changed:
sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
sysdeps/alpha/nptl/bits/pthreadtypes-arch.h
sysdeps/arm/nptl/bits/pthreadtypes-arch.h
sysdeps/csky/nptl/bits/pthreadtypes-arch.h
sysdeps/hppa/nptl/bits/pthreadtypes-arch.h
sysdeps/ia64/nptl/bits/pthreadtypes-arch.h
sysdeps/m68k/nptl/bits/pthreadtypes-arch.h
sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h
sysdeps/mips/nptl/bits/pthreadtypes-arch.h
sysdeps/nios2/nptl/bits/pthreadtypes-arch.h
sysdeps/nptl/pthread.h
sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h
sysdeps/riscv/nptl/bits/pthreadtypes-arch.h
sysdeps/s390/nptl/bits/pthreadtypes-arch.h
sysdeps/sh/nptl/bits/pthreadtypes-arch.h
sysdeps/sparc/nptl/bits/pthreadtypes-arch.h
sysdeps/x86/nptl/bits/pthreadtypes-arch.h

index 758b127a1a0174eb06b67fb4d208ad33a756ec91..61c02e7bbcb9c2a36c39b394104262f547418773 100644 (file)
@@ -66,6 +66,4 @@ struct __pthread_rwlock_arch_t
   unsigned int __flags;
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index c5e252fc9d1086c822ff97b074de794cd75bf24b..f5b7d1940eb9218f1e521cd8d38c144eab87b877 100644 (file)
@@ -56,6 +56,4 @@ struct __pthread_rwlock_arch_t
   unsigned int __flags;
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index 78b37eb5b89db5ae7f82dd5eb2ca9abadcbbc67a..a2c550f62a3ed86ead83c1557d11718de2c7d363 100644 (file)
@@ -66,6 +66,4 @@ struct __pthread_rwlock_arch_t
   int __cur_writer;
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index 58be51dcfd0311d9a5881ce9245ba62b7c318685..c1656ae2f6dd8fc2a063c76b50a24f9d90535a50 100644 (file)
@@ -65,6 +65,4 @@ struct __pthread_rwlock_arch_t
   int __cur_writer;
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif
index 13b8223cfaba22e4176aea2c892b96b7110bedc1..7c97b89d603308d3021c731dc5f56b9525c763b1 100644 (file)
@@ -86,6 +86,4 @@ struct __pthread_rwlock_arch_t
   int __reserved4;
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index e0c1374546b24fce0bcfbd803e91aff39990ce31..8eb1bd5ebefc5f71c1dbf42daceb47e1585fd62d 100644 (file)
@@ -58,6 +58,4 @@ struct __pthread_rwlock_arch_t
   unsigned int __flags;
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index 792cb3228968502e2640601a9c8b27dc9dfc0de4..cefce5659341fd70e03c59f9fde22af4e4e98da4 100644 (file)
@@ -58,6 +58,4 @@ struct __pthread_rwlock_arch_t
   int __cur_writer;
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index 7cf1ff6a725d5fa4b6759832f215b9f570e3d192..00b50df2273bf8187f677d68628fcf3e5057873b 100644 (file)
@@ -67,6 +67,4 @@ struct __pthread_rwlock_arch_t
   int __cur_writer;
 };
 
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h.  */
index 0bb703511c6e14744df4cdba20833df3787f5cc6..629cd72048a74a52f85f49994a79f7849dc8de5b 100644 (file)
@@ -84,6 +84,4 @@ struct __pthread_rwlock_arch_t
 #endif
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index dcd3499a8618253682b7c74a1ee93d62ddfb7bcc..bba904bcc42ca8fd6624673be9c311c690fbff54 100644 (file)
@@ -67,6 +67,4 @@ struct __pthread_rwlock_arch_t
   int __cur_writer;
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index a4ff323b76c7c05db93d124b831c215cfb4a510d..f2b21accbca352ae57de386d9969b4dec89f4965 100644 (file)
@@ -131,17 +131,17 @@ enum
 
 /* Read-write lock initializers.  */
 # define PTHREAD_RWLOCK_INITIALIZER \
-  { { 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0 } }
+  { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } }
 # ifdef __USE_GNU
 #  ifdef __PTHREAD_RWLOCK_INT_FLAGS_SHARED
 #   define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
-  { { 0, 0, 0, 0, 0, 0, 0, 0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0,                                             \
+  { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,                                          \
        PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP } }
 #  else
 #   if __BYTE_ORDER == __LITTLE_ENDIAN
 #    define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
   { { 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP, \
-      0, __PTHREAD_RWLOCK_ELISION_EXTRA, 0, 0 } }
+      0, 0, 0, 0 } }
 #   else
 #    define PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP \
   { { 0, 0, 0, 0, 0, 0, 0, 0, 0, PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP,\
index 4ad33d88507e68a8372b494a5b624130554b4cc1..9810aab05753cc190974367fc52cdebc28b96fc2 100644 (file)
@@ -59,22 +59,19 @@ struct __pthread_rwlock_arch_t
 #if __WORDSIZE == 64
   int __cur_writer;
   int __shared;
-  unsigned char __rwelision;
-  unsigned char __pad1[7];
+  unsigned long int __pad1;
   unsigned long int __pad2;
   /* FLAGS must stay at this position in the structure to maintain
      binary compatibility.  */
   unsigned int __flags;
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0, {0, 0, 0, 0, 0, 0, 0 }
 #else
-  unsigned char __rwelision;
+  unsigned char __pad1;
   unsigned char __pad2;
   unsigned char __shared;
   /* FLAGS must stay at this position in the structure to maintain
      binary compatibility.  */
   unsigned char __flags;
   int __cur_writer;
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
 #endif
 };
 
index 33f0ee43fe9c0268ffe5ff0b19d52df1ccce5331..77b60bf8f70a58ae6bc5c3a07e21cb55f4420db5 100644 (file)
@@ -63,6 +63,4 @@ struct __pthread_rwlock_arch_t
   unsigned int __flags;
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA                 0
-
 #endif /* bits/pthreadtypes.h */
index 28754b7aa6b2d6b5bdc3eaae1e068c6971d6efe0..1cb1d7216a3a635c6bb173e7c6c12a5be7ce7d2f 100644 (file)
@@ -74,6 +74,4 @@ struct __pthread_rwlock_arch_t
 #endif
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index 219a8613987307d843a54ee9f00bacc42ced62bc..e7bbfe1861fc77020418c76e093c88080ed5b07c 100644 (file)
@@ -66,6 +66,4 @@ struct __pthread_rwlock_arch_t
   unsigned long int __cur_writer;
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index c5c0563c58d948e54ed4bad42b2684a382064a68..47093a57a29a99636d7b2cdb7b377bfdd351b28b 100644 (file)
@@ -76,6 +76,4 @@ struct __pthread_rwlock_arch_t
 #endif
 };
 
-#define __PTHREAD_RWLOCK_ELISION_EXTRA 0
-
 #endif /* bits/pthreadtypes.h */
index 97361b0a806a4af91529e684e49e39a92d1acb4a..1f05ca088cfa0dd395b458772120cc1e97601113 100644 (file)
@@ -73,14 +73,7 @@ struct __pthread_rwlock_arch_t
 #ifdef __x86_64__
   int __cur_writer;
   int __shared;
-  signed char __rwelision;
-# ifdef  __ILP32__
-  unsigned char __pad1[3];
-#  define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0 }
-# else
-  unsigned char __pad1[7];
-#  define __PTHREAD_RWLOCK_ELISION_EXTRA 0, { 0, 0, 0, 0, 0, 0, 0 }
-# endif
+  unsigned long int __pad1;
   unsigned long int __pad2;
   /* FLAGS must stay at this position in the structure to maintain
      binary compatibility.  */
@@ -91,8 +84,7 @@ struct __pthread_rwlock_arch_t
      binary compatibility.  */
   unsigned char __flags;
   unsigned char __shared;
-  signed char __rwelision;
-# define __PTHREAD_RWLOCK_ELISION_EXTRA 0
+  unsigned char __pad1;
   unsigned char __pad2;
   int __cur_writer;
 #endif