re PR sanitizer/55617 (static constructors are not being instrumented correctly on...
authorAlexander Potapenko <glider@google.com>
Mon, 11 Feb 2013 22:36:23 +0000 (22:36 +0000)
committerMike Stump <mrs@gcc.gnu.org>
Mon, 11 Feb 2013 22:36:23 +0000 (22:36 +0000)
commit6a52ccb3b897320a90cc86709249db167605a42f
tree4c88f130401ee1abfa6d0b6727716bc58e18cfcc
parent913bd57d50235b3af93b6dbefbc9d94cd1fd5005
re PR sanitizer/55617 (static constructors are not being instrumented correctly on darwin)

2013-02-11  Alexander Potapenko <glider@google.com>
    Jack Howarth  <howarth@bromo.med.uc.edu>
    Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/55617
* config/darwin.c (cdtor_record): Rename ctor_record.
(sort_cdtor_records): Rename sort_ctor_records.
(finalize_dtors): New routine to sort destructors by
priority before use in assemble_integer.
(machopic_asm_out_destructor): Use finalize_dtors if needed.

testsuite:
2013-02-11  Alexander Potapenko <glider@google.com>
    Jack Howarth  <howarth@bromo.med.uc.edu>
    Jakub Jelinek  <jakub@redhat.com>

PR sanitizer/55617
* g++.dg/asan/pr55617.C: Run on all targets.

Co-Authored-By: Jack Howarth <howarth@bromo.med.uc.edu>
Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r195956
gcc/ChangeLog
gcc/config/darwin.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/asan/pr55617.C