Re: [PATCH 1/2] Introduce gcc_sort_r

2019-08-01 Thread Richard Biener
On Thu, Aug 1, 2019 at 5:54 PM Alexander Monakov wrote: > > Hi, > > this patch adds gcc_sort_r, a function similar to Glibc qsort_r that takes an > extra 'user data' pointer and passes it to comparators. Richi asked about it > in https://gcc.gnu.org/ml/gcc-patches/2019-07/msg01383.html , see foll

[PATCH 1/2] Introduce gcc_sort_r

2019-08-01 Thread Alexander Monakov
Hi, this patch adds gcc_sort_r, a function similar to Glibc qsort_r that takes an extra 'user data' pointer and passes it to comparators. Richi asked about it in https://gcc.gnu.org/ml/gcc-patches/2019-07/msg01383.html , see followups in that thread for other approaches that were considered. Pat