This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: __cxa_atexit question


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 â

Attachment: signature.asc
Description: OpenPGP digital signature


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