summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2004-08-25 23:42:40 +0000
committerdavidxu <davidxu@FreeBSD.org>2004-08-25 23:42:40 +0000
commita4dbc4af0d79d8b383314dc954ee689cf060b7b9 (patch)
tree0379d59d47f54283f12d4af4aa95ac1996075424 /lib/libpthread
parent85c14460dfb25652ffcddb933ef22c1ba78a5c78 (diff)
downloadFreeBSD-src-a4dbc4af0d79d8b383314dc954ee689cf060b7b9.zip
FreeBSD-src-a4dbc4af0d79d8b383314dc954ee689cf060b7b9.tar.gz
gcc -O2 cleanup. tested for a long time.
Reviewed by: deischen
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/arch/amd64/include/pthread_md.h4
-rw-r--r--lib/libpthread/arch/i386/include/pthread_md.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/arch/amd64/include/pthread_md.h b/lib/libpthread/arch/amd64/include/pthread_md.h
index 4f903c5..a7da5df 100644
--- a/lib/libpthread/arch/amd64/include/pthread_md.h
+++ b/lib/libpthread/arch/amd64/include/pthread_md.h
@@ -91,7 +91,7 @@ struct tcb {
__asm __volatile("movq %%fs:%1, %0" \
: "=r" (__i) \
: "m" (*(u_long *)(__kcb_offset(name)))); \
- __result = *(__kcb_type(name) *)&__i; \
+ __result = (__kcb_type(name))__i; \
\
__result; \
})
@@ -103,7 +103,7 @@ struct tcb {
__kcb_type(name) __val = (val); \
\
u_long __i; \
- __i = *(u_long *)&__val; \
+ __i = (u_long)__val; \
__asm __volatile("movq %1,%%fs:%0" \
: "=m" (*(u_long *)(__kcb_offset(name))) \
: "r" (__i)); \
diff --git a/lib/libpthread/arch/i386/include/pthread_md.h b/lib/libpthread/arch/i386/include/pthread_md.h
index d208d2e..54efc50 100644
--- a/lib/libpthread/arch/i386/include/pthread_md.h
+++ b/lib/libpthread/arch/i386/include/pthread_md.h
@@ -89,7 +89,7 @@ struct tcb {
__asm __volatile("movl %%gs:%1, %0" \
: "=r" (__i) \
: "m" (*(u_int *)(__kcb_offset(name)))); \
- __result = *(__kcb_type(name) *)&__i; \
+ __result = __kcb_type(name)__i; \
\
__result; \
})
@@ -101,7 +101,7 @@ struct tcb {
__kcb_type(name) __val = (val); \
\
u_int __i; \
- __i = *(u_int *)&__val; \
+ __i = (u_int)__val; \
__asm __volatile("movl %1,%%gs:%0" \
: "=m" (*(u_int *)(__kcb_offset(name))) \
: "r" (__i)); \
OpenPOWER on IntegriCloud