[PATCH] PPC Linuxthreads tls.h
Steven Munroe
sjmunroe@us.ibm.com
Mon Mar 3 19:52:00 GMT 2003
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@us.ibm.com>
* sysdeps/powerpc/tls.h (TLS_INIT_TP): Cleanup assignment
warning.
--
Steven Munroe
sjmunroe@us.ibm.com
Linux on PowerPC-64 Development
GLIBC for PowerPC-64 Development
-------------- next part --------------
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() \
More information about the Libc-alpha
mailing list