Re: [PATCH 1/6] tree-vrp: fix compare_assert_loc qsort comparator

2017-07-18 Thread Jeff Law
On 07/15/2017 02:47 PM, Alexander Monakov wrote: > Subtracting values to produce a -/0/+ comparison value only works when > original values have limited range. Otherwise it leads to broken > comparator that indicates 0 < 0x4000 < 0x8000 < 0. > > Yuri posted an equivalent patch just a few

[PATCH 1/6] tree-vrp: fix compare_assert_loc qsort comparator

2017-07-15 Thread Alexander Monakov
Subtracting values to produce a -/0/+ comparison value only works when original values have limited range. Otherwise it leads to broken comparator that indicates 0 < 0x4000 < 0x8000 < 0. Yuri posted an equivalent patch just a few hours ago: https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00