Gabriel Dos Reis wrote:
Mark Mitchell <[EMAIL PROTECTED]> writes:

| Joe Buck wrote:
| > On Tue, Mar 15, 2005 at 04:42:03PM -0800, Steve Ellcey wrote:
| >
| >>The simplest solution would probably be to ignore __aligned__ attributes
| >>completely when we have an array. Or to do the change you suggested for
| >>the vector tests and have the attribute attached to the array and not
| >>the element type.
| > Another possibility is to treat the alignment attribute as applying
| > to the
| > array as a whole (that is, the array is aligned to a multiple of 16 bytes,
| > but the elements aren't), perhaps with a warning that this use is
| > deprecated. I propose this because the tests suggest that this use is
| > common enough that it appears in tests.
| | If there is a lot of code out there that does this, that might indeed
| be necessary, ugly though it would be.


Consider allocation of static storage, properly aligned for specific
types.  We even have a TR functionality for that.

I understand the point of aligning the array.

What's wrong in GCC is that the syntax used for doing that is to align the elements, and then make an array of them, rather than to make an array, and then align it.

--
Mark Mitchell
CodeSourcery, LLC
[EMAIL PROTECTED]
(916) 791-8304

Reply via email to