From owner-freebsd-current@FreeBSD.ORG Fri Jul 20 16:33:56 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1E966106566C; Fri, 20 Jul 2012 16:33:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 88A598FC08; Fri, 20 Jul 2012 16:33:55 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q6KGY4Ua026525; Fri, 20 Jul 2012 19:34:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q6KGXqQa019734; Fri, 20 Jul 2012 19:33:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q6KGXqMm019733; Fri, 20 Jul 2012 19:33:52 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 20 Jul 2012 19:33:52 +0300 From: Konstantin Belousov To: Dimitry Andric Message-ID: <20120720163352.GS2676@deviant.kiev.zoral.com.ua> References: <50097BF0.9010103@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Cp+VOSm8VfVBUvcG" Content-Disposition: inline In-Reply-To: <50097BF0.9010103@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-current@freebsd.org, Kim Culhan Subject: Re: -current build failure X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 16:33:56 -0000 --Cp+VOSm8VfVBUvcG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 20, 2012 at 05:40:32PM +0200, Dimitry Andric wrote: > On 2012-07-20 16:49, Kim Culhan wrote: > > Seeing this for r:238655 > ... > > In file included from /usr/src/sys/modules/dtrace/dtrace/../../../sys/p= cpu.h:44: > > ./machine/pcpu.h:226:13: error: indirection of non-volatile null > > pointer will be deleted, not trap > > [-Werror,-Wnull-dereference] > > : "m" (*(char *)OFFSETOF_CURTHREAD)); > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~ > > ./machine/pcpu.h:226:13: note: consider using __builtin_trap() or > > qualifying pointer with 'volatile' >=20 > That's indeed a valid warning from clang, since OFFSETOF_CURTHREAD is > usually zero. It's probably due to recent work on dtrace. I'm not in > the neighborhood of a FreeBSD box right now to verify, but can you > please try to change the cast to "(volatile char *)"? That should fix > the warning. It is not related to dtrace at all, and indeed OFFSETOF_CURTHREAD is 0. This is a bug in clang, we compile our kernel in freestanding environment. --Cp+VOSm8VfVBUvcG Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAlAJiG8ACgkQC3+MBN1Mb4hCKwCdExiHnlzAM4YEq4WB/tlAew6o xq4AoMho4wQbomRMa9qkwil+okWoSDxv =5YME -----END PGP SIGNATURE----- --Cp+VOSm8VfVBUvcG--