about summary refs log tree commit diff
path: root/sysdeps/htl/pthreadP.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-13 01:17:07 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-01-13 01:24:43 +0100
commit196e62cbe4acdab22a95740b618c699863ed460c (patch)
tree5ef9cc8050f63da1e83683b703918f0c52931c9f /sysdeps/htl/pthreadP.h
parente404be33feaa586231fe30e3bdf6d380a79c2679 (diff)
downloadglibc-196e62cbe4acdab22a95740b618c699863ed460c.tar.gz
glibc-196e62cbe4acdab22a95740b618c699863ed460c.tar.xz
glibc-196e62cbe4acdab22a95740b618c699863ed460c.zip
htl: Add type sizes in bits/pthreadtypes-arch.h and check them
Diffstat (limited to 'sysdeps/htl/pthreadP.h')
-rw-r--r--sysdeps/htl/pthreadP.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/htl/pthreadP.h b/sysdeps/htl/pthreadP.h
index 30e074c1d0..af0154538a 100644
--- a/sysdeps/htl/pthreadP.h
+++ b/sysdeps/htl/pthreadP.h
@@ -74,4 +74,8 @@ hidden_proto (__pthread_setspecific)
 hidden_proto (_pthread_mutex_init)
 #endif
 
+#define ASSERT_TYPE_SIZE(type, size) 					\
+  _Static_assert (sizeof (type) == size,				\
+		  "sizeof (" #type ") != " #size)
+
 #endif	/* pthreadP.h */