This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SEGV in do_simple_structure_copy
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 07 Oct 2005 07:49:09 -0400
- Subject: Re: SEGV in do_simple_structure_copy
- References: <10510071135.AA19179@vlsi1.ultra.nyu.edu>
On Fri, 2005-10-07 at 07:35 -0400, Richard Kenner wrote:
> This is the correct fix, however, if you are going to lie to the
> middle end about TYPE_SIZE so that the TYPE_SIZE and DECL_SIZE do not
> match.
>
> If we always require that DECL_SIZE be identical to TYPE_SIZE, why
> have a DECL_SIZE in the first place?
Personally, I would have not had a DECL_SIZE, i would have made
TYPE_SIZE express the type size properly (IE not always a multiple).
What is the incredibly good reason we have them both, other than to save
memory in the number of bitfield types we create?