Re: [patch] Preserve source location in folder

2011-03-24 Thread Richard Guenther
On Thu, Mar 24, 2011 at 3:38 PM, Eric Botcazou wrote: > Hi, > > when fold_ternary_loc is attempting to make the tree prettier, e.g. by > swapping > the arguments of a COND_EXPR, it does: > >  tem = fold_truth_not_expr (loc, arg0); > > Now LOC is the location that will be put on the whole expressi

[patch] Preserve source location in folder

2011-03-24 Thread Eric Botcazou
Hi, when fold_ternary_loc is attempting to make the tree prettier, e.g. by swapping the arguments of a COND_EXPR, it does: tem = fold_truth_not_expr (loc, arg0); Now LOC is the location that will be put on the whole expression and there is no reason it should override the location of ARG0, i