This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PARM_DECL of DECL_SIZE 0, but TYPE_SIZE of 96 bits
- From: "Giovanni Bajo" <rasky at develer dot com>
- To: "Daniel Berlin" <dberlin at dberlin dot org>
- Cc: <gcc at gcc dot gnu dot org>,"Richard Henderson" <rth at redhat dot com>
- Date: Thu, 30 Jun 2005 20:47:54 +0200
- Subject: Re: PARM_DECL of DECL_SIZE 0, but TYPE_SIZE of 96 bits
- References: <1120085832.7612.81.camel@linux-009002219098>
Daniel Berlin <dberlin@dberlin.org> wrote:
> So we've got a parm decl that if you ask it for the DECL_SIZE, says 0,
> but has a TYPE_SIZE of 12 bytes, and we access fields in it, etc.
I am not sure of what the exact relations between DECL_SIZE and TYPE_SIZE
are, but probably some verification could be done, eg, at gimplification
time, rather than waiting for latent bugs in optimizers to produce wrong
code?
--
Giovanni Bajo