On Thu, May 04, 2017 at 12:42:03PM +0200, Richard Biener wrote: > > +static tree > > +unwrap_c_maybe_const (tree *tp, int *walk_subtrees, void *) > > +{ > > + if (TREE_CODE (*tp) == C_MAYBE_CONST_EXPR) > > + { > > + *tp = C_MAYBE_CONST_EXPR_EXPR (*tp); > > + /* C_MAYBE_CONST_EXPRs don't nest. */ > > + *walk_subtrees = false; > > This changes trees in-place -- do you need to operate on a copy?
Ugh, yes. But I can't simply copy_node, because that creates new VAR_DECLs, and operand_equal_p would consider them unequal. Hmm... We need something else. Marek