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: 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.


r~


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