From owner-svn-src-all@FreeBSD.ORG Tue Dec 2 12:55:11 2008 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8595B1065686; Tue, 2 Dec 2008 12:55:11 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 3FEC28FC13; Tue, 2 Dec 2008 12:55:11 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 713A46D449; Tue, 2 Dec 2008 12:55:10 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 5CCB6844F2; Tue, 2 Dec 2008 13:55:10 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Peter Wemm References: <200812021010.mB2AAowJ055809@svn.freebsd.org> Date: Tue, 02 Dec 2008 13:55:10 +0100 In-Reply-To: <200812021010.mB2AAowJ055809@svn.freebsd.org> (Peter Wemm's message of "Tue, 2 Dec 2008 10:10:50 +0000 (UTC)") Message-ID: <86r64q4tzl.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r185553 - head/lib/libutil X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Dec 2008 12:55:11 -0000 Peter Wemm writes: > Log: > Attempt a quick bandaid for arm build breakage. I went to the trouble = of > maintaining alignment, but I'm not sure how to tell gcc this. There's no good way to do this. In an ideal world, you could add an assertion that the offset is a multiple of __alignof__(struct kinfo_foo), and gcc would understand, but I don't think that works in practice. Coverity will probably complain about this as well, but hopefully the cast will pacify it like it pacifies gcc. In pw_util and gr_util, scf@ and I solved a similar issue by using a wrapper struct, but that wouldn't work here. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no