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, gcc-bugs at gcc dot gnu dot org
- Subject: Re: Use of atexit for destructors on Solaris 7.
- From: Phil Edwards <pedwards at jaj dot com>
- Date: Tue, 21 Mar 2000 10:45:30 -0500
Charles Galambos <c.galambos@eim.surrey.ac.uk>:
>
> I've just encountered a problem with the implementation
> of destructors on Solaris 7. It seems the use the
> 'atexit' function, this function registers at most 34
> functions under solaris 7.
Not a bug. The ISO C++ Standard only requires a minimum of 32 functions;
any implementation that supports more is just being friendly. What's more,
the atexit(3c) man page on Solaris 7 documents that "at most 32 functions
may be registered," so if you're actually seeing 34 functions (I didn't
look at your code), then you're actually getting more than what's required.
Luck++;
Phil