This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PATCH: Reguire __cxa_atexit for ext/{new, throw}_allocator/deallocate_global.cc
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Wed, 24 Feb 2010 15:47:30 +0100
- Subject: Re: PATCH: Reguire __cxa_atexit for ext/{new, throw}_allocator/deallocate_global.cc
- References: <yddtyt6ln07.fsf@CeBiTec.Uni-Bielefeld.DE>
Hi,
> I haven't yet read up on the semantics of __cxa_atexit, but looking
> through the OpenSolaris sources
>
> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/lib/common/i386/crt1.s#101
>
> I found that atexit() has a hook for a _get_exit_frame_monitor()
> function with a reference to the C++ runtime. It's most likely possible
> to use this to provide a __cxa_atexit() replacement in libgcc, and
> perhaps get Sun to implement (or accept an implementation) of
> __cxa_atexit() into their libc to fix the problem once and for all.
>
If you could further investigate this, it would be great. Thanks for the
analysis, anyway.
> Ok for mainline?
>
Yes, thanks.
Paolo.