This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] PPC Linuxthreads tls.h
- From: Steven Munroe <sjmunroe at us dot ibm dot com>
- To: libc-alpha <libc-alpha at sources dot redhat dot com>, Franz-Sirl <Franz-Sirl-kernel at lauterbach dot com>
- Date: Mon, 03 Mar 2003 13:29:41 -0600
- Subject: [PATCH] PPC Linuxthreads tls.h
- Organization: IBM Linux Developement
- Reply-to: sjmunroe at vnet dot ibm dot com
The powerpc common TLS_INIT_TP macro generates a int to pointer
assignment warning. Changed the trailing ,0 to ,NULL.
2003-03-03 Steven Munroe <sjmunroe at us dot ibm dot com>
* sysdeps/powerpc/tls.h (TLS_INIT_TP): Cleanup assignment
warning.
--
Steven Munroe
sjmunroe at us dot ibm dot com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
diff -rupP libc23-cvstip-20030228/linuxthreads/sysdeps/powerpc/tls.h libc23/linuxthreads/sysdeps/powerpc/tls.h
--- libc23-cvstip-20030228/linuxthreads/sysdeps/powerpc/tls.h 2003-02-27 14:47:12.000000000 -0600
+++ libc23/linuxthreads/sysdeps/powerpc/tls.h 2003-03-01 11:00:00.000000000 -0600
@@ -99,7 +99,7 @@ typedef struct
special attention since 'errno' is not yet available and if the
operation can cause a failure 'errno' must not be touched. */
# define TLS_INIT_TP(TCBP, SECONDCALL) \
- (__thread_register = (void *) (TCBP) + TLS_TCB_OFFSET + TLS_TCB_SIZE, 0)
+ (__thread_register = (void *) (TCBP) + TLS_TCB_OFFSET + TLS_TCB_SIZE, NULL)
/* Return the address of the dtv for the current thread. */
# define THREAD_DTV() \