Re: [PATCH] Fix build_range_check (PR tree-optimization/58385)

2013-09-11 Thread Richard Biener
On Tue, 10 Sep 2013, Jakub Jelinek wrote: > Hi! > > If exp has side effects, for [-,-] ranges we would optimize them away. > Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for > trunk/4.8? Ok. Thanks, Richard. > 2013-09-10 Jakub Jelinek > > PR tree-optimizati

[PATCH] Fix build_range_check (PR tree-optimization/58385)

2013-09-10 Thread Jakub Jelinek
Hi! If exp has side effects, for [-,-] ranges we would optimize them away. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk/4.8? 2013-09-10 Jakub Jelinek PR tree-optimization/58385 * fold-const.c (build_range_check): If both low and high are NU