diff mbox

S/390: Define __PTHREAD_MUTEX_HAVE_ELISION.

Message ID lgejbp$fcu$1@ger.gmane.org
State New
Headers show

Commit Message

Stefan Liebler March 20, 2014, 11:28 a.m. UTC
Hi,

according to the -Wundef flag, i got a warning on S390 for 
__PTHREAD_MUTEX_HAVE_ELISION.
In combination with the -Werror flag for nptl/tst-initializers1* 
testcases, the prerequirements for make check fails because of 
build-errors and no tests.sum is generated.
For S/390 lock elision is currently not available.

Bye

---
2014-03-20  Stefan Liebler  <stli@linux.vnet.ibm.com>

	* nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
	(__PTHREAD_MUTEX_HAVE_ELISION): New define.
---
diff mbox

Patch

diff --git a/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h b/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
index a361db6..23a1698 100644
--- a/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
+++ b/nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
@@ -20,6 +20,8 @@ 
 
 #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