[PATCH] Patch 2 of 2 for ILP32 aarch64
Steve Ellcey
sellcey@cavium.com
Tue Jun 13 19:06:00 GMT 2017
On Tue, 2017-06-13 at 10:09 +0100, Szabolcs Nagy wrote:
>Â
> FAIL: nptl/tst-initializers1
> FAIL: nptl/tst-initializers1-c11
> FAIL: nptl/tst-initializers1-c89
> FAIL: nptl/tst-initializers1-c99
> FAIL: nptl/tst-initializers1-gnu11
> FAIL: nptl/tst-initializers1-gnu89
> FAIL: nptl/tst-initializers1-gnu99
I took a look at these failures and saw that
__PTHREAD_RWLOCK_INT_FLAGS_SHARED is only being set when in 64 bit
mode.  I updated sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h to
define this macro and that fixed these failures. Â I will include that
change in my next patch submission (currently waiting on the kernel
patches).
Steve Ellcey
sellcey@cavium.com
% git diff sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
diff --git a/sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
b/sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
index d13a75d..9aa9f04 100644
--- a/sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
+++ b/sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h
@@ -65,5 +65,6 @@ struct __pthread_rwlock_arch_t
 };
Â
 #define __PTHREAD_RWLOCK_ELISION_EXTRA 0
+#define __PTHREAD_RWLOCK_INT_FLAGS_SHARED 1
Â
 #endif /* bits/pthreadtypes.h */
More information about the Libc-alpha
mailing list