This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Re: What happens with __attribute__((vector_size(8)))short a = {1, -1};?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]