Re: [PATCH] Fix qsort ordering violation in tree-vrp.c

2017-07-17 Thread Richard Biener
On Sat, 15 Jul 2017, Yuri Gribov wrote: > Hi, > > This is a follow-up on https://gcc.gnu.org/ml/gcc/2017-07/msg00078.html > > compare_assert_loc in tree-vrp.c could return unpredictable results > due to implicit conversion of unsigned subtraction to int here: > return ha - hb; > > This could

[PATCH] Fix qsort ordering violation in tree-vrp.c

2017-07-15 Thread Yuri Gribov
Hi, This is a follow-up on https://gcc.gnu.org/ml/gcc/2017-07/msg00078.html compare_assert_loc in tree-vrp.c could return unpredictable results due to implicit conversion of unsigned subtraction to int here: return ha - hb; This could return inconsistent results for objects with the following