Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2004 13:12:32 GMT
From:      David Xu <davidxu@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 57699 for review
Message-ID:  <200407191312.i6JDCWHl050928@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=57699

Change 57699 by davidxu@davidxu_alona on 2004/07/19 13:11:31

	-O2 cleanup.

Affected files ...

.. //depot/projects/davidxu_ksedbg/src/lib/libpthread/arch/amd64/include/pthread_md.h#4 edit
.. //depot/projects/davidxu_ksedbg/src/lib/libpthread/arch/i386/include/pthread_md.h#4 edit

Differences ...

==== //depot/projects/davidxu_ksedbg/src/lib/libpthread/arch/amd64/include/pthread_md.h#4 (text+ko) ====

@@ -88,7 +88,7 @@
 	__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;						\
 })
@@ -100,7 +100,7 @@
 	__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));					\

==== //depot/projects/davidxu_ksedbg/src/lib/libpthread/arch/i386/include/pthread_md.h#4 (text+ko) ====

@@ -88,7 +88,7 @@
 	__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;						\
 })
@@ -100,7 +100,7 @@
 	__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));					\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407191312.i6JDCWHl050928>