From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 5 17:17:59 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 9A3CE106566C for ; Sun, 5 Jun 2011 17:17:59 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 539958FC13 for ; Sun, 5 Jun 2011 17:17:59 +0000 (UTC) Received: from 63.imp.bsdimp.com (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p55HDFfE077139 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Sun, 5 Jun 2011 11:13:16 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) From: Warner Losh In-Reply-To: <4DEB56B1.2040309@links.org> Date: Sun, 5 Jun 2011 11:13:12 -0600 Message-Id: <3653FDA9-7CBE-4217-BDE9-78E2970E89F1@bsdimp.com> References: <4DEA988C.5030003@links.org> <526C5DC0-F449-457D-8B25-8887BEFE869A@bsdimp.com> <4DEB56B1.2040309@links.org> To: Ben Laurie X-Mailer: Apple Mail (2.1084) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (harmony.bsdimp.com [10.0.0.6]); Sun, 05 Jun 2011 11:13:16 -0600 (MDT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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 17:17:59 -0000 On Jun 5, 2011, at 4:13 AM, Ben Laurie wrote: > 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... >=20 > Forgive the stupid question, but ... add them to what? If they aren't already defined by the compilers, those compilers should = be modified to define them. I thought they were defined already, it = appears not. Warner >> Warner >>=20 >> On Jun 4, 2011, at 2:41 PM, Ben Laurie wrote: >>=20 >>> It turns out that both clang and gcc define _LP64 when used native = on amd64. >>>=20 >>> Neither defines _ILP32 on i386 (native or cross-compiled). >>>=20 >>> 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. >>>=20 >>> So ... thoughts?-- >>>=20 >>> http://www.apache-ssl.org/ben.html http://www.links.org/ >>>=20 >>> "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 >>>=20 >>> _______________________________________________ >>> 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" >>>=20 >>>=20 >>=20 >>=20 >=20 >=20 > --=20 > http://www.apache-ssl.org/ben.html http://www.links.org/ >=20 > "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 >=20 >=20