Re: argument of alloca in terms of units or not

2011-09-30 Thread Richard Guenther
On Thu, Sep 29, 2011 at 5:57 PM, Tom de Vries wrote: > Richard, > > in gimplify_vla_decl, the alloca argument seems to be the size of the vla in > units: > ... >  t = build_call_expr (t, 1, DECL_SIZE_UNIT (decl)); > ... > > I wonder why we are going through this 8 vs. BITS_PER_UNIT conversion her

argument of alloca in terms of units or not

2011-09-29 Thread Tom de Vries
Richard, in gimplify_vla_decl, the alloca argument seems to be the size of the vla in units: ... t = build_call_expr (t, 1, DECL_SIZE_UNIT (decl)); ... I wonder why we are going through this 8 vs. BITS_PER_UNIT conversion here: ... elem_type = build_nonstandard_integer_type (BITS_PER_UNIT, 1