__cxa_atexit question

Ulrich Drepper drepper@redhat.com
Thu May 18 08:07:00 GMT 2006


Mark Mitchell wrote:
> Many of these systems use static linking, and there the compiler driver
> puts the C++ runtime before the C runtime library.

This is/was about hpux.  One can safely assume almost no code is using
static linking.  And if it is not used having two competing
implementations can be really bad.

In any case, I assume that today most systems have the functionality of
unregistering handlers in objects which are dynamically unloaded.  This
cannot work if an alternate atexit implementation is used.  The result
will be crashes where the code used to work before.


Saying that it _could_ work in a few boundary cases (like static
linking) doesn't justify introducing changes which can render perfectly
working code into crashing code.

-- 
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 251 bytes
Desc: OpenPGP digital signature
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20060518/283e72b4/attachment.sig>


More information about the Libstdc++ mailing list