http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55617



--- Comment #33 from Jack Howarth <howarth at nitro dot med.uc.edu> 2013-02-01 
21:45:42 UTC ---

Replacing the...



ctors->qsort (sort_by_ctor_priority);



with...



qsort(ctors, ctor_index+1, sizeof(ctor_record), sort_by_ctor_priority);



appears to solve the bootstrap issues. Mike Stump suggested that we use the

stable_sort from c++ to achieve the sort in one pass. Is it possible to pass a

va_gc to stable_sort? In particular, how do we get  first and last positions to

pass as described in http://www.cplusplus.com/reference/algorithm/stable_sort/?

Reply via email to