From owner-svn-src-projects@FreeBSD.ORG Thu Jul 9 15:41:30 2009 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D6A110656C7; Thu, 9 Jul 2009 15:41:30 +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 1CB098FC1A; Thu, 9 Jul 2009 15:41:30 +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 1757F6D41C; Thu, 9 Jul 2009 17:41:29 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id DF080844F1; Thu, 9 Jul 2009 17:41:28 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Bruce Evans References: <200907081526.n68FQYDb055185@svn.freebsd.org> <20090709041145.G46111@delplex.bde.org> Date: Thu, 09 Jul 2009 17:41:28 +0200 In-Reply-To: <20090709041145.G46111@delplex.bde.org> (Bruce Evans's message of "Thu, 9 Jul 2009 04:24:46 +1000 (EST)") Message-ID: <86prc9g8yf.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-projects@freebsd.org, src-committers@freebsd.org, Rui Paulo Subject: Re: svn commit: r195460 - projects/mesh11s/sys/net80211 X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2009 15:41:30 -0000 Bruce Evans writes: > Broken ABIs (e.g., arm?) may add padding at the end of structs, Padding at the end of a struct is *required* to ensure proper alignment of the next element in an array, e.g. struct foo { int i; char c; } bar[2]; Assuming a four-byte alignment requirement for int, the compiler *must* add three bytes of padding at the end of struct foo so bar[1].i is correctly aligned. cf. ISO/IEC 9899:1999 =C2=A76.7.2.1: 15 There may be unnamed padding at the end of a structure or union. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no