From owner-freebsd-arch@FreeBSD.ORG Fri Feb 27 13:33:47 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB8F91065688 for ; Fri, 27 Feb 2009 13:33:47 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (77-93-215-190.static.masterinter.net [77.93.215.190]) by mx1.freebsd.org (Postfix) with ESMTP id A2EF28FC0A for ; Fri, 27 Feb 2009 13:33:47 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id B16789CB0BC; Fri, 27 Feb 2009 14:12:27 +0100 (CET) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (lev.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z0t0QmHpW9dA; Fri, 27 Feb 2009 14:12:21 +0100 (CET) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 438D19CB121; Fri, 27 Feb 2009 14:12:21 +0100 (CET) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.3/8.14.3/Submit) id n1RDCL2C061295; Fri, 27 Feb 2009 14:12:21 +0100 (CET) (envelope-from rdivacky) Date: Fri, 27 Feb 2009 14:12:21 +0100 From: Roman Divacky To: Ed Schouten Message-ID: <20090227131221.GA60215@freebsd.org> References: <20090227131155.GE19161@hoeg.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="opJtzjQTFsWo+cga" Content-Disposition: inline In-Reply-To: <20090227131155.GE19161@hoeg.nl> User-Agent: Mutt/1.4.2.3i Cc: FreeBSD Arch Subject: Re: Making LLVM happy: memmove() in the kernel X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2009 13:33:48 -0000 --opJtzjQTFsWo+cga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 27, 2009 at 02:11:55PM +0100, Ed Schouten wrote: > Hi all, >=20 > The FreeBSD+LLVM folks* noticed Clang generates calls to memmove() by > itself. I have yet to confirm this, but I assume this is done when > performing copies of structs greater than a certain size. In our kernel, > we don't have a memmove() function, but we do have a bcopy(). also.. quoting from (http://gcc.gnu.org/onlinedocs/gcc-4.2.1/gcc/Standards.html):=20 Most of the compiler support routines used by GCC are present in libgcc, but there are a few exceptions. GCC requires the freestanding environment provide memcpy, memmove, memset and memcmp. we were just lucky to not run into this --opJtzjQTFsWo+cga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkmn5rQACgkQLVEj6D3CBEztSwCfVjrriHHKEHgaKppLUzdU7uiB LxMAnipEEOvoxdZvhJsOFiSlCg8jg0UW =HfWo -----END PGP SIGNATURE----- --opJtzjQTFsWo+cga--