This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch/C++]: Use dllonexit for static destructors on mingw32
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Danny Smith <dannysmith at clear dot net dot nz>
- Cc: 'GCC-patches' <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 31 Oct 2006 07:43:45 -0800
- Subject: Re: [Patch/C++]: Use dllonexit for static destructors on mingw32
- References: <000001c6fccf$045d21c0$ad6d65da@anykey>
Danny Smith wrote:
Nit-picks:
+ @deftypefn {Target Hook} bool TARGET_CXX_USE_ATEXIT_FOR_CXA_ATEXIT
(void)
+ This hook returns true if target @code{atexit} function can be used in
if the target
+ the same manner as @code{__cxa_atexit} to register C++ static
+ destructors. This requires that @code{atexit}-registered functions in
+ shared libraries are run in correct order when the libraries unload.
in the correct order when the libraries are unloaded
This patch is OK. Thanks!
--
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713