This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Reguire __cxa_atexit for ext/{new, throw}_allocator/deallocate_global.cc


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]