This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Run tst-tls14 for TLS only.


The default configure with linuxthreads disables TLS. This patch skips
tst-tls14 if TLS isn't enabled.


H.J.
----
2003-07-25  H.J. Lu  <hongjiu.lu@intel.com>

	* elf/tst-tls14.c: Include <tls.h>. Check USE_TLS.
	* elf/tst-tlsmod14a.c: Likewise.

--- elf/tst-tls14.c.tls	2003-07-24 20:35:45.000000000 -0700
+++ elf/tst-tls14.c	2003-07-25 12:38:04.000000000 -0700
@@ -4,7 +4,9 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include <tls.h>
 
+#ifdef USE_TLS
 #define AL 4096
 struct foo
 {
@@ -51,6 +53,13 @@ do_test (void)
 
   return result;
 }
+#else
+static int
+do_test (void)
+{
+  return 0;
+}
+#endif
 
 #define TEST_FUNCTION do_test ()
 #include "../test-skeleton.c"
--- elf/tst-tlsmod14a.c.tls	2003-07-24 12:58:08.000000000 -0700
+++ elf/tst-tlsmod14a.c	2003-07-25 12:38:28.000000000 -0700
@@ -1,7 +1,9 @@
 #include <stdint.h>
 #include <stdio.h>
 
+#include <tls.h>
 
+#ifdef USE_TLS
 #define AL 4096
 struct foo
 {
@@ -34,3 +36,4 @@ FCT (void)
 
   return result;
 }
+#endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]