From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 5 10:13:00 2011 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3DBE106564A for ; Sun, 5 Jun 2011 10:13:00 +0000 (UTC) (envelope-from ben@links.org) Received: from mail.links.org (mail.links.org [217.155.92.109]) by mx1.freebsd.org (Postfix) with ESMTP id 8DB9B8FC0C for ; Sun, 5 Jun 2011 10:13:00 +0000 (UTC) Received: from [193.133.15.218] (localhost [127.0.0.1]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.links.org (Postfix) with ESMTPS id 8B08F33C1A; Sun, 5 Jun 2011 11:12:59 +0100 (BST) Message-ID: <4DEB56B1.2040309@links.org> Date: Sun, 05 Jun 2011 11:13:05 +0100 From: Ben Laurie User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Warner Losh References: <4DEA988C.5030003@links.org> <526C5DC0-F449-457D-8B25-8887BEFE869A@bsdimp.com> In-Reply-To: <526C5DC0-F449-457D-8B25-8887BEFE869A@bsdimp.com> X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 05 Jun 2011 11:38:01 +0000 Cc: hackers@FreeBSD.org Subject: Re: _LP64 and _ILP32 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Jun 2011 10:13:00 -0000 On 05/06/2011 06:03, Warner Losh wrote: > I'd add them for all !_LP64 architectures: arm, mips o32, mips n32, i386, and powerpc... Forgive the stupid question, but ... add them to what? > > Warner > > On Jun 4, 2011, at 2:41 PM, Ben Laurie wrote: > >> It turns out that both clang and gcc define _LP64 when used native on amd64. >> >> Neither defines _ILP32 on i386 (native or cross-compiled). >> >> dt_popc() in cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c >> needs on or the other. clang notices because when _ILP32 is missing >> there's no return. >> >> So ... thoughts?-- >> >> http://www.apache-ssl.org/ben.html http://www.links.org/ >> >> "There is no limit to what a man can do or how far he can go if he >> doesn't mind who gets the credit." - Robert Woodruff >> >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >> >> > > -- http://www.apache-ssl.org/ben.html http://www.links.org/ "There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit." - Robert Woodruff