Commit 5dc3163d by Yury Gribov Committed by Maxim Ostapenko

tree-vrp.c (compare_assert_loc): Fix comparison function to return predictable results.

2017-07-17  Yury Gribov  <tetra2005@gmail.com>

gcc/
        * tree-vrp.c (compare_assert_loc): Fix comparison function
	to return predictable results.

From-SVN: r250278
parent 3f2fc95c
2017-07-17 Yury Gribov <tetra2005@gmail.com>
* tree-vrp.c (compare_assert_loc): Fix comparison function
to return predictable results.
2017-07-17 Claudiu Zissulescu <claziss@synopsys.com> 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.md (adddi3): Remove support for mexpand-adddi * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
......
...@@ -6459,7 +6459,7 @@ compare_assert_loc (const void *pa, const void *pb) ...@@ -6459,7 +6459,7 @@ compare_assert_loc (const void *pa, const void *pb)
return (a->e != NULL return (a->e != NULL
? a->e->src->index - b->e->src->index ? a->e->src->index - b->e->src->index
: a->bb->index - b->bb->index); : a->bb->index - b->bb->index);
return ha - hb; return ha > hb ? 1 : -1;
} }
/* Process all the insertions registered for every name N_i registered /* Process all the insertions registered for every name N_i registered
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment