From owner-p4-projects@FreeBSD.ORG Mon Jul 19 13:12:33 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 585CA16A4D0; Mon, 19 Jul 2004 13:12:33 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 30A5516A4CE for ; Mon, 19 Jul 2004 13:12:33 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AA0643D3F for ; Mon, 19 Jul 2004 13:12:33 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6JDCWdo050931 for ; Mon, 19 Jul 2004 13:12:32 GMT (envelope-from davidxu@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6JDCWHl050928 for perforce@freebsd.org; Mon, 19 Jul 2004 13:12:32 GMT (envelope-from davidxu@freebsd.org) Date: Mon, 19 Jul 2004 13:12:32 GMT Message-Id: <200407191312.i6JDCWHl050928@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to davidxu@freebsd.org using -f From: David Xu To: Perforce Change Reviews Subject: PERFORCE change 57699 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jul 2004 13:12:33 -0000 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)); \