From 4d91ad3daa7260427e96ce1d6c62962795c9dbd5 Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Sun, 29 Nov 2009 19:37:13 -0800 Subject: test/: compile fixes for nptl and tls tests * Add a GLIBC_TESTS_DISABLED var because many of these tests need internal uClibc stuff. This disables the HOSTCC build of these tests * Fix up tls test macros for x86 * Fix the linking of the tls tests Signed-off-by: Austin Foxley --- test/tls/tls-macros.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/tls/tls-macros.h') diff --git a/test/tls/tls-macros.h b/test/tls/tls-macros.h index 29a75df95..cd31100cf 100644 --- a/test/tls/tls-macros.h +++ b/test/tls/tls-macros.h @@ -46,7 +46,7 @@ __l; }) # else # define TLS_IE(x) \ - ({ int *__l, __b; \ + ({ int *__l; \ __asm__ ("call 1f\n\t" \ ".subsection 1\n" \ "1:\tmovl (%%esp), %%ebx\n\t" \ @@ -55,7 +55,7 @@ "addl $_GLOBAL_OFFSET_TABLE_, %%ebx\n\t" \ "movl %%gs:0,%0\n\t" \ "subl " #x "@gottpoff(%%ebx),%0" \ - : "=r" (__l), "=&b" (__b)); \ + : "=r" (__l)); \ __l; }) # endif @@ -93,7 +93,7 @@ __l; }) # else # define TLS_GD(x) \ - ({ int *__l, __b, __c, __d; \ + ({ int *__l, __c, __d; \ __asm__ ("call 1f\n\t" \ ".subsection 1\n" \ "1:\tmovl (%%esp), %%ebx\n\t" \ @@ -103,7 +103,7 @@ "leal " #x "@tlsgd(%%ebx),%%eax\n\t" \ "call ___tls_get_addr@plt\n\t" \ "nop" \ - : "=a" (__l), "=&b" (__b), "=&c" (__c), "=&d" (__d)); \ + : "=a" (__l), "=&c" (__c), "=&d" (__d)); \ __l; }) # endif -- cgit v1.2.3