PATCH to support __cxa_atexit and __cxa_finalize
Mark Mitchell
mark@codesourcery.com
Fri Dec 17 09:38:00 GMT 1999
>>>>> "Andreas" == Andreas Jaeger <aj@suse.de> writes:
Thanks for your questions.
Andreas> Just for clarification: Is this only needed for IA64 or
Andreas> is it needed for all platforms? Should this go into
Yes, it is needed for all platforms. G++ will be using the IA64 C++
ABI (with appropriate processor-specific modifications) on all
platforms.
Andreas> glibc 2.1.3 or only in glibc 2.2?
I don't know. That's a decision for you to make, perhaps; I don't
really know much about the current libc development cycle. The next
major release of GCC (for which there is not yet a target date) will
use __cxa_atexit.
Andreas> Does __cxa_finalize and __cxa_atexit need to be declared
Andreas> with external scope? In that case you need to add it to
Andreas> the Versions file, e.g.
Andreas> GLIBC_2.1.3 { __cxa_atexit; __cxa_finalize; }
Thanks for the hint. What does "with external scope" mean? Is that
like external linkage, i.e., does it mean that user code ought to be
able to link to it? If so, yes these functions should be callable
from user code; g++ will insert the calls automatically.
Do you need a revised patch, or would you be willing to add that bit
yourself?
Thanks very much for your help,
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com
More information about the Libc-alpha
mailing list