This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 2.19] S/390: Fix build warnings in dl-sym.c
- From: Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- To: libc-alpha at sourceware dot org
- Date: Fri, 3 Jan 2014 15:46:09 +0100
- Subject: [PATCH 2.19] S/390: Fix build warnings in dl-sym.c
- Authentication-results: sourceware.org; auth=none
Hi,
the attached patch fixes S/390 build warnings in dl-sym.c.
Ok?
-Andreas-
2014-01-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* sysdeps/s390/dl-tls.h b/sysdeps/s390/dl-tls.h: Remove casts for
the first argument and return value of __tls_get_addr_internal.
diff --git a/sysdeps/s390/dl-tls.h b/sysdeps/s390/dl-tls.h
index acf282e..4801bf8 100644
--- a/sysdeps/s390/dl-tls.h
+++ b/sysdeps/s390/dl-tls.h
@@ -91,7 +91,7 @@ extern void *__tls_get_addr_internal (tls_index *ti);
compiler will take care of setting up r12 only if itself issued the
__tls_get_offset call. */
# define __TLS_GET_ADDR(__ti) \
- ({ (void *) __tls_get_addr_internal ((char *) (__ti)) \
+ ({ __tls_get_addr_internal (__ti) \
+ (unsigned long) __builtin_thread_pointer (); })
#endif