From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 20:56:50 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 0D19C106566C for ; Sat, 4 Jun 2011 20:56:50 +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 BFE1C8FC0A for ; Sat, 4 Jun 2011 20:56:49 +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 A45EA33C3F for ; Sat, 4 Jun 2011 21:41:43 +0100 (BST) Message-ID: <4DEA988C.5030003@links.org> Date: Sat, 04 Jun 2011 21:41:48 +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: hackers@freebsd.org X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 04 Jun 2011 22:09:46 +0000 Cc: Subject: _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: Sat, 04 Jun 2011 20:56:50 -0000 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