aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-02-13 17:45:55 +0000
committerUlrich Drepper <drepper@redhat.com>2002-02-13 17:45:55 +0000
commit100e184f0fdf2fbecdd5f7d6395033a0c983dadf (patch)
tree7d1b74c11abd4848e4446913e63b83be1af4a513
parentd552a4310cc5fec18083fe6bfe9ffa96cfa5df77 (diff)
downloadglibc-100e184f0fdf2fbecdd5f7d6395033a0c983dadf.zip
glibc-100e184f0fdf2fbecdd5f7d6395033a0c983dadf.tar.gz
glibc-100e184f0fdf2fbecdd5f7d6395033a0c983dadf.tar.bz2
Update.
* elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS. * elf/tst-tls2.c: Likewise. * elf/tst-tls3.c: Likewise. 2002-02-13 Jakub Jelinek <jakub@redhat.com> * elf/dl-close.c (free_slotinfo): Only define if TLS supported. 2002-02-13 Ulrich Drepper <drepper@redhat.com>
-rw-r--r--ChangeLog10
-rw-r--r--elf/dl-close.c2
-rw-r--r--elf/tst-tls1.c5
-rw-r--r--elf/tst-tls2.c5
-rw-r--r--elf/tst-tls3.c5
5 files changed, 21 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 3741e02..1e3fcc9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
2002-02-13 Ulrich Drepper <drepper@redhat.com>
+ * elf/tst-tls1.c: Move #include "tls-macros.h" instead #ifdef USE_TLS.
+ * elf/tst-tls2.c: Likewise.
+ * elf/tst-tls3.c: Likewise.
+
+2002-02-13 Jakub Jelinek <jakub@redhat.com>
+
+ * elf/dl-close.c (free_slotinfo): Only define if TLS supported.
+
+2002-02-13 Ulrich Drepper <drepper@redhat.com>
+
* elf/dl-open.c (dl_open_worker): Only bump the generation counter
if this is really necessary.
diff --git a/elf/dl-close.c b/elf/dl-close.c
index 5c7e5da..8eefb35 100644
--- a/elf/dl-close.c
+++ b/elf/dl-close.c
@@ -333,6 +333,7 @@ _dl_close (void *_map)
}
+#ifdef USE_TLS
static bool
free_slotinfo (struct dtv_slotinfo_list *elemp)
{
@@ -355,6 +356,7 @@ free_slotinfo (struct dtv_slotinfo_list *elemp)
return true;
}
+#endif
static void
diff --git a/elf/tst-tls1.c b/elf/tst-tls1.c
index 74e9a91..478f5bb 100644
--- a/elf/tst-tls1.c
+++ b/elf/tst-tls1.c
@@ -2,10 +2,11 @@
#include <stdio.h>
#include <tls.h>
-#include "tls-macros.h"
-
#ifdef USE_TLS
+# include "tls-macros.h"
+
+
/* Two common 'int' variables in TLS. */
COMMON_INT_DEF(foo);
COMMON_INT_DEF(bar);
diff --git a/elf/tst-tls2.c b/elf/tst-tls2.c
index a15c5f5..4174899 100644
--- a/elf/tst-tls2.c
+++ b/elf/tst-tls2.c
@@ -2,10 +2,11 @@
#include <stdio.h>
#include <tls.h>
-#include "tls-macros.h"
-
#ifdef USE_TLS
+# include "tls-macros.h"
+
+
/* Two 'int' variables in TLS. */
VAR_INT_DEF(foo);
VAR_INT_DEF(bar);
diff --git a/elf/tst-tls3.c b/elf/tst-tls3.c
index 58bb183..84be435 100644
--- a/elf/tst-tls3.c
+++ b/elf/tst-tls3.c
@@ -2,10 +2,11 @@
#include <stdio.h>
#include <tls.h>
-#include "tls-macros.h"
-
#ifdef USE_TLS
+# include "tls-macros.h"
+
+
/* One define int variable, two externs. */
COMMON_INT_DECL(foo);
VAR_INT_DECL(bar);