From a4dbc4af0d79d8b383314dc954ee689cf060b7b9 Mon Sep 17 00:00:00 2001 From: davidxu Date: Wed, 25 Aug 2004 23:42:40 +0000 Subject: gcc -O2 cleanup. tested for a long time. Reviewed by: deischen --- lib/libkse/arch/amd64/include/pthread_md.h | 4 ++-- lib/libkse/arch/i386/include/pthread_md.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libkse/arch') diff --git a/lib/libkse/arch/amd64/include/pthread_md.h b/lib/libkse/arch/amd64/include/pthread_md.h index 4f903c5..a7da5df 100644 --- a/lib/libkse/arch/amd64/include/pthread_md.h +++ b/lib/libkse/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/libkse/arch/i386/include/pthread_md.h b/lib/libkse/arch/i386/include/pthread_md.h index d208d2e..54efc50 100644 --- a/lib/libkse/arch/i386/include/pthread_md.h +++ b/lib/libkse/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)); \ -- cgit v1.1