[PATCH] fix PR sanitizer/55617 via qsort

Mike Stump mikestump@comcast.net
Mon Feb 4 19:27:00 GMT 2013

On Feb 4, 2013, at 11:23 AM, Mike Stump <mrs@mrs.kithrup.com> wrote:
> On Feb 4, 2013, at 9:22 AM, Jack Howarth <howarth@bromo.med.uc.edu> wrote:
>>  Currently darwin is unable to utilize libasan with constructors due to the lack of
>> constructor priority support on that target.
>> Okay for gcc trunk?
> Since asan doesn't need cross translation unit priorities, the patch is sufficient to fix all of the semantics needed for asan.
> I still have a preference, though small, for stable_sort instead of qsort, absent performance data saying qsort is better.
> Ok.

Oh, if you could, could you qsort of the dtors as well.  The code exactly mirrors the ctors code.

More information about the Gcc-patches mailing list