Re: Generating gimple code with gimple_build_assign

2015-04-09 Thread Steve Ellcey
On Tue, 2015-04-07 at 10:31 +0200, Richard Biener wrote: > > Is ADDR_EXPR the right way to get the address of the array instead of > > the value in a gimple_build_assign call? > > ADDR_EXPR is one of the "single-rhs" tree codes so you need to build > a GENERIC expression here: > > stmt = gimpl

Re: Generating gimple code with gimple_build_assign

2015-04-07 Thread Richard Biener
On Mon, Apr 6, 2015 at 7:29 PM, Steve Ellcey wrote: > I have a simple gimple question. I am trying to introduce an array > into a gimple stream and create a pointer to that array. > > I can create the array with: > > array_type = build_array_type_nelts (char_type_node, 256); > arr