Re: [PATCH] Expose stable sort algorithm to gcc_sort_r and add vec::stablesort

2021-06-11 Thread Richard Biener
-unknown-linux-gnu and pushed. Thanks, Richard. >From 0a9a35b9b07dfc82239545ec43dacbc9091543fa Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 10 Jun 2021 11:03:55 +0200 Subject: [PATCH] Expose stable sort algorithm to gcc_sort_r and add vec::stablesort To: gcc-patches@gcc.gnu.org

Re: [PATCH] Expose stable sort algorithm to gcc_sort_r and add vec::stablesort

2021-06-10 Thread Alexander Monakov via Gcc-patches
On Thu, 10 Jun 2021, Richard Biener wrote: > This makes it possible to apply GCCs stable sort algorithm to vec<> > and also use it with the qsort_r compatible interface. > > Alex, any comments? I'm afraid the patch is not correct, see below; (I'll also point out errors in comments while at it).

[PATCH] Expose stable sort algorithm to gcc_sort_r and add vec::stablesort

2021-06-10 Thread Richard Biener
This makes it possible to apply GCCs stable sort algorithm to vec<> and also use it with the qsort_r compatible interface. Alex, any comments? Bootstrapped & tested on x86_64-unknown-linux-gnu (with some not here included changes to actually use stablesort) 2021-06-10 Richard Biener