[patch] Re: What happens with __attribute__((vector_size(8))) short a = {1, -1};?
Zack Weinberg
zack@codesourcery.com
Thu Jun 19 17:32:00 GMT 2003
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.
More information about the Gcc-patches
mailing list