This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: __cxa_atexit for mingw32
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: "gcc at gcc dot gnu. org" <gcc at gcc dot gnu dot org>
- Date: Thu, 29 Jun 2006 11:05:18 +1200
- Subject: Re: RFC: __cxa_atexit for mingw32
At <http://gcc.gnu.org/ml/gcc/2006-06/msg00911.html>
Mark Mitchell wrote:
> I think it would be better to adopt [mingw-targetted] G++ to use
> whatever method Microsoft uses to handle static destructions.
> Ultimately, I would like to see G++ support the Microsoft C++ ABI --
> unless we can convince Microsoft to support the cross-platform C++
ABI. :-)
FWIW, looking at assembly produced by MS cl.exe for the
old-deja/g++.other testcases init5.C, init18.C, init19.C, the
destructors are registered with atexit, Ditto if I replace main
with DllMain and compile as dll.
I have a patch that allows use of atexit for destructors in the same way
as
__cxa_atexit in cp/decl.c and decl2.c and will submit in Stage1 next.
Danny