gcc -O2 cleanup. tested for a long time.

Reviewed by: deischen
This commit is contained in:
davidxu 2004-08-25 23:42:40 +00:00
parent 1c11957446
commit 519296b456
4 changed files with 8 additions and 8 deletions

View File

@ -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)); \

View File

@ -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)); \

View File

@ -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)); \

View File

@ -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)); \