From owner-freebsd-alpha Sun Feb 3 12: 8:39 2002 Delivered-To: freebsd-alpha@freebsd.org Received: from netau1.alcanet.com.au (ntp.alcanet.com.au [203.62.196.27]) by hub.freebsd.org (Postfix) with ESMTP id CA72C37B400 for ; Sun, 3 Feb 2002 12:08:34 -0800 (PST) Received: from mfg1.cim.alcatel.com.au (mfg1.cim.alcatel.com.au [139.188.23.1]) by netau1.alcanet.com.au (8.9.3 (PHNE_22672)/8.9.3) with ESMTP id HAA06948; Mon, 4 Feb 2002 07:08:31 +1100 (EDT) Received: from gsmx07.alcatel.com.au by cim.alcatel.com.au (PMDF V5.2-32 #37640) with ESMTP id <01KDV8SJ1RGWVM9EMJ@cim.alcatel.com.au>; Mon, 4 Feb 2002 07:08:30 +1100 Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.11.6/8.11.6) id g13K8Td79244; Mon, 04 Feb 2002 07:08:29 +1100 Content-return: prohibited Date: Mon, 04 Feb 2002 07:08:29 +1100 From: Peter Jeremy Subject: Re: rpc.statd/SIOCGIFCONF revisited In-reply-to: <20020130224621.A14154@i2.informatik.rwth-aachen.de>; from stolz@hyperion.informatik.rwth-aachen.de on Wed, Jan 30, 2002 at 10:46:21PM +0100 To: Volker Stolz Cc: alpha@FreeBSD.ORG Mail-Followup-To: Volker Stolz , alpha@FreeBSD.ORG Message-id: <20020204070828.B70935@gsmx07.alcatel.com.au> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline User-Agent: Mutt/1.2.5i References: <20020130224621.A14154@i2.informatik.rwth-aachen.de> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, Jan 30, 2002 at 10:46:21PM +0100, Volker Stolz wrote: >Now the userland code in e.g. libc/rpc/get_myaddress.c memcpy tried >now to access XX which obviusly isn't at an 8 byte aligned address. > >memcpy() *should* be able to copy this region. *But*: >memcpy() gets optimized by gcc to use floating point registers >(unless you specify -fno-builtin). These instructions can only work >on double word aligned data :-/ This is a bug in gcc - memcpy() must be able to handle arbitrarily aligned operands. > Something similar happens when you use an assignment like foo = *bar. This is reasonable. bar must be correctly aligned unless you're doing something unportable. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message