Re: Invalid gimple for nested functions

2014-08-25 Thread Bernd Schmidt
On 08/05/2014 10:54 AM, Richard Biener wrote: The better interface for this is gimple_assign_set_rhs_from_tree. But it seems the code can be re-structured to avoid re-setting the RHS by simply doing if (!is_gimple_reg (x) && is_gimple_reg_type (TREE_TYPE (x)) x = init_tm

Re: Invalid gimple for nested functions

2014-08-05 Thread Richard Biener
On Mon, Aug 4, 2014 at 10:37 PM, Bernd Schmidt wrote: > Some code I added for the ptx backend triggered tree-checking failures for > gimple created in tree-nested: we can end up taking the address of an > SSA_NAME, which seems invalid. The problem is that code in tree-nested wants > to change the