This is the mail archive of the
mailing list for the GCC project.
Re: patch: vector_size attribute
On Thu, Dec 06, 2001 at 03:01:17PM -0800, Aldy Hernandez wrote:
> * stor-layout.c (layout_decl): Reset the decl's mode.
There is a very large comment above this saying why this shouldn't be
done. If you want to force this to change, you'll need to reset the
decl's mode before calling layout_decl again. IIRC, you'll also need
to clear DECL_SIZE.
If you aren't doing so now, you should be checking sizeof(decl) in
your test case.