From owner-svn-src-head@FreeBSD.ORG Wed Oct 24 22:11:49 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B95D8FFA for ; Wed, 24 Oct 2012 22:11:49 +0000 (UTC) (envelope-from brett.mahar@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.43]) by mx1.freebsd.org (Postfix) with SMTP id 079978FC18 for ; Wed, 24 Oct 2012 22:11:48 +0000 (UTC) Received: (qmail invoked by alias); 24 Oct 2012 22:11:41 -0000 Received: from unknown (EHLO dd.moose.cat) [101.160.11.234] by mail.gmx.com (mp-eu006) with SMTP; 25 Oct 2012 00:11:41 +0200 X-Authenticated: #117972605 X-Provags-ID: V01U2FsdGVkX18190Uh4LU128sgvutky1aZHJoJmFwm0F4qkoWD+g JKAEOkHp+p8TO7 Date: Thu, 25 Oct 2012 09:11:35 +1100 From: Brett To: svn-src-head@freebsd.org Subject: Re: svn commit: r242014 - head/sys/kern Message-Id: <20121025091135.6df6b1d1221fed10c81b9cb5@gmx.com> In-Reply-To: <508855DA.1080903@freebsd.org> References: <201210241836.q9OIafqo073002@svn.freebsd.org> <201210241443.25988.jhb@freebsd.org> <50884E9F.3090706@freebsd.org> <508855DA.1080903@freebsd.org> X-Mailer: Sylpheed 3.3.0beta2 (GTK+ 2.24.6; x86_64-unknown-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2012 22:11:50 -0000 > >>> As I've already said in another thread __align() doesn't work on > >>> object declaration, so what that won't pad it either if it is global > >>> or part of a struct. > >>> It is just implemented as __attribute__((aligned(X))): > >>> http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/Type-Attributes.html > The problem we have is that is apparently doesn't work correctly > within gcc when creating structs nor within the linker when placing > such supposedly aligned structs in the .bss section (at least the > padding is missing). > > It seems to come down to either a) fixing gcc+ld; or b) hacking > around it by magically padding the structs that require it. Isn't -current switching over to Clang pretty soon? In that case, why worry about what gcc does? Brett.