__cxa_finalize and `on_exit'

Mark Mitchell mark at codesourcery.com
Sat Dec 18 19:30:16 UTC 1999


>>>>> "Martin" == Martin von Loewis <loewis at informatik.hu-berlin.de> writes:

    Martin> I believe the issue here is the support of non-integrated
    Martin> C and C++ libraries. You've been modifying the C library,

I see.  The ABI documents do strongly suggest integration in the C
library, but I can see that it would be nice to support the
functionality even without integration.

    Martin> My proposal: it is left unspecified by the ABI how exactly
    Martin> the __cxa_atexit list is invoked - whoever provides the
    Martin> implementation of __cxa_atexit and __cxa_finalize is also
    Martin> responsible for having the finalizers called at the right
    Martin> point in time (i.e. as a result of std::exit invocation).

Sounds reasonable to me.

--
Mark Mitchell                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com




More information about the cxx-abi-dev mailing list