On Thu, Mar 15, 2018 at 01:56:16PM +0100, Richard Biener wrote: > The following fixes the C familiy gimplification langhook to not > introduce tree sharing which isn't valid during gimplification. > For the specific case the tree sharing is introduced by > fold_binary_op_with_cond and is reached via convert () eventually > folding something. I've kept folding constants here but for the > rest defer folding to GIMPLE (the gimplifier already folds most > generated stmts). > > Bootstrapped and tested on x86_64-unknown-linux-gnu, ok for trunk and > branches? > > Thanks, > Richard. > > 2018-03-15 Richard Biener <rguent...@suse.de> > > PR c/84873 > * c-gimplify.c (c_gimplify_expr): Do not fold expressions. > > * c-c++-common/pr84873.c: New testcase.
Ok, thanks. Jakub