[Bug c/43798] attribute((aligned(x))) not honored for array element types?

rguenther at suse dot de gcc-bugzilla@gcc.gnu.org
Mon Apr 19 13:57:00 GMT 2010



------- 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



More information about the Gcc-bugs mailing list