Re: [PATCH] gimplifier: handle POLY_INT_CST-sized TARGET_EXPRs

2020-01-17 Thread Richard Biener
On Thu, Jan 16, 2020 at 1:10 PM Richard Sandiford wrote: > > If a TARGET_EXPR has poly-int size, the gimplifier would treat it > like a VLA and use gimplify_vla_decl. gimplify_vla_decl in turn > would use an alloca and expect all references to be gimplified > via the DECL_VALUE_EXPR. This caused

[PATCH] gimplifier: handle POLY_INT_CST-sized TARGET_EXPRs

2020-01-16 Thread Richard Sandiford
If a TARGET_EXPR has poly-int size, the gimplifier would treat it like a VLA and use gimplify_vla_decl. gimplify_vla_decl in turn would use an alloca and expect all references to be gimplified via the DECL_VALUE_EXPR. This caused confusion later in gimplify_var_or_parm_decl_1 when we (correctly)