This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Use of atexit for destructors on Solaris 7.
- To: c dot galambos at eim dot surrey dot ac dot uk
- Subject: Re: Use of atexit for destructors on Solaris 7.
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Thu, 23 Mar 2000 18:13:39 +0100
- CC: gcc-bugs at gcc dot gnu dot org
- References: <E12YA45-0001zy-00@phoebe.eim.surrey.ac.uk>
> I have a workable fix for now. I get the impression there is some
> work being done on the 'atexit' mechanism to support dynamic
> libraries, I assume this limit will be removed when this is
> introduced ???
That depends on the platform. For Linux, all problems with global
objects, atexit, and destructor ordering will be fixed. For Solaris,
it really depends what kind of mechanisms Sun provides. If they want
to implement the C++ standard themselves, they'll *have* to provide a
mechanism eventually. Until then, you'll have to live with various
work-arounds - depending on what exactly you want to achieve.
If you want to share your Solaris specific code, I'm sure the gcc Web
site would host it. You may also consider putting an entry in the
FAQ-o-mat talking about the problem and its solutions.
Regards,
Martin