This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.19-790-g82374e6
- From: willnewton at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 9 Jul 2014 08:26:29 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.19-790-g82374e6
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 82374e65d745c3c94258ad81c38f8af34b9f9113 (commit)
from 6ee3eab42979fdd5bb971a40fec32e04bb9dd2ad (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=82374e65d745c3c94258ad81c38f8af34b9f9113
commit 82374e65d745c3c94258ad81c38f8af34b9f9113
Author: Will Newton <will.newton@linaro.org>
Date: Mon Jul 7 15:14:26 2014 +0100
Fix -Wundef warnings for SHARED
The definition of SHARED is tested with #ifdef pretty much everywhere
apart from these few places. The tlsdesc.c code seems to be copy and
pasted to a few architectures and there is one instance in the hppa
startup code.
ChangeLog:
2014-07-09 Will Newton <will.newton@linaro.org>
* sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
* sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
* sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
* sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
* sysdeps/hppa/start.S (_start): Likewise.
diff --git a/ChangeLog b/ChangeLog
index 0773d7c..2ac8b8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-07-09 Will Newton <will.newton@linaro.org>
+
+ * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
+ * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
+ * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
+ * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
+ * sysdeps/hppa/start.S (_start): Likewise.
+
2014-07-09 Siddhesh Poyarekar <siddhesh@redhat.com>
* sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
diff --git a/sysdeps/aarch64/tlsdesc.c b/sysdeps/aarch64/tlsdesc.c
index 1b41819..7e8cf65 100644
--- a/sysdeps/aarch64/tlsdesc.c
+++ b/sysdeps/aarch64/tlsdesc.c
@@ -147,7 +147,7 @@ _dl_unmap (struct link_map *map)
{
_dl_unmap_segments (map);
-#if SHARED
+#ifdef SHARED
if (map->l_mach.tlsdesc_table)
htab_delete (map->l_mach.tlsdesc_table);
#endif
diff --git a/sysdeps/arm/tlsdesc.c b/sysdeps/arm/tlsdesc.c
index e52034d..ad74a23 100644
--- a/sysdeps/arm/tlsdesc.c
+++ b/sysdeps/arm/tlsdesc.c
@@ -149,7 +149,7 @@ _dl_unmap (struct link_map *map)
{
_dl_unmap_segments (map);
-#if SHARED
+#ifdef SHARED
/* _dl_unmap is only called for dlopen()ed libraries, for which
calling free() is safe, or before we've completed the initial
relocation, in which case calling free() is probably pointless,
diff --git a/sysdeps/hppa/start.S b/sysdeps/hppa/start.S
index 0998270..7254a75 100644
--- a/sysdeps/hppa/start.S
+++ b/sysdeps/hppa/start.S
@@ -93,7 +93,7 @@ _start:
stw %r23, -56(%sp)
/* Need to setup 1, 4, 5, and 7th arguments */
-#if SHARED
+#ifdef SHARED
/* load main (1st argument) */
addil LT'.Lpmain, %r19
ldw RT'.Lpmain(%r1), %r26
diff --git a/sysdeps/i386/tlsdesc.c b/sysdeps/i386/tlsdesc.c
index ef4a1dd..19a8788 100644
--- a/sysdeps/i386/tlsdesc.c
+++ b/sysdeps/i386/tlsdesc.c
@@ -261,7 +261,7 @@ _dl_unmap (struct link_map *map)
{
_dl_unmap_segments (map);
-#if SHARED
+#ifdef SHARED
if (map->l_mach.tlsdesc_table)
htab_delete (map->l_mach.tlsdesc_table);
#endif
diff --git a/sysdeps/x86_64/tlsdesc.c b/sysdeps/x86_64/tlsdesc.c
index c1c5e03..451f7be 100644
--- a/sysdeps/x86_64/tlsdesc.c
+++ b/sysdeps/x86_64/tlsdesc.c
@@ -139,7 +139,7 @@ _dl_unmap (struct link_map *map)
{
_dl_unmap_segments (map);
-#if SHARED
+#ifdef SHARED
/* _dl_unmap is only called for dlopen()ed libraries, for which
calling free() is safe, or before we've completed the initial
relocation, in which case calling free() is probably pointless,
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 8 ++++++++
sysdeps/aarch64/tlsdesc.c | 2 +-
sysdeps/arm/tlsdesc.c | 2 +-
sysdeps/hppa/start.S | 2 +-
sysdeps/i386/tlsdesc.c | 2 +-
sysdeps/x86_64/tlsdesc.c | 2 +-
6 files changed, 13 insertions(+), 5 deletions(-)
hooks/post-receive
--
GNU C Library master sources