This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: [3.3 branch] fix vector array initializers for c++
On Thu, Jan 29, 2004 at 11:12:59PM +0100, Gabriel Dos Reis wrote:
> Aldy Hernandez <aldyh@redhat.com> writes:
>
> | Hi Gaby.
> |
> | Could I have permission to commit the patch below to the 3.3 branch?
> | It's also broken there.
> |
> | Without this patch, any initializing of an array of vectors gives a
> | syntax error.
> |
> | And if you do approve, the patch below will also need:
> |
> | http://gcc.gnu.org/ml/gcc-patches/2004-01/msg01286.html
> |
> | Would it be OK to backport both of these patches? Arrays of vectors
> | are pretty useless without it.
>
> OK. You don't have a PR number; can you send a brief description of
> this to Joe so that he can include it in the release note?
Sure. With these patches you can now declare arrays of vectors and
initialize them ala:
typedef int __attribute__((mode(V2SI))) vec;
vec a[] = {{1, 2}, {3, 4}};
Thanks.
Aldy