This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: __cxa_atexit question
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: sje at cup dot hp dot com
- Date: Wed, 10 May 2006 11:42:02 -0500
- Subject: Re: __cxa_atexit question
- References: <200605092050.NAA00949@hpsje.cup.hp.com>
> I was wondering if building atexit, __cxa_atexit, and __cxa_finalize
> into libstdc++ would be considered reasonable? Obvious this would have
> to be controllable based on platforms and/or a configure option since we
> don't want these in the linux libstdc++ but other platforms (like HP-UX)
> might want them in their libstdc++ libraries.
Personally, I think the linux arrangement makes sense. It seems odd to
make atexit, from C's stdlib, depend on the C++ library.
As far as your suggestion..... __cxa_atexit and __cxa_finalize,
perhaps. I would be in favor of actual definitions of these functions
if you go this route. Or, were you thinking of linking to other
definitions elsewhere?
Currently, for the gcc toolchain on HPUX, there is no __cxa_atexit
definition?
> Has this idea been discussed before?
If so, I don't remember it.
-benjamin