From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 5 05:08:45 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 B43B8106566B for ; Sun, 5 Jun 2011 05:08:45 +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 765C68FC15 for ; Sun, 5 Jun 2011 05:08:45 +0000 (UTC) Received: from [10.0.0.63] (63.imp.bsdimp.com [10.0.0.63]) (authenticated bits=0) by harmony.bsdimp.com (8.14.4/8.14.3) with ESMTP id p5553AHP072271 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO); Sat, 4 Jun 2011 23:03:10 -0600 (MDT) (envelope-from imp@bsdimp.com) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: <4DEA988C.5030003@links.org> Date: Sat, 4 Jun 2011 23:03:10 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <526C5DC0-F449-457D-8B25-8887BEFE869A@bsdimp.com> References: <4DEA988C.5030003@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]); Sat, 04 Jun 2011 23:03:10 -0600 (MDT) 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 05:08:45 -0000 I'd add them for all !_LP64 architectures: arm, mips o32, mips n32, = i386, and powerpc... 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. >=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