aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-04-23 01:54:52 +0000
committerRoland McGrath <roland@gnu.org>2003-04-23 01:54:52 +0000
commit63af556fef739fcd22deb496bab756b96a239b14 (patch)
tree864af7746fe090f3411b653400d661e92c5fccdf
parentf478103ff0ab69829f32537947024269296cff17 (diff)
downloadglibc-63af556fef739fcd22deb496bab756b96a239b14.zip
glibc-63af556fef739fcd22deb496bab756b96a239b14.tar.gz
glibc-63af556fef739fcd22deb496bab756b96a239b14.tar.bz2
* elf/tst-tls12.c (main): Fix declaration.
* elf/tst-tls10.c (dummy): Make hidden instead of static. * elf/tst-tlsmod7.c (dummy): Likewise. * elf/tst-tlsmod8.c (dummy): Likewise. * elf/tst-tlsmod9.c (dummy): Likewise. 2003-04-22 Roland McGrath <roland@redhat.com> * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args. (open_not_cancel): Make last argument non-optional. * sysdeps/generic/check_fds.c (check_one_fd): Update caller. * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise. * iconv/gconv_cache.c (__gconv_load_cache): Likewise. * include/tls.h: Protect against multiple inclusion.
-rw-r--r--ChangeLog18
-rw-r--r--elf/tst-tls10.c2
-rw-r--r--elf/tst-tls12.c3
-rw-r--r--elf/tst-tlsmod7.c2
-rw-r--r--elf/tst-tlsmod8.c2
-rw-r--r--elf/tst-tlsmod9.c2
-rw-r--r--include/tls.h5
7 files changed, 29 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 4e993c5..769a54a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,21 @@
+2003-04-23 Jakub Jelinek <jakub@redhat.com>
+
+ * elf/tst-tls12.c (main): Fix declaration.
+ * elf/tst-tls10.c (dummy): Make hidden instead of static.
+ * elf/tst-tlsmod7.c (dummy): Likewise.
+ * elf/tst-tlsmod8.c (dummy): Likewise.
+ * elf/tst-tlsmod9.c (dummy): Likewise.
+
+2003-04-22 Roland McGrath <roland@redhat.com>
+
+ * sysdeps/unix/sysv/linux/not-cancel.h: Put parens around macro args.
+ (open_not_cancel): Make last argument non-optional.
+ * sysdeps/generic/check_fds.c (check_one_fd): Update caller.
+ * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
+ * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
+
+ * include/tls.h: Protect against multiple inclusion.
+
2003-04-22 Ulrich Drepper <drepper@redhat.com>
* nscd/nscd-client.h: Add declaration for __nscd_open_socket.
diff --git a/elf/tst-tls10.c b/elf/tst-tls10.c
index 75a5357..dbcc697 100644
--- a/elf/tst-tls10.c
+++ b/elf/tst-tls10.c
@@ -1,7 +1,7 @@
#include "tst-tls10.h"
#ifdef USE_TLS__THREAD
-static __thread int dummy = 12;
+__thread int dummy __attribute__((visibility ("hidden"))) = 12;
__thread struct A local = { 1, 2, 3 };
#endif
diff --git a/elf/tst-tls12.c b/elf/tst-tls12.c
index c73038b..84aa7d3 100644
--- a/elf/tst-tls12.c
+++ b/elf/tst-tls12.c
@@ -5,7 +5,8 @@
if (p->a != S || p->b != S + 1 || p->c != S + 2) \
abort ()
-int main()
+int
+main (void)
{
#ifdef USE_TLS__THREAD
struct A *p;
diff --git a/elf/tst-tlsmod7.c b/elf/tst-tlsmod7.c
index 18f3bef..944b97f 100644
--- a/elf/tst-tlsmod7.c
+++ b/elf/tst-tlsmod7.c
@@ -1,7 +1,7 @@
#include "tst-tls10.h"
#ifdef USE_TLS__THREAD
-static __thread int dummy = 12;
+__thread int dummy __attribute__((visibility ("hidden"))) = 12;
__thread struct A a1 = { 4, 5, 6 };
__thread struct A a2 = { 7, 8, 9 };
__thread struct A a3 __attribute__((tls_model("initial-exec")))
diff --git a/elf/tst-tlsmod8.c b/elf/tst-tlsmod8.c
index 904c9b2..c1822fc 100644
--- a/elf/tst-tlsmod8.c
+++ b/elf/tst-tlsmod8.c
@@ -1,7 +1,7 @@
#include "tst-tls10.h"
#ifdef USE_TLS__THREAD
-static __thread long long dummy = 12;
+__thread long long dummy __attribute__((visibility ("hidden"))) = 12;
__thread struct A a2 = { 22, 23, 24 };
__thread struct A a4 __attribute__((tls_model("initial-exec")))
= { 25, 26, 27 };
diff --git a/elf/tst-tlsmod9.c b/elf/tst-tlsmod9.c
index 7b138f5..e124144 100644
--- a/elf/tst-tlsmod9.c
+++ b/elf/tst-tlsmod9.c
@@ -1,7 +1,7 @@
#include "tst-tls10.h"
#ifdef USE_TLS__THREAD
-static __thread int dummy = 12;
+__thread int dummy __attribute__((visibility ("hidden"))) = 12;
__thread struct A a1 = { 4, 5, 6 };
__thread struct A a3 __attribute__((tls_model("initial-exec")))
= { 10, 11, 12 };
diff --git a/include/tls.h b/include/tls.h
index 2e20a45..ffd3e4e 100644
--- a/include/tls.h
+++ b/include/tls.h
@@ -1,5 +1,8 @@
/* This file defines USE___THREAD to 1 or 0 to cut down on the #if mess. */
+#ifndef _include_tls_h
+#define _include_tls_h 1
+
#include_next <tls.h>
#if USE_TLS && HAVE___THREAD \
@@ -12,3 +15,5 @@
# define USE___THREAD 0
#endif
+
+#endif