From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13532 invoked by alias); 19 Apr 2010 13:57:37 -0000 Received: (qmail 13434 invoked by alias); 19 Apr 2010 13:57:19 -0000 Date: Mon, 19 Apr 2010 13:57:00 -0000 Message-ID: <20100419135719.13433.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/43798] attribute((aligned(x))) not honored for array element types? In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenther at suse dot de" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-04/txt/msg01834.txt.bz2 ------- Comment #4 from rguenther at suse dot de 2010-04-19 13:57 ------- Subject: Re: attribute((aligned(x))) not honored for array element types? On Mon, 19 Apr 2010, jakub at gcc dot gnu dot org wrote: > ------- Comment #3 from jakub at gcc dot gnu dot org 2010-04-19 13:44 ------- > At least with pointers alignment greater than size of the pointed to type (or > not divisible by it) is often used to say that the start of the array is > aligned some way. Yes, we correctly copy the (over-)alignment of the element type to the array type. But the element type alignment then stays "wrong". Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43798