On Fri, Apr 08, 2005 at 10:11:33AM -0700, Joe Buck wrote: > On Fri, Apr 08, 2005 at 06:58:54PM +0200, Jakub Jelinek wrote: > > See middle-end/20794, there is discussion about declaring this > > invalid. When a type with size that is not an integral multiple > > of alignment (e.g. smaller size than alignment) is used in an > > array, we have the choice either to violate the alignment > > request for second and some subsequent array elements, > > or make the elements bigger, but then pointer arithmetics > > won't work very well. > > The problem, then, is that there's no way for the user to specify > that we have an array whose beginning has, say, 16-byte alignment, > but that after that, the elements have their ordinary sizes (meaning > that subsequent elements are not aligned).
We do. char array[32] __attribute__ ((__aligned__ (16))); Tried HEAD/4.0/3.4/3.2/2.96-RH and it works in all of them. Jakub