From c874a32e887dd78c1480dcb32052f708dcd5c1e8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 2 Sep 2003 00:33:28 +0000 Subject: Update. 2003-09-01 Jakub Jelinek * Makefile (tests): Add tst-tls1. (module-names): Add tst-tls1mod{,a,b,c,d,e,f}. ($(objpfx)tst-tls1mod{,a,b,c,d,e,f}.so-no-z-defs): Set to yes. ($(objpfx)tst-tls1): New. ($(objpfx)tst-tls2.out): Likewise. (tests): Depend on $(objpfx)tst-tls2.out. * tst-tls1.c: New test. * tst-tls1.h: New. * tst-tls1mod.c: New. * tst-tls1moda.c: New. * tst-tls1modb.c: New. * tst-tls1modc.c: New. * tst-tls1modd.c: New. * tst-tls1mode.c: New. * tst-tls1modf.c: New. * tst-tls2.sh: New test. --- nptl/tst-tls3mod.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'nptl/tst-tls3mod.c') diff --git a/nptl/tst-tls3mod.c b/nptl/tst-tls3mod.c index 646f5b322b..4cb96452e2 100644 --- a/nptl/tst-tls3mod.c +++ b/nptl/tst-tls3mod.c @@ -20,10 +20,11 @@ #include #include #include +#include #include #include #include - +#include #if HAVE___THREAD @@ -61,6 +62,12 @@ handler (int sig) void * tf (void *arg) { + if ((uintptr_t) pthread_self () & (TCB_ALIGNMENT - 1)) + { + puts ("thread's struct pthread not aligned enough"); + exit (1); + } + if (fp != NULL) { puts ("fp not initially NULL"); -- cgit v1.2.3