Re: [PATCH] Amend vec interface with qsort_r style methods

2019-08-02 Thread Alexander Monakov
On Fri, 2 Aug 2019, Richard Biener wrote: > The qsort_r method is named vec::sort instead of being an overload > of vec::qsort because that would need parentizing all uses as the > macro definition otherwise matches... Or simply handling a two-argument qsort call in the macro :) But I think vec:

[PATCH] Amend vec interface with qsort_r style methods

2019-08-02 Thread Richard Biener
This takes the qsort_r support a bit further with an example conversion of tree-ssa-loop-im.c (but not actually removing the global variable...). The qsort_r method is named vec::sort instead of being an overload of vec::qsort because that would need parentizing all uses as the macro definition