Re: [PATCH][Revised] fix PR sanitizer/55617 via qsort - dtors part

2013-02-04 Thread Jack Howarth
On Mon, Feb 04, 2013 at 08:58:45PM -0500, Jack Howarth wrote: >Attached is the revised patch to sort destructors within code modules > by priority on darwin. The patch now uses a common cdtor_record structure > type and renamed sort_cdtor_records routine. Other misc. formatting issues > are add

[PATCH][Revised] fix PR sanitizer/55617 via qsort - dtors part

2013-02-04 Thread Jack Howarth
Attached is the revised patch to sort destructors within code modules by priority on darwin. The patch now uses a common cdtor_record structure type and renamed sort_cdtor_records routine. Other misc. formatting issues are addressed as well as well as enabling the g++.dg/asan/pr55617.C test on a

Re: [PATCH][revised] fix PR sanitizer/55617

2013-02-04 Thread Richard Biener
On Sun, Feb 3, 2013 at 9:25 PM, Jack Howarth wrote: >Currently darwin is unable to utilize libasan with constructors due to the > lack of > constructor priority support on that target. The asan_finish_file routine > inserts an > essential __asan_init into the array of constructors (via the _

[PATCH][revised] fix PR sanitizer/55617

2013-02-03 Thread Jack Howarth
Currently darwin is unable to utilize libasan with constructors due to the lack of constructor priority support on that target. The asan_finish_file routine inserts an essential __asan_init into the array of constructors (via the __mod_init_func section). However the insertion occurs at the e