vec.h (vec::sort): Add gcc_qsort_r support.
authorRichard Biener <rguenther@suse.de>
Fri, 2 Aug 2019 09:31:34 +0000 (09:31 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 2 Aug 2019 09:31:34 +0000 (09:31 +0000)
commit8c2289931106421819cb14ee25976ab8b1c06ff1
tree22adc8d5c7ec0ac2286218d43def72455da6055d
parente006ead5230560030c44856952967ca0cfea4db2
vec.h (vec::sort): Add gcc_qsort_r support.

2019-08-02  Richard Biener  <rguenther@suse.de>

* vec.h (vec::sort): Add gcc_qsort_r support.
(vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
* tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
to gcc_qsort_r style callback.
(sort_locs_in_loop_postorder_cmp): Likewise.
(analyze_memory_references): Use gcc_sort_r interfaces.
(find_ref_loc_in_loop_cmp): Use new bsearch overload.

From-SVN: r274004
gcc/ChangeLog
gcc/tree-ssa-loop-im.c
gcc/vec.h