This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Re: What happens with __attribute__((vector_size(8)))short a = {1, -1};?
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: Andrew Pinski <pinskia at physics dot uc dot edu>, Kazu Hirata<kazu at cs dot umass dot edu>, gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Thu, 19 Jun 2003 10:07:27 -0700
- Subject: Re: [patch] Re: What happens with __attribute__((vector_size(8)))short a = {1, -1};?
- References: <m3llvyma98.fsf@frogsleap.quesejoda.com><F75CA570-A25F-11D7-922B-000393A6D2F2@physics.uc.edu><m3d6ham9ie.fsf_-_@frogsleap.quesejoda.com>
Aldy Hernandez <aldyh@redhat.com> writes:
>>>>>> "Andrew" == Andrew Pinski <pinskia@physics.uc.edu> writes:
>
> > It has been filed under pr 11243.
>
> [Patch below]
>
> Sweet! Andrew, thanks so much for keeping up with the bug database.
>
> Could you please close it shortly (when this is approved), cuz I just
> came up with a patch ;-).
>
> This fixes the aforementioned problem. Elements not explicitly
> initialized should be initialized to 0.
>
> I suppose we could tweak the tree directly upon creation, but this is
> easier.
>
> OK?
This seems like the obvious right fix. Check it in.
zw
> 2003-06-19 Aldy Hernandez <aldyh@redhat.com>
>
> * expr.c (const_vector_from_tree): Initialize remaining elements
> to 0.