This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Fix nptl build on alpha and ia64


dtv_t is a union now. This patch upates alpha and ia64.

H.J.
---
2005-01-10  H.J. Lu  <hongjiu.lu@intel.com>

	* sysdeps/alpha/libc-tls.c (__tls_get_addr): Updated for dtv_t
	union.
	* sysdeps/ia64/libc-tls.c (__tls_get_addr): Likewise.

--- sysdeps/alpha/libc-tls.c.tls	2003-01-17 11:19:37.000000000 -0800
+++ sysdeps/alpha/libc-tls.c	2005-01-10 11:07:27.964175290 -0800
@@ -31,7 +31,7 @@ void *
 __tls_get_addr (tls_index *ti)
 {
   dtv_t *dtv = THREAD_DTV ();
-  return (char *) dtv[1].pointer + ti->ti_offset;
+  return (char *) dtv[1].pointer.val + ti->ti_offset;
 }
 
 #endif
--- sysdeps/ia64/libc-tls.c.tls	2003-01-12 00:54:39.000000000 -0800
+++ sysdeps/ia64/libc-tls.c	2005-01-10 11:07:35.529184814 -0800
@@ -30,7 +30,7 @@ void *
 __tls_get_addr (size_t m, size_t offset)
 {
   dtv_t *dtv = THREAD_DTV ();
-  return (char *) dtv[1].pointer + offset;
+  return (char *) dtv[1].pointer.val + offset;
 }
 
 #endif


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]